AWS SDK for C++  1.9.155
AWS SDK for C++
PolicyGeneration.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace AccessAnalyzer
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::Utils::DateTime& GetCompletedOn() const{ return m_completedOn; }
47 
51  inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
52 
56  inline void SetCompletedOn(const Aws::Utils::DateTime& value) { m_completedOnHasBeenSet = true; m_completedOn = value; }
57 
61  inline void SetCompletedOn(Aws::Utils::DateTime&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::move(value); }
62 
66  inline PolicyGeneration& WithCompletedOn(const Aws::Utils::DateTime& value) { SetCompletedOn(value); return *this;}
67 
71  inline PolicyGeneration& WithCompletedOn(Aws::Utils::DateTime&& value) { SetCompletedOn(std::move(value)); return *this;}
72 
73 
81  inline const Aws::String& GetJobId() const{ return m_jobId; }
82 
90  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
91 
99  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
100 
108  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
109 
117  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
118 
126  inline PolicyGeneration& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
127 
135  inline PolicyGeneration& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
136 
144  inline PolicyGeneration& WithJobId(const char* value) { SetJobId(value); return *this;}
145 
146 
151  inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
152 
157  inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
158 
163  inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
164 
169  inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); }
170 
175  inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
176 
181  inline PolicyGeneration& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
182 
187  inline PolicyGeneration& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;}
188 
193  inline PolicyGeneration& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;}
194 
195 
199  inline const Aws::Utils::DateTime& GetStartedOn() const{ return m_startedOn; }
200 
204  inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
205 
209  inline void SetStartedOn(const Aws::Utils::DateTime& value) { m_startedOnHasBeenSet = true; m_startedOn = value; }
210 
214  inline void SetStartedOn(Aws::Utils::DateTime&& value) { m_startedOnHasBeenSet = true; m_startedOn = std::move(value); }
215 
219  inline PolicyGeneration& WithStartedOn(const Aws::Utils::DateTime& value) { SetStartedOn(value); return *this;}
220 
224  inline PolicyGeneration& WithStartedOn(Aws::Utils::DateTime&& value) { SetStartedOn(std::move(value)); return *this;}
225 
226 
230  inline const JobStatus& GetStatus() const{ return m_status; }
231 
235  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
236 
240  inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
241 
245  inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
246 
250  inline PolicyGeneration& WithStatus(const JobStatus& value) { SetStatus(value); return *this;}
251 
255  inline PolicyGeneration& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;}
256 
257  private:
258 
259  Aws::Utils::DateTime m_completedOn;
260  bool m_completedOnHasBeenSet;
261 
262  Aws::String m_jobId;
263  bool m_jobIdHasBeenSet;
264 
265  Aws::String m_principalArn;
266  bool m_principalArnHasBeenSet;
267 
268  Aws::Utils::DateTime m_startedOn;
269  bool m_startedOnHasBeenSet;
270 
271  JobStatus m_status;
272  bool m_statusHasBeenSet;
273  };
274 
275 } // namespace Model
276 } // namespace AccessAnalyzer
277 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::AccessAnalyzer::Model::PolicyGeneration::SetPrincipalArn
void SetPrincipalArn(const Aws::String &value)
Definition: PolicyGeneration.h:163
Aws::AccessAnalyzer::Model::PolicyGeneration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AccessAnalyzer_EXPORTS.h
JobStatus.h
Aws::AccessAnalyzer::Model::PolicyGeneration::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: PolicyGeneration.h:235
Aws::AccessAnalyzer::Model::JobStatus
JobStatus
Definition: JobStatus.h:17
Aws::AccessAnalyzer::Model::PolicyGeneration::WithCompletedOn
PolicyGeneration & WithCompletedOn(const Aws::Utils::DateTime &value)
Definition: PolicyGeneration.h:66
Aws::AccessAnalyzer::Model::PolicyGeneration::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: PolicyGeneration.h:90
Aws::AccessAnalyzer::Model::PolicyGeneration::SetJobId
void SetJobId(const char *value)
Definition: PolicyGeneration.h:117
DateTime.h
Aws::AccessAnalyzer::Model::PolicyGeneration::WithCompletedOn
PolicyGeneration & WithCompletedOn(Aws::Utils::DateTime &&value)
Definition: PolicyGeneration.h:71
Aws::AccessAnalyzer::Model::PolicyGeneration::WithStatus
PolicyGeneration & WithStatus(const JobStatus &value)
Definition: PolicyGeneration.h:250
Aws::AccessAnalyzer::Model::PolicyGeneration::WithPrincipalArn
PolicyGeneration & WithPrincipalArn(const Aws::String &value)
Definition: PolicyGeneration.h:181
Aws::AccessAnalyzer::Model::PolicyGeneration::GetStatus
const JobStatus & GetStatus() const
Definition: PolicyGeneration.h:230
Aws::AccessAnalyzer::Model::PolicyGeneration::SetJobId
void SetJobId(const Aws::String &value)
Definition: PolicyGeneration.h:99
Aws::AccessAnalyzer::Model::PolicyGeneration::WithStatus
PolicyGeneration & WithStatus(JobStatus &&value)
Definition: PolicyGeneration.h:255
Aws::AccessAnalyzer::Model::PolicyGeneration::GetJobId
const Aws::String & GetJobId() const
Definition: PolicyGeneration.h:81
Aws::AccessAnalyzer::Model::PolicyGeneration::WithPrincipalArn
PolicyGeneration & WithPrincipalArn(Aws::String &&value)
Definition: PolicyGeneration.h:187
Aws::AccessAnalyzer::Model::PolicyGeneration::PrincipalArnHasBeenSet
bool PrincipalArnHasBeenSet() const
Definition: PolicyGeneration.h:157
Aws::AccessAnalyzer::Model::PolicyGeneration::GetPrincipalArn
const Aws::String & GetPrincipalArn() const
Definition: PolicyGeneration.h:151
Aws::AccessAnalyzer::Model::PolicyGeneration::SetCompletedOn
void SetCompletedOn(const Aws::Utils::DateTime &value)
Definition: PolicyGeneration.h:56
Aws::AccessAnalyzer::Model::PolicyGeneration::PolicyGeneration
PolicyGeneration(Aws::Utils::Json::JsonView jsonValue)
Aws::AccessAnalyzer::Model::PolicyGeneration
Definition: PolicyGeneration.h:35
Aws::AccessAnalyzer::Model::PolicyGeneration::SetCompletedOn
void SetCompletedOn(Aws::Utils::DateTime &&value)
Definition: PolicyGeneration.h:61
Aws::AccessAnalyzer::Model::PolicyGeneration::WithJobId
PolicyGeneration & WithJobId(Aws::String &&value)
Definition: PolicyGeneration.h:135
Aws::AccessAnalyzer::Model::PolicyGeneration::operator=
PolicyGeneration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::AccessAnalyzer::Model::PolicyGeneration::SetStatus
void SetStatus(const JobStatus &value)
Definition: PolicyGeneration.h:240
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AccessAnalyzer::Model::PolicyGeneration::SetPrincipalArn
void SetPrincipalArn(const char *value)
Definition: PolicyGeneration.h:175
Aws::AccessAnalyzer::Model::PolicyGeneration::StartedOnHasBeenSet
bool StartedOnHasBeenSet() const
Definition: PolicyGeneration.h:204
Aws::AccessAnalyzer::Model::PolicyGeneration::WithJobId
PolicyGeneration & WithJobId(const char *value)
Definition: PolicyGeneration.h:144
Aws::AccessAnalyzer::Model::PolicyGeneration::SetPrincipalArn
void SetPrincipalArn(Aws::String &&value)
Definition: PolicyGeneration.h:169
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::AccessAnalyzer::Model::PolicyGeneration::SetStatus
void SetStatus(JobStatus &&value)
Definition: PolicyGeneration.h:245
Aws::AccessAnalyzer::Model::PolicyGeneration::SetJobId
void SetJobId(Aws::String &&value)
Definition: PolicyGeneration.h:108
Aws::AccessAnalyzer::Model::PolicyGeneration::SetStartedOn
void SetStartedOn(Aws::Utils::DateTime &&value)
Definition: PolicyGeneration.h:214
Aws
Definition: AccessManagementClient.h:15
Aws::AccessAnalyzer::Model::PolicyGeneration::GetStartedOn
const Aws::Utils::DateTime & GetStartedOn() const
Definition: PolicyGeneration.h:199
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::PolicyGeneration::SetStartedOn
void SetStartedOn(const Aws::Utils::DateTime &value)
Definition: PolicyGeneration.h:209
Aws::AccessAnalyzer::Model::PolicyGeneration::PolicyGeneration
PolicyGeneration()
Aws::AccessAnalyzer::Model::PolicyGeneration::GetCompletedOn
const Aws::Utils::DateTime & GetCompletedOn() const
Definition: PolicyGeneration.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::PolicyGeneration::WithStartedOn
PolicyGeneration & WithStartedOn(Aws::Utils::DateTime &&value)
Definition: PolicyGeneration.h:224
Aws::AccessAnalyzer::Model::PolicyGeneration::WithPrincipalArn
PolicyGeneration & WithPrincipalArn(const char *value)
Definition: PolicyGeneration.h:193
Aws::AccessAnalyzer::Model::PolicyGeneration::CompletedOnHasBeenSet
bool CompletedOnHasBeenSet() const
Definition: PolicyGeneration.h:51
Aws::AccessAnalyzer::Model::PolicyGeneration::WithStartedOn
PolicyGeneration & WithStartedOn(const Aws::Utils::DateTime &value)
Definition: PolicyGeneration.h:219
Aws::AccessAnalyzer::Model::PolicyGeneration::WithJobId
PolicyGeneration & WithJobId(const Aws::String &value)
Definition: PolicyGeneration.h:126