AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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
33 public:
34 AWS_MPA_API PolicyVersionSummary() = default;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
62 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
63 template <typename PolicyArnT = Aws::String>
64 void SetPolicyArn(PolicyArnT&& value) {
65 m_policyArnHasBeenSet = true;
66 m_policyArn = std::forward<PolicyArnT>(value);
67 }
68 template <typename PolicyArnT = Aws::String>
69 PolicyVersionSummary& WithPolicyArn(PolicyArnT&& value) {
70 SetPolicyArn(std::forward<PolicyArnT>(value));
71 return *this;
72 }
74
76
79 inline int GetVersionId() const { return m_versionId; }
80 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
81 inline void SetVersionId(int value) {
82 m_versionIdHasBeenSet = true;
83 m_versionId = value;
84 }
86 SetVersionId(value);
87 return *this;
88 }
90
92
95 inline PolicyType GetPolicyType() const { return m_policyType; }
96 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
97 inline void SetPolicyType(PolicyType value) {
98 m_policyTypeHasBeenSet = true;
99 m_policyType = value;
100 }
102 SetPolicyType(value);
103 return *this;
104 }
106
108
111 inline bool GetIsDefault() const { return m_isDefault; }
112 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
113 inline void SetIsDefault(bool value) {
114 m_isDefaultHasBeenSet = true;
115 m_isDefault = value;
116 }
118 SetIsDefault(value);
119 return *this;
120 }
122
124
127 inline const Aws::String& GetName() const { return m_name; }
128 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
129 template <typename NameT = Aws::String>
130 void SetName(NameT&& value) {
131 m_nameHasBeenSet = true;
132 m_name = std::forward<NameT>(value);
133 }
134 template <typename NameT = Aws::String>
136 SetName(std::forward<NameT>(value));
137 return *this;
138 }
140
142
148 inline PolicyStatus GetStatus() const { return m_status; }
149 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
150 inline void SetStatus(PolicyStatus value) {
151 m_statusHasBeenSet = true;
152 m_status = value;
153 }
155 SetStatus(value);
156 return *this;
157 }
159
161
164 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
165 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
166 template <typename CreationTimeT = Aws::Utils::DateTime>
167 void SetCreationTime(CreationTimeT&& value) {
168 m_creationTimeHasBeenSet = true;
169 m_creationTime = std::forward<CreationTimeT>(value);
170 }
171 template <typename CreationTimeT = Aws::Utils::DateTime>
172 PolicyVersionSummary& WithCreationTime(CreationTimeT&& value) {
173 SetCreationTime(std::forward<CreationTimeT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
183 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
184 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
185 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
186 m_lastUpdatedTimeHasBeenSet = true;
187 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
188 }
189 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
190 PolicyVersionSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
191 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_arn;
197
198 Aws::String m_policyArn;
199
200 int m_versionId{0};
201
202 PolicyType m_policyType{PolicyType::NOT_SET};
203
204 bool m_isDefault{false};
205
206 Aws::String m_name;
207
209
210 Aws::Utils::DateTime m_creationTime{};
211
212 Aws::Utils::DateTime m_lastUpdatedTime{};
213 bool m_arnHasBeenSet = false;
214 bool m_policyArnHasBeenSet = false;
215 bool m_versionIdHasBeenSet = false;
216 bool m_policyTypeHasBeenSet = false;
217 bool m_isDefaultHasBeenSet = false;
218 bool m_nameHasBeenSet = false;
219 bool m_statusHasBeenSet = false;
220 bool m_creationTimeHasBeenSet = false;
221 bool m_lastUpdatedTimeHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace MPA
226} // 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