AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PolicyGeneration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/accessanalyzer/model/JobStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AccessAnalyzer {
22namespace Model {
23
31 public:
32 AWS_ACCESSANALYZER_API PolicyGeneration() = default;
33 AWS_ACCESSANALYZER_API PolicyGeneration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ACCESSANALYZER_API PolicyGeneration& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline const Aws::String& GetJobId() const { return m_jobId; }
46 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
47 template <typename JobIdT = Aws::String>
48 void SetJobId(JobIdT&& value) {
49 m_jobIdHasBeenSet = true;
50 m_jobId = std::forward<JobIdT>(value);
51 }
52 template <typename JobIdT = Aws::String>
53 PolicyGeneration& WithJobId(JobIdT&& value) {
54 SetJobId(std::forward<JobIdT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetPrincipalArn() const { return m_principalArn; }
65 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
66 template <typename PrincipalArnT = Aws::String>
67 void SetPrincipalArn(PrincipalArnT&& value) {
68 m_principalArnHasBeenSet = true;
69 m_principalArn = std::forward<PrincipalArnT>(value);
70 }
71 template <typename PrincipalArnT = Aws::String>
72 PolicyGeneration& WithPrincipalArn(PrincipalArnT&& value) {
73 SetPrincipalArn(std::forward<PrincipalArnT>(value));
74 return *this;
75 }
77
79
82 inline JobStatus GetStatus() const { return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 inline void SetStatus(JobStatus value) {
85 m_statusHasBeenSet = true;
86 m_status = value;
87 }
89 SetStatus(value);
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetStartedOn() const { return m_startedOn; }
99 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
100 template <typename StartedOnT = Aws::Utils::DateTime>
101 void SetStartedOn(StartedOnT&& value) {
102 m_startedOnHasBeenSet = true;
103 m_startedOn = std::forward<StartedOnT>(value);
104 }
105 template <typename StartedOnT = Aws::Utils::DateTime>
106 PolicyGeneration& WithStartedOn(StartedOnT&& value) {
107 SetStartedOn(std::forward<StartedOnT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::Utils::DateTime& GetCompletedOn() const { return m_completedOn; }
117 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
118 template <typename CompletedOnT = Aws::Utils::DateTime>
119 void SetCompletedOn(CompletedOnT&& value) {
120 m_completedOnHasBeenSet = true;
121 m_completedOn = std::forward<CompletedOnT>(value);
122 }
123 template <typename CompletedOnT = Aws::Utils::DateTime>
124 PolicyGeneration& WithCompletedOn(CompletedOnT&& value) {
125 SetCompletedOn(std::forward<CompletedOnT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_jobId;
131
132 Aws::String m_principalArn;
133
135
136 Aws::Utils::DateTime m_startedOn{};
137
138 Aws::Utils::DateTime m_completedOn{};
139 bool m_jobIdHasBeenSet = false;
140 bool m_principalArnHasBeenSet = false;
141 bool m_statusHasBeenSet = false;
142 bool m_startedOnHasBeenSet = false;
143 bool m_completedOnHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace AccessAnalyzer
148} // namespace Aws
PolicyGeneration & WithJobId(JobIdT &&value)
const Aws::Utils::DateTime & GetCompletedOn() const
AWS_ACCESSANALYZER_API PolicyGeneration & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicyGeneration & WithStatus(JobStatus value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetStartedOn() const
PolicyGeneration & WithStartedOn(StartedOnT &&value)
PolicyGeneration & WithCompletedOn(CompletedOnT &&value)
AWS_ACCESSANALYZER_API PolicyGeneration(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API PolicyGeneration()=default
PolicyGeneration & WithPrincipalArn(PrincipalArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue