AWS SDK for C++  1.9.157
AWS SDK for C++
StartPolicyGenerationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace AccessAnalyzer
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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 "StartPolicyGeneration"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
47  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
48 
58  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
59 
69  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
70 
80  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
81 
91  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
92 
102  inline StartPolicyGenerationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
103 
113  inline StartPolicyGenerationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
114 
124  inline StartPolicyGenerationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
125 
126 
131  inline const CloudTrailDetails& GetCloudTrailDetails() const{ return m_cloudTrailDetails; }
132 
137  inline bool CloudTrailDetailsHasBeenSet() const { return m_cloudTrailDetailsHasBeenSet; }
138 
143  inline void SetCloudTrailDetails(const CloudTrailDetails& value) { m_cloudTrailDetailsHasBeenSet = true; m_cloudTrailDetails = value; }
144 
149  inline void SetCloudTrailDetails(CloudTrailDetails&& value) { m_cloudTrailDetailsHasBeenSet = true; m_cloudTrailDetails = std::move(value); }
150 
155  inline StartPolicyGenerationRequest& WithCloudTrailDetails(const CloudTrailDetails& value) { SetCloudTrailDetails(value); return *this;}
156 
161  inline StartPolicyGenerationRequest& WithCloudTrailDetails(CloudTrailDetails&& value) { SetCloudTrailDetails(std::move(value)); return *this;}
162 
163 
168  inline const PolicyGenerationDetails& GetPolicyGenerationDetails() const{ return m_policyGenerationDetails; }
169 
174  inline bool PolicyGenerationDetailsHasBeenSet() const { return m_policyGenerationDetailsHasBeenSet; }
175 
180  inline void SetPolicyGenerationDetails(const PolicyGenerationDetails& value) { m_policyGenerationDetailsHasBeenSet = true; m_policyGenerationDetails = value; }
181 
186  inline void SetPolicyGenerationDetails(PolicyGenerationDetails&& value) { m_policyGenerationDetailsHasBeenSet = true; m_policyGenerationDetails = std::move(value); }
187 
192  inline StartPolicyGenerationRequest& WithPolicyGenerationDetails(const PolicyGenerationDetails& value) { SetPolicyGenerationDetails(value); return *this;}
193 
198  inline StartPolicyGenerationRequest& WithPolicyGenerationDetails(PolicyGenerationDetails&& value) { SetPolicyGenerationDetails(std::move(value)); return *this;}
199 
200  private:
201 
202  Aws::String m_clientToken;
203  bool m_clientTokenHasBeenSet;
204 
205  CloudTrailDetails m_cloudTrailDetails;
206  bool m_cloudTrailDetailsHasBeenSet;
207 
208  PolicyGenerationDetails m_policyGenerationDetails;
209  bool m_policyGenerationDetailsHasBeenSet;
210  };
211 
212 } // namespace Model
213 } // namespace AccessAnalyzer
214 } // namespace Aws
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::StartPolicyGenerationRequest
StartPolicyGenerationRequest()
PolicyGenerationDetails.h
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::WithCloudTrailDetails
StartPolicyGenerationRequest & WithCloudTrailDetails(CloudTrailDetails &&value)
Definition: StartPolicyGenerationRequest.h:161
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AccessAnalyzer::AccessAnalyzerRequest
Definition: AccessAnalyzerRequest.h:17
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: StartPolicyGenerationRequest.h:58
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::WithPolicyGenerationDetails
StartPolicyGenerationRequest & WithPolicyGenerationDetails(const PolicyGenerationDetails &value)
Definition: StartPolicyGenerationRequest.h:192
Aws::AccessAnalyzer::Model::PolicyGenerationDetails
Definition: PolicyGenerationDetails.h:33
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::GetCloudTrailDetails
const CloudTrailDetails & GetCloudTrailDetails() const
Definition: StartPolicyGenerationRequest.h:131
CloudTrailDetails.h
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: StartPolicyGenerationRequest.h:69
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::PolicyGenerationDetailsHasBeenSet
bool PolicyGenerationDetailsHasBeenSet() const
Definition: StartPolicyGenerationRequest.h:174
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::WithPolicyGenerationDetails
StartPolicyGenerationRequest & WithPolicyGenerationDetails(PolicyGenerationDetails &&value)
Definition: StartPolicyGenerationRequest.h:198
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::SetCloudTrailDetails
void SetCloudTrailDetails(CloudTrailDetails &&value)
Definition: StartPolicyGenerationRequest.h:149
AccessAnalyzerRequest.h
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::SetClientToken
void SetClientToken(const char *value)
Definition: StartPolicyGenerationRequest.h:91
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::SetCloudTrailDetails
void SetCloudTrailDetails(const CloudTrailDetails &value)
Definition: StartPolicyGenerationRequest.h:143
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::CloudTrailDetailsHasBeenSet
bool CloudTrailDetailsHasBeenSet() const
Definition: StartPolicyGenerationRequest.h:137
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::WithClientToken
StartPolicyGenerationRequest & WithClientToken(const Aws::String &value)
Definition: StartPolicyGenerationRequest.h:102
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::WithCloudTrailDetails
StartPolicyGenerationRequest & WithCloudTrailDetails(const CloudTrailDetails &value)
Definition: StartPolicyGenerationRequest.h:155
AWSString.h
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest
Definition: StartPolicyGenerationRequest.h:25
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::SetPolicyGenerationDetails
void SetPolicyGenerationDetails(PolicyGenerationDetails &&value)
Definition: StartPolicyGenerationRequest.h:186
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartPolicyGenerationRequest.h:33
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::WithClientToken
StartPolicyGenerationRequest & WithClientToken(const char *value)
Definition: StartPolicyGenerationRequest.h:124
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::CloudTrailDetails
Definition: CloudTrailDetails.h:35
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: StartPolicyGenerationRequest.h:80
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: StartPolicyGenerationRequest.h:47
UUID.h
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::WithClientToken
StartPolicyGenerationRequest & WithClientToken(Aws::String &&value)
Definition: StartPolicyGenerationRequest.h:113
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::GetPolicyGenerationDetails
const PolicyGenerationDetails & GetPolicyGenerationDetails() const
Definition: StartPolicyGenerationRequest.h:168
Aws::AccessAnalyzer::Model::StartPolicyGenerationRequest::SetPolicyGenerationDetails
void SetPolicyGenerationDetails(const PolicyGenerationDetails &value)
Definition: StartPolicyGenerationRequest.h:180