AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
ValidatePolicyRequest.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
8#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
9#include <aws/accessanalyzer/model/Locale.h>
10#include <aws/accessanalyzer/model/PolicyType.h>
11#include <aws/accessanalyzer/model/ValidatePolicyResourceType.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Http {
18class URI;
19} // namespace Http
20namespace AccessAnalyzer {
21namespace Model {
22
26 public:
27 AWS_ACCESSANALYZER_API ValidatePolicyRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ValidatePolicy"; }
34
35 AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override;
36
37 AWS_ACCESSANALYZER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
43 inline Locale GetLocale() const { return m_locale; }
44 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
45 inline void SetLocale(Locale value) {
46 m_localeHasBeenSet = true;
47 m_locale = value;
48 }
50 SetLocale(value);
51 return *this;
52 }
54
56
59 inline int GetMaxResults() const { return m_maxResults; }
60 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
61 inline void SetMaxResults(int value) {
62 m_maxResultsHasBeenSet = true;
63 m_maxResults = value;
64 }
66 SetMaxResults(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetNextToken() const { return m_nextToken; }
76 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
77 template <typename NextTokenT = Aws::String>
78 void SetNextToken(NextTokenT&& value) {
79 m_nextTokenHasBeenSet = true;
80 m_nextToken = std::forward<NextTokenT>(value);
81 }
82 template <typename NextTokenT = Aws::String>
83 ValidatePolicyRequest& WithNextToken(NextTokenT&& value) {
84 SetNextToken(std::forward<NextTokenT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
94 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
95 template <typename PolicyDocumentT = Aws::String>
96 void SetPolicyDocument(PolicyDocumentT&& value) {
97 m_policyDocumentHasBeenSet = true;
98 m_policyDocument = std::forward<PolicyDocumentT>(value);
99 }
100 template <typename PolicyDocumentT = Aws::String>
101 ValidatePolicyRequest& WithPolicyDocument(PolicyDocumentT&& value) {
102 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
103 return *this;
104 }
106
108
119 inline PolicyType GetPolicyType() const { return m_policyType; }
120 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
121 inline void SetPolicyType(PolicyType value) {
122 m_policyTypeHasBeenSet = true;
123 m_policyType = value;
124 }
126 SetPolicyType(value);
127 return *this;
128 }
130
132
143 inline ValidatePolicyResourceType GetValidatePolicyResourceType() const { return m_validatePolicyResourceType; }
144 inline bool ValidatePolicyResourceTypeHasBeenSet() const { return m_validatePolicyResourceTypeHasBeenSet; }
146 m_validatePolicyResourceTypeHasBeenSet = true;
147 m_validatePolicyResourceType = value;
148 }
151 return *this;
152 }
154 private:
155 Locale m_locale{Locale::NOT_SET};
156 bool m_localeHasBeenSet = false;
157
158 int m_maxResults{0};
159 bool m_maxResultsHasBeenSet = false;
160
161 Aws::String m_nextToken;
162 bool m_nextTokenHasBeenSet = false;
163
164 Aws::String m_policyDocument;
165 bool m_policyDocumentHasBeenSet = false;
166
167 PolicyType m_policyType{PolicyType::NOT_SET};
168 bool m_policyTypeHasBeenSet = false;
169
171 bool m_validatePolicyResourceTypeHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace AccessAnalyzer
176} // namespace Aws
void SetValidatePolicyResourceType(ValidatePolicyResourceType value)
virtual const char * GetServiceRequestName() const override
ValidatePolicyRequest & WithPolicyDocument(PolicyDocumentT &&value)
AWS_ACCESSANALYZER_API Aws::String SerializePayload() const override
ValidatePolicyRequest & WithNextToken(NextTokenT &&value)
AWS_ACCESSANALYZER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ValidatePolicyResourceType GetValidatePolicyResourceType() const
ValidatePolicyRequest & WithValidatePolicyResourceType(ValidatePolicyResourceType value)
ValidatePolicyRequest & WithPolicyType(PolicyType value)
AWS_ACCESSANALYZER_API ValidatePolicyRequest()=default
ValidatePolicyRequest & WithLocale(Locale value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String