AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PolicyVersionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mpa/MPA_EXPORTS.h>
10#include <aws/mpa/model/PolicyStatus.h>
11#include <aws/mpa/model/PolicyType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MPA {
23namespace Model {
24
37 public:
38 AWS_MPA_API PolicyVersionSummary() = default;
42
44
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template <typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) {
51 m_arnHasBeenSet = true;
52 m_arn = std::forward<ArnT>(value);
53 }
54 template <typename ArnT = Aws::String>
56 SetArn(std::forward<ArnT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
66 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
67 template <typename PolicyArnT = Aws::String>
68 void SetPolicyArn(PolicyArnT&& value) {
69 m_policyArnHasBeenSet = true;
70 m_policyArn = std::forward<PolicyArnT>(value);
71 }
72 template <typename PolicyArnT = Aws::String>
73 PolicyVersionSummary& WithPolicyArn(PolicyArnT&& value) {
74 SetPolicyArn(std::forward<PolicyArnT>(value));
75 return *this;
76 }
78
80
83 inline int GetVersionId() const { return m_versionId; }
84 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
85 inline void SetVersionId(int value) {
86 m_versionIdHasBeenSet = true;
87 m_versionId = value;
88 }
90 SetVersionId(value);
91 return *this;
92 }
94
96
99 inline PolicyType GetPolicyType() const { return m_policyType; }
100 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
101 inline void SetPolicyType(PolicyType value) {
102 m_policyTypeHasBeenSet = true;
103 m_policyType = value;
104 }
106 SetPolicyType(value);
107 return *this;
108 }
110
112
115 inline bool GetIsDefault() const { return m_isDefault; }
116 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
117 inline void SetIsDefault(bool value) {
118 m_isDefaultHasBeenSet = true;
119 m_isDefault = value;
120 }
122 SetIsDefault(value);
123 return *this;
124 }
126
128
131 inline const Aws::String& GetName() const { return m_name; }
132 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
133 template <typename NameT = Aws::String>
134 void SetName(NameT&& value) {
135 m_nameHasBeenSet = true;
136 m_name = std::forward<NameT>(value);
137 }
138 template <typename NameT = Aws::String>
140 SetName(std::forward<NameT>(value));
141 return *this;
142 }
144
146
152 inline PolicyStatus GetStatus() const { return m_status; }
153 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
154 inline void SetStatus(PolicyStatus value) {
155 m_statusHasBeenSet = true;
156 m_status = value;
157 }
159 SetStatus(value);
160 return *this;
161 }
163
165
168 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
169 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
170 template <typename CreationTimeT = Aws::Utils::DateTime>
171 void SetCreationTime(CreationTimeT&& value) {
172 m_creationTimeHasBeenSet = true;
173 m_creationTime = std::forward<CreationTimeT>(value);
174 }
175 template <typename CreationTimeT = Aws::Utils::DateTime>
176 PolicyVersionSummary& WithCreationTime(CreationTimeT&& value) {
177 SetCreationTime(std::forward<CreationTimeT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
187 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
188 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
189 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
190 m_lastUpdatedTimeHasBeenSet = true;
191 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
192 }
193 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
194 PolicyVersionSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
195 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
196 return *this;
197 }
199 private:
200 Aws::String m_arn;
201
202 Aws::String m_policyArn;
203
204 int m_versionId{0};
205
206 PolicyType m_policyType{PolicyType::NOT_SET};
207
208 bool m_isDefault{false};
209
210 Aws::String m_name;
211
213
214 Aws::Utils::DateTime m_creationTime{};
215
216 Aws::Utils::DateTime m_lastUpdatedTime{};
217 bool m_arnHasBeenSet = false;
218 bool m_policyArnHasBeenSet = false;
219 bool m_versionIdHasBeenSet = false;
220 bool m_policyTypeHasBeenSet = false;
221 bool m_isDefaultHasBeenSet = false;
222 bool m_nameHasBeenSet = false;
223 bool m_statusHasBeenSet = false;
224 bool m_creationTimeHasBeenSet = false;
225 bool m_lastUpdatedTimeHasBeenSet = false;
226};
227
228} // namespace Model
229} // namespace MPA
230} // namespace Aws
PolicyVersionSummary & WithStatus(PolicyStatus value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
PolicyVersionSummary & WithArn(ArnT &&value)
PolicyVersionSummary & WithPolicyType(PolicyType value)
PolicyVersionSummary & WithCreationTime(CreationTimeT &&value)
PolicyVersionSummary & WithVersionId(int value)
PolicyVersionSummary & WithIsDefault(bool value)
PolicyVersionSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
AWS_MPA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPolicyArn() const
AWS_MPA_API PolicyVersionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MPA_API PolicyVersionSummary()=default
const Aws::Utils::DateTime & GetCreationTime() const
PolicyVersionSummary & WithPolicyArn(PolicyArnT &&value)
AWS_MPA_API PolicyVersionSummary(Aws::Utils::Json::JsonView jsonValue)
void SetCreationTime(CreationTimeT &&value)
PolicyVersionSummary & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue