AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PolicyGeneration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/accessanalyzer/model/JobStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AccessAnalyzer
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ACCESSANALYZER_API PolicyGeneration();
38 AWS_ACCESSANALYZER_API PolicyGeneration(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ACCESSANALYZER_API PolicyGeneration& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const Aws::String& GetJobId() const{ return m_jobId; }
52 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
53 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
54 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
55 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
56 inline PolicyGeneration& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
57 inline PolicyGeneration& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
58 inline PolicyGeneration& WithJobId(const char* value) { SetJobId(value); return *this;}
60
62
66 inline const Aws::String& GetPrincipalArn() const{ return m_principalArn; }
67 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
68 inline void SetPrincipalArn(const Aws::String& value) { m_principalArnHasBeenSet = true; m_principalArn = value; }
69 inline void SetPrincipalArn(Aws::String&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::move(value); }
70 inline void SetPrincipalArn(const char* value) { m_principalArnHasBeenSet = true; m_principalArn.assign(value); }
71 inline PolicyGeneration& WithPrincipalArn(const Aws::String& value) { SetPrincipalArn(value); return *this;}
72 inline PolicyGeneration& WithPrincipalArn(Aws::String&& value) { SetPrincipalArn(std::move(value)); return *this;}
73 inline PolicyGeneration& WithPrincipalArn(const char* value) { SetPrincipalArn(value); return *this;}
75
77
80 inline const JobStatus& GetStatus() const{ return m_status; }
81 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
82 inline void SetStatus(const JobStatus& value) { m_statusHasBeenSet = true; m_status = value; }
83 inline void SetStatus(JobStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
84 inline PolicyGeneration& WithStatus(const JobStatus& value) { SetStatus(value); return *this;}
85 inline PolicyGeneration& WithStatus(JobStatus&& value) { SetStatus(std::move(value)); return *this;}
87
89
92 inline const Aws::Utils::DateTime& GetStartedOn() const{ return m_startedOn; }
93 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
94 inline void SetStartedOn(const Aws::Utils::DateTime& value) { m_startedOnHasBeenSet = true; m_startedOn = value; }
95 inline void SetStartedOn(Aws::Utils::DateTime&& value) { m_startedOnHasBeenSet = true; m_startedOn = std::move(value); }
96 inline PolicyGeneration& WithStartedOn(const Aws::Utils::DateTime& value) { SetStartedOn(value); return *this;}
97 inline PolicyGeneration& WithStartedOn(Aws::Utils::DateTime&& value) { SetStartedOn(std::move(value)); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetCompletedOn() const{ return m_completedOn; }
105 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
106 inline void SetCompletedOn(const Aws::Utils::DateTime& value) { m_completedOnHasBeenSet = true; m_completedOn = value; }
107 inline void SetCompletedOn(Aws::Utils::DateTime&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::move(value); }
108 inline PolicyGeneration& WithCompletedOn(const Aws::Utils::DateTime& value) { SetCompletedOn(value); return *this;}
109 inline PolicyGeneration& WithCompletedOn(Aws::Utils::DateTime&& value) { SetCompletedOn(std::move(value)); return *this;}
111 private:
112
113 Aws::String m_jobId;
114 bool m_jobIdHasBeenSet = false;
115
116 Aws::String m_principalArn;
117 bool m_principalArnHasBeenSet = false;
118
119 JobStatus m_status;
120 bool m_statusHasBeenSet = false;
121
122 Aws::Utils::DateTime m_startedOn;
123 bool m_startedOnHasBeenSet = false;
124
125 Aws::Utils::DateTime m_completedOn;
126 bool m_completedOnHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace AccessAnalyzer
131} // namespace Aws
void SetStartedOn(Aws::Utils::DateTime &&value)
PolicyGeneration & WithCompletedOn(Aws::Utils::DateTime &&value)
PolicyGeneration & WithJobId(const char *value)
void SetJobId(const Aws::String &value)
PolicyGeneration & WithCompletedOn(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetCompletedOn() const
AWS_ACCESSANALYZER_API PolicyGeneration & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicyGeneration & WithStatus(const JobStatus &value)
void SetCompletedOn(Aws::Utils::DateTime &&value)
void SetPrincipalArn(const Aws::String &value)
PolicyGeneration & WithPrincipalArn(const char *value)
void SetCompletedOn(const Aws::Utils::DateTime &value)
PolicyGeneration & WithStartedOn(const Aws::Utils::DateTime &value)
PolicyGeneration & WithJobId(Aws::String &&value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetStartedOn() const
AWS_ACCESSANALYZER_API PolicyGeneration(Aws::Utils::Json::JsonView jsonValue)
PolicyGeneration & WithPrincipalArn(const Aws::String &value)
PolicyGeneration & WithPrincipalArn(Aws::String &&value)
void SetStartedOn(const Aws::Utils::DateTime &value)
PolicyGeneration & WithJobId(const Aws::String &value)
PolicyGeneration & WithStartedOn(Aws::Utils::DateTime &&value)
PolicyGeneration & WithStatus(JobStatus &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue