AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ValidatePolicyFinding.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/accessanalyzer/model/ValidatePolicyFindingType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/accessanalyzer/model/Location.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AccessAnalyzer
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ACCESSANALYZER_API ValidatePolicyFinding() = default;
39 AWS_ACCESSANALYZER_API ValidatePolicyFinding(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetFindingDetails() const { return m_findingDetails; }
50 inline bool FindingDetailsHasBeenSet() const { return m_findingDetailsHasBeenSet; }
51 template<typename FindingDetailsT = Aws::String>
52 void SetFindingDetails(FindingDetailsT&& value) { m_findingDetailsHasBeenSet = true; m_findingDetails = std::forward<FindingDetailsT>(value); }
53 template<typename FindingDetailsT = Aws::String>
54 ValidatePolicyFinding& WithFindingDetails(FindingDetailsT&& value) { SetFindingDetails(std::forward<FindingDetailsT>(value)); return *this;}
56
58
66 inline ValidatePolicyFindingType GetFindingType() const { return m_findingType; }
67 inline bool FindingTypeHasBeenSet() const { return m_findingTypeHasBeenSet; }
68 inline void SetFindingType(ValidatePolicyFindingType value) { m_findingTypeHasBeenSet = true; m_findingType = value; }
71
73
77 inline const Aws::String& GetIssueCode() const { return m_issueCode; }
78 inline bool IssueCodeHasBeenSet() const { return m_issueCodeHasBeenSet; }
79 template<typename IssueCodeT = Aws::String>
80 void SetIssueCode(IssueCodeT&& value) { m_issueCodeHasBeenSet = true; m_issueCode = std::forward<IssueCodeT>(value); }
81 template<typename IssueCodeT = Aws::String>
82 ValidatePolicyFinding& WithIssueCode(IssueCodeT&& value) { SetIssueCode(std::forward<IssueCodeT>(value)); return *this;}
84
86
89 inline const Aws::String& GetLearnMoreLink() const { return m_learnMoreLink; }
90 inline bool LearnMoreLinkHasBeenSet() const { return m_learnMoreLinkHasBeenSet; }
91 template<typename LearnMoreLinkT = Aws::String>
92 void SetLearnMoreLink(LearnMoreLinkT&& value) { m_learnMoreLinkHasBeenSet = true; m_learnMoreLink = std::forward<LearnMoreLinkT>(value); }
93 template<typename LearnMoreLinkT = Aws::String>
94 ValidatePolicyFinding& WithLearnMoreLink(LearnMoreLinkT&& value) { SetLearnMoreLink(std::forward<LearnMoreLinkT>(value)); return *this;}
96
98
102 inline const Aws::Vector<Location>& GetLocations() const { return m_locations; }
103 inline bool LocationsHasBeenSet() const { return m_locationsHasBeenSet; }
104 template<typename LocationsT = Aws::Vector<Location>>
105 void SetLocations(LocationsT&& value) { m_locationsHasBeenSet = true; m_locations = std::forward<LocationsT>(value); }
106 template<typename LocationsT = Aws::Vector<Location>>
107 ValidatePolicyFinding& WithLocations(LocationsT&& value) { SetLocations(std::forward<LocationsT>(value)); return *this;}
108 template<typename LocationsT = Location>
109 ValidatePolicyFinding& AddLocations(LocationsT&& value) { m_locationsHasBeenSet = true; m_locations.emplace_back(std::forward<LocationsT>(value)); return *this; }
111 private:
112
113 Aws::String m_findingDetails;
114 bool m_findingDetailsHasBeenSet = false;
115
117 bool m_findingTypeHasBeenSet = false;
118
119 Aws::String m_issueCode;
120 bool m_issueCodeHasBeenSet = false;
121
122 Aws::String m_learnMoreLink;
123 bool m_learnMoreLinkHasBeenSet = false;
124
125 Aws::Vector<Location> m_locations;
126 bool m_locationsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace AccessAnalyzer
131} // namespace Aws
ValidatePolicyFinding & WithLocations(LocationsT &&value)
const Aws::Vector< Location > & GetLocations() const
void SetFindingType(ValidatePolicyFindingType value)
AWS_ACCESSANALYZER_API ValidatePolicyFinding()=default
ValidatePolicyFinding & AddLocations(LocationsT &&value)
ValidatePolicyFinding & WithIssueCode(IssueCodeT &&value)
AWS_ACCESSANALYZER_API ValidatePolicyFinding & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
ValidatePolicyFinding & WithFindingType(ValidatePolicyFindingType value)
AWS_ACCESSANALYZER_API ValidatePolicyFinding(Aws::Utils::Json::JsonView jsonValue)
ValidatePolicyFinding & WithLearnMoreLink(LearnMoreLinkT &&value)
ValidatePolicyFinding & WithFindingDetails(FindingDetailsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue