AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
CertificateAuthority.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eks/EKS_EXPORTS.h>
10#include <aws/eks/model/CertificateAuthorityActivatedBy.h>
11#include <aws/eks/model/CertificateAuthorityCreatedBy.h>
12#include <aws/eks/model/CertificateAuthorityDistributionStatus.h>
13#include <aws/eks/model/CertificateAuthorityScheduledEvents.h>
14#include <aws/eks/model/CertificateAuthoritySigningStatus.h>
15#include <aws/eks/model/CertificateAuthorityValidity.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace EKS {
27namespace Model {
28
36 public:
37 AWS_EKS_API CertificateAuthority() = default;
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template <typename IdT = Aws::String>
49 void SetId(IdT&& value) {
50 m_idHasBeenSet = true;
51 m_id = std::forward<IdT>(value);
52 }
53 template <typename IdT = Aws::String>
55 SetId(std::forward<IdT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
66 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
67 template <typename CreatedAtT = Aws::Utils::DateTime>
68 void SetCreatedAt(CreatedAtT&& value) {
69 m_createdAtHasBeenSet = true;
70 m_createdAt = std::forward<CreatedAtT>(value);
71 }
72 template <typename CreatedAtT = Aws::Utils::DateTime>
73 CertificateAuthority& WithCreatedAt(CreatedAtT&& value) {
74 SetCreatedAt(std::forward<CreatedAtT>(value));
75 return *this;
76 }
78
80
86 inline CertificateAuthorityCreatedBy GetCreatedBy() const { return m_createdBy; }
87 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
89 m_createdByHasBeenSet = true;
90 m_createdBy = value;
91 }
93 SetCreatedBy(value);
94 return *this;
95 }
97
99
104 inline const Aws::Utils::DateTime& GetActivatedAt() const { return m_activatedAt; }
105 inline bool ActivatedAtHasBeenSet() const { return m_activatedAtHasBeenSet; }
106 template <typename ActivatedAtT = Aws::Utils::DateTime>
107 void SetActivatedAt(ActivatedAtT&& value) {
108 m_activatedAtHasBeenSet = true;
109 m_activatedAt = std::forward<ActivatedAtT>(value);
110 }
111 template <typename ActivatedAtT = Aws::Utils::DateTime>
112 CertificateAuthority& WithActivatedAt(ActivatedAtT&& value) {
113 SetActivatedAt(std::forward<ActivatedAtT>(value));
114 return *this;
115 }
117
119
124 inline CertificateAuthorityActivatedBy GetActivatedBy() const { return m_activatedBy; }
125 inline bool ActivatedByHasBeenSet() const { return m_activatedByHasBeenSet; }
127 m_activatedByHasBeenSet = true;
128 m_activatedBy = value;
129 }
131 SetActivatedBy(value);
132 return *this;
133 }
135
137
145 inline CertificateAuthoritySigningStatus GetSigningStatus() const { return m_signingStatus; }
146 inline bool SigningStatusHasBeenSet() const { return m_signingStatusHasBeenSet; }
148 m_signingStatusHasBeenSet = true;
149 m_signingStatus = value;
150 }
152 SetSigningStatus(value);
153 return *this;
154 }
156
158
167 inline CertificateAuthorityDistributionStatus GetDistributionStatus() const { return m_distributionStatus; }
168 inline bool DistributionStatusHasBeenSet() const { return m_distributionStatusHasBeenSet; }
170 m_distributionStatusHasBeenSet = true;
171 m_distributionStatus = value;
172 }
175 return *this;
176 }
178
180
183 inline const CertificateAuthorityValidity& GetValidity() const { return m_validity; }
184 inline bool ValidityHasBeenSet() const { return m_validityHasBeenSet; }
185 template <typename ValidityT = CertificateAuthorityValidity>
186 void SetValidity(ValidityT&& value) {
187 m_validityHasBeenSet = true;
188 m_validity = std::forward<ValidityT>(value);
189 }
190 template <typename ValidityT = CertificateAuthorityValidity>
191 CertificateAuthority& WithValidity(ValidityT&& value) {
192 SetValidity(std::forward<ValidityT>(value));
193 return *this;
194 }
196
198
202 inline const CertificateAuthorityScheduledEvents& GetScheduledEvents() const { return m_scheduledEvents; }
203 inline bool ScheduledEventsHasBeenSet() const { return m_scheduledEventsHasBeenSet; }
204 template <typename ScheduledEventsT = CertificateAuthorityScheduledEvents>
205 void SetScheduledEvents(ScheduledEventsT&& value) {
206 m_scheduledEventsHasBeenSet = true;
207 m_scheduledEvents = std::forward<ScheduledEventsT>(value);
208 }
209 template <typename ScheduledEventsT = CertificateAuthorityScheduledEvents>
210 CertificateAuthority& WithScheduledEvents(ScheduledEventsT&& value) {
211 SetScheduledEvents(std::forward<ScheduledEventsT>(value));
212 return *this;
213 }
215
217
223 inline bool GetRollbackAvailable() const { return m_rollbackAvailable; }
224 inline bool RollbackAvailableHasBeenSet() const { return m_rollbackAvailableHasBeenSet; }
225 inline void SetRollbackAvailable(bool value) {
226 m_rollbackAvailableHasBeenSet = true;
227 m_rollbackAvailable = value;
228 }
231 return *this;
232 }
234
236
239 inline const Aws::String& GetData() const { return m_data; }
240 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
241 template <typename DataT = Aws::String>
242 void SetData(DataT&& value) {
243 m_dataHasBeenSet = true;
244 m_data = std::forward<DataT>(value);
245 }
246 template <typename DataT = Aws::String>
248 SetData(std::forward<DataT>(value));
249 return *this;
250 }
252 private:
253 Aws::String m_id;
254
255 Aws::Utils::DateTime m_createdAt{};
256
258
259 Aws::Utils::DateTime m_activatedAt{};
260
262
264
266
267 CertificateAuthorityValidity m_validity;
268
269 CertificateAuthorityScheduledEvents m_scheduledEvents;
270
271 bool m_rollbackAvailable{false};
272
273 Aws::String m_data;
274 bool m_idHasBeenSet = false;
275 bool m_createdAtHasBeenSet = false;
276 bool m_createdByHasBeenSet = false;
277 bool m_activatedAtHasBeenSet = false;
278 bool m_activatedByHasBeenSet = false;
279 bool m_signingStatusHasBeenSet = false;
280 bool m_distributionStatusHasBeenSet = false;
281 bool m_validityHasBeenSet = false;
282 bool m_scheduledEventsHasBeenSet = false;
283 bool m_rollbackAvailableHasBeenSet = false;
284 bool m_dataHasBeenSet = false;
285};
286
287} // namespace Model
288} // namespace EKS
289} // namespace Aws
void SetScheduledEvents(ScheduledEventsT &&value)
CertificateAuthorityCreatedBy GetCreatedBy() const
CertificateAuthority & WithValidity(ValidityT &&value)
AWS_EKS_API CertificateAuthority()=default
CertificateAuthority & WithId(IdT &&value)
CertificateAuthority & WithCreatedAt(CreatedAtT &&value)
AWS_EKS_API CertificateAuthority & operator=(Aws::Utils::Json::JsonView jsonValue)
const CertificateAuthorityValidity & GetValidity() const
CertificateAuthority & WithCreatedBy(CertificateAuthorityCreatedBy value)
const Aws::Utils::DateTime & GetCreatedAt() const
CertificateAuthorityActivatedBy GetActivatedBy() const
CertificateAuthority & WithSigningStatus(CertificateAuthoritySigningStatus value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EKS_API CertificateAuthority(Aws::Utils::Json::JsonView jsonValue)
CertificateAuthority & WithData(DataT &&value)
void SetSigningStatus(CertificateAuthoritySigningStatus value)
void SetDistributionStatus(CertificateAuthorityDistributionStatus value)
CertificateAuthority & WithDistributionStatus(CertificateAuthorityDistributionStatus value)
const Aws::Utils::DateTime & GetActivatedAt() const
void SetActivatedBy(CertificateAuthorityActivatedBy value)
CertificateAuthorityDistributionStatus GetDistributionStatus() const
CertificateAuthority & WithActivatedBy(CertificateAuthorityActivatedBy value)
CertificateAuthoritySigningStatus GetSigningStatus() const
void SetCreatedBy(CertificateAuthorityCreatedBy value)
CertificateAuthority & WithRollbackAvailable(bool value)
CertificateAuthority & WithActivatedAt(ActivatedAtT &&value)
const CertificateAuthorityScheduledEvents & GetScheduledEvents() const
CertificateAuthority & WithScheduledEvents(ScheduledEventsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue