AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ValidatePolicyFinding.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/Location.h>
9#include <aws/accessanalyzer/model/ValidatePolicyFindingType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AccessAnalyzer {
23namespace Model {
24
32 public:
33 AWS_ACCESSANALYZER_API ValidatePolicyFinding() = default;
34 AWS_ACCESSANALYZER_API ValidatePolicyFinding(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetFindingDetails() const { return m_findingDetails; }
44 inline bool FindingDetailsHasBeenSet() const { return m_findingDetailsHasBeenSet; }
45 template <typename FindingDetailsT = Aws::String>
46 void SetFindingDetails(FindingDetailsT&& value) {
47 m_findingDetailsHasBeenSet = true;
48 m_findingDetails = std::forward<FindingDetailsT>(value);
49 }
50 template <typename FindingDetailsT = Aws::String>
51 ValidatePolicyFinding& WithFindingDetails(FindingDetailsT&& value) {
52 SetFindingDetails(std::forward<FindingDetailsT>(value));
53 return *this;
54 }
56
58
66 inline ValidatePolicyFindingType GetFindingType() const { return m_findingType; }
67 inline bool FindingTypeHasBeenSet() const { return m_findingTypeHasBeenSet; }
69 m_findingTypeHasBeenSet = true;
70 m_findingType = value;
71 }
73 SetFindingType(value);
74 return *this;
75 }
77
79
83 inline const Aws::String& GetIssueCode() const { return m_issueCode; }
84 inline bool IssueCodeHasBeenSet() const { return m_issueCodeHasBeenSet; }
85 template <typename IssueCodeT = Aws::String>
86 void SetIssueCode(IssueCodeT&& value) {
87 m_issueCodeHasBeenSet = true;
88 m_issueCode = std::forward<IssueCodeT>(value);
89 }
90 template <typename IssueCodeT = Aws::String>
91 ValidatePolicyFinding& WithIssueCode(IssueCodeT&& value) {
92 SetIssueCode(std::forward<IssueCodeT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetLearnMoreLink() const { return m_learnMoreLink; }
102 inline bool LearnMoreLinkHasBeenSet() const { return m_learnMoreLinkHasBeenSet; }
103 template <typename LearnMoreLinkT = Aws::String>
104 void SetLearnMoreLink(LearnMoreLinkT&& value) {
105 m_learnMoreLinkHasBeenSet = true;
106 m_learnMoreLink = std::forward<LearnMoreLinkT>(value);
107 }
108 template <typename LearnMoreLinkT = Aws::String>
109 ValidatePolicyFinding& WithLearnMoreLink(LearnMoreLinkT&& value) {
110 SetLearnMoreLink(std::forward<LearnMoreLinkT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::Vector<Location>& GetLocations() const { return m_locations; }
121 inline bool LocationsHasBeenSet() const { return m_locationsHasBeenSet; }
122 template <typename LocationsT = Aws::Vector<Location>>
123 void SetLocations(LocationsT&& value) {
124 m_locationsHasBeenSet = true;
125 m_locations = std::forward<LocationsT>(value);
126 }
127 template <typename LocationsT = Aws::Vector<Location>>
129 SetLocations(std::forward<LocationsT>(value));
130 return *this;
131 }
132 template <typename LocationsT = Location>
133 ValidatePolicyFinding& AddLocations(LocationsT&& value) {
134 m_locationsHasBeenSet = true;
135 m_locations.emplace_back(std::forward<LocationsT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_findingDetails;
141
143
144 Aws::String m_issueCode;
145
146 Aws::String m_learnMoreLink;
147
148 Aws::Vector<Location> m_locations;
149 bool m_findingDetailsHasBeenSet = false;
150 bool m_findingTypeHasBeenSet = false;
151 bool m_issueCodeHasBeenSet = false;
152 bool m_learnMoreLinkHasBeenSet = false;
153 bool m_locationsHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace AccessAnalyzer
158} // 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