AWS SDK for C++  1.9.153
AWS SDK for C++
ValidatePolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace AccessAnalyzer
21 {
22 namespace Model
23 {
24 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "ValidatePolicy"; }
37 
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
42 
46  inline const Locale& GetLocale() const{ return m_locale; }
47 
51  inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
52 
56  inline void SetLocale(const Locale& value) { m_localeHasBeenSet = true; m_locale = value; }
57 
61  inline void SetLocale(Locale&& value) { m_localeHasBeenSet = true; m_locale = std::move(value); }
62 
66  inline ValidatePolicyRequest& WithLocale(const Locale& value) { SetLocale(value); return *this;}
67 
71  inline ValidatePolicyRequest& WithLocale(Locale&& value) { SetLocale(std::move(value)); return *this;}
72 
73 
77  inline int GetMaxResults() const{ return m_maxResults; }
78 
82  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
83 
87  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
88 
92  inline ValidatePolicyRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
93 
94 
98  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
99 
103  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
104 
108  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
109 
113  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
114 
118  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
119 
123  inline ValidatePolicyRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
124 
128  inline ValidatePolicyRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
129 
133  inline ValidatePolicyRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
134 
135 
139  inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
140 
144  inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
145 
149  inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
150 
154  inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
155 
159  inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
160 
164  inline ValidatePolicyRequest& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
165 
169  inline ValidatePolicyRequest& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
170 
174  inline ValidatePolicyRequest& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
175 
176 
188  inline const PolicyType& GetPolicyType() const{ return m_policyType; }
189 
201  inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
202 
214  inline void SetPolicyType(const PolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
215 
227  inline void SetPolicyType(PolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
228 
240  inline ValidatePolicyRequest& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;}
241 
253  inline ValidatePolicyRequest& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
254 
255  private:
256 
257  Locale m_locale;
258  bool m_localeHasBeenSet;
259 
260  int m_maxResults;
261  bool m_maxResultsHasBeenSet;
262 
263  Aws::String m_nextToken;
264  bool m_nextTokenHasBeenSet;
265 
266  Aws::String m_policyDocument;
267  bool m_policyDocumentHasBeenSet;
268 
269  PolicyType m_policyType;
270  bool m_policyTypeHasBeenSet;
271  };
272 
273 } // namespace Model
274 } // namespace AccessAnalyzer
275 } // namespace Aws
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::GetLocale
const Locale & GetLocale() const
Definition: ValidatePolicyRequest.h:46
AccessAnalyzer_EXPORTS.h
Aws::Http::URI
Definition: URI.h:32
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ValidatePolicyRequest.h:108
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::SetPolicyType
void SetPolicyType(PolicyType &&value)
Definition: ValidatePolicyRequest.h:227
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::WithLocale
ValidatePolicyRequest & WithLocale(const Locale &value)
Definition: ValidatePolicyRequest.h:66
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::SetPolicyType
void SetPolicyType(const PolicyType &value)
Definition: ValidatePolicyRequest.h:214
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ValidatePolicyRequest.h:87
Aws::AccessAnalyzer::AccessAnalyzerRequest
Definition: AccessAnalyzerRequest.h:17
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::WithMaxResults
ValidatePolicyRequest & WithMaxResults(int value)
Definition: ValidatePolicyRequest.h:92
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::AccessAnalyzer::Model::Locale
Locale
Definition: Locale.h:17
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::SetPolicyDocument
void SetPolicyDocument(const char *value)
Definition: ValidatePolicyRequest.h:159
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ValidatePolicyRequest.h:118
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::SetLocale
void SetLocale(Locale &&value)
Definition: ValidatePolicyRequest.h:61
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::WithLocale
ValidatePolicyRequest & WithLocale(Locale &&value)
Definition: ValidatePolicyRequest.h:71
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ValidatePolicyRequest.h:103
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ValidatePolicyRequest.h:36
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::GetMaxResults
int GetMaxResults() const
Definition: ValidatePolicyRequest.h:77
Aws::AccessAnalyzer::Model::ValidatePolicyRequest
Definition: ValidatePolicyRequest.h:28
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::LocaleHasBeenSet
bool LocaleHasBeenSet() const
Definition: ValidatePolicyRequest.h:51
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::SetPolicyDocument
void SetPolicyDocument(const Aws::String &value)
Definition: ValidatePolicyRequest.h:149
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::GetPolicyDocument
const Aws::String & GetPolicyDocument() const
Definition: ValidatePolicyRequest.h:139
Locale.h
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::WithPolicyType
ValidatePolicyRequest & WithPolicyType(PolicyType &&value)
Definition: ValidatePolicyRequest.h:253
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::WithPolicyType
ValidatePolicyRequest & WithPolicyType(const PolicyType &value)
Definition: ValidatePolicyRequest.h:240
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::GetPolicyType
const PolicyType & GetPolicyType() const
Definition: ValidatePolicyRequest.h:188
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ValidatePolicyRequest.h:113
AccessAnalyzerRequest.h
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::WithPolicyDocument
ValidatePolicyRequest & WithPolicyDocument(const char *value)
Definition: ValidatePolicyRequest.h:174
PolicyType.h
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::SetPolicyDocument
void SetPolicyDocument(Aws::String &&value)
Definition: ValidatePolicyRequest.h:154
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::WithPolicyDocument
ValidatePolicyRequest & WithPolicyDocument(Aws::String &&value)
Definition: ValidatePolicyRequest.h:169
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::WithNextToken
ValidatePolicyRequest & WithNextToken(const Aws::String &value)
Definition: ValidatePolicyRequest.h:123
AWSString.h
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::SetLocale
void SetLocale(const Locale &value)
Definition: ValidatePolicyRequest.h:56
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::WithNextToken
ValidatePolicyRequest & WithNextToken(Aws::String &&value)
Definition: ValidatePolicyRequest.h:128
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ValidatePolicyRequest.h:98
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::PolicyDocumentHasBeenSet
bool PolicyDocumentHasBeenSet() const
Definition: ValidatePolicyRequest.h:144
Aws::AccessAnalyzer::Model::PolicyType
PolicyType
Definition: PolicyType.h:17
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::ValidatePolicyRequest
ValidatePolicyRequest()
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ValidatePolicyRequest.h:82
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::WithNextToken
ValidatePolicyRequest & WithNextToken(const char *value)
Definition: ValidatePolicyRequest.h:133
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::WithPolicyDocument
ValidatePolicyRequest & WithPolicyDocument(const Aws::String &value)
Definition: ValidatePolicyRequest.h:164
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AccessAnalyzer::Model::ValidatePolicyRequest::PolicyTypeHasBeenSet
bool PolicyTypeHasBeenSet() const
Definition: ValidatePolicyRequest.h:201