AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
Update.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/eks/EKS_EXPORTS.h>
11#include <aws/eks/model/Cancellation.h>
12#include <aws/eks/model/ErrorDetail.h>
13#include <aws/eks/model/UpdateParam.h>
14#include <aws/eks/model/UpdateStatus.h>
15#include <aws/eks/model/UpdateType.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
34class Update {
35 public:
36 AWS_EKS_API Update() = default;
37 AWS_EKS_API Update(Aws::Utils::Json::JsonView jsonValue);
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template <typename IdT = Aws::String>
48 void SetId(IdT&& value) {
49 m_idHasBeenSet = true;
50 m_id = std::forward<IdT>(value);
51 }
52 template <typename IdT = Aws::String>
53 Update& WithId(IdT&& value) {
54 SetId(std::forward<IdT>(value));
55 return *this;
56 }
58
60
63 inline UpdateStatus GetStatus() const { return m_status; }
64 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
65 inline void SetStatus(UpdateStatus value) {
66 m_statusHasBeenSet = true;
67 m_status = value;
68 }
70 SetStatus(value);
71 return *this;
72 }
74
76
79 inline UpdateType GetType() const { return m_type; }
80 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
81 inline void SetType(UpdateType value) {
82 m_typeHasBeenSet = true;
83 m_type = value;
84 }
85 inline Update& WithType(UpdateType value) {
86 SetType(value);
87 return *this;
88 }
90
92
95 inline const Aws::Vector<UpdateParam>& GetParams() const { return m_params; }
96 inline bool ParamsHasBeenSet() const { return m_paramsHasBeenSet; }
97 template <typename ParamsT = Aws::Vector<UpdateParam>>
98 void SetParams(ParamsT&& value) {
99 m_paramsHasBeenSet = true;
100 m_params = std::forward<ParamsT>(value);
101 }
102 template <typename ParamsT = Aws::Vector<UpdateParam>>
103 Update& WithParams(ParamsT&& value) {
104 SetParams(std::forward<ParamsT>(value));
105 return *this;
106 }
107 template <typename ParamsT = UpdateParam>
108 Update& AddParams(ParamsT&& value) {
109 m_paramsHasBeenSet = true;
110 m_params.emplace_back(std::forward<ParamsT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
120 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
121 template <typename CreatedAtT = Aws::Utils::DateTime>
122 void SetCreatedAt(CreatedAtT&& value) {
123 m_createdAtHasBeenSet = true;
124 m_createdAt = std::forward<CreatedAtT>(value);
125 }
126 template <typename CreatedAtT = Aws::Utils::DateTime>
127 Update& WithCreatedAt(CreatedAtT&& value) {
128 SetCreatedAt(std::forward<CreatedAtT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Vector<ErrorDetail>& GetErrors() const { return m_errors; }
138 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
139 template <typename ErrorsT = Aws::Vector<ErrorDetail>>
140 void SetErrors(ErrorsT&& value) {
141 m_errorsHasBeenSet = true;
142 m_errors = std::forward<ErrorsT>(value);
143 }
144 template <typename ErrorsT = Aws::Vector<ErrorDetail>>
145 Update& WithErrors(ErrorsT&& value) {
146 SetErrors(std::forward<ErrorsT>(value));
147 return *this;
148 }
149 template <typename ErrorsT = ErrorDetail>
150 Update& AddErrors(ErrorsT&& value) {
151 m_errorsHasBeenSet = true;
152 m_errors.emplace_back(std::forward<ErrorsT>(value));
153 return *this;
154 }
156
158
162 inline const Cancellation& GetCancellation() const { return m_cancellation; }
163 inline bool CancellationHasBeenSet() const { return m_cancellationHasBeenSet; }
164 template <typename CancellationT = Cancellation>
165 void SetCancellation(CancellationT&& value) {
166 m_cancellationHasBeenSet = true;
167 m_cancellation = std::forward<CancellationT>(value);
168 }
169 template <typename CancellationT = Cancellation>
170 Update& WithCancellation(CancellationT&& value) {
171 SetCancellation(std::forward<CancellationT>(value));
172 return *this;
173 }
175 private:
176 Aws::String m_id;
177
179
181
183
184 Aws::Utils::DateTime m_createdAt{};
185
187
188 Cancellation m_cancellation;
189 bool m_idHasBeenSet = false;
190 bool m_statusHasBeenSet = false;
191 bool m_typeHasBeenSet = false;
192 bool m_paramsHasBeenSet = false;
193 bool m_createdAtHasBeenSet = false;
194 bool m_errorsHasBeenSet = false;
195 bool m_cancellationHasBeenSet = false;
196};
197
198} // namespace Model
199} // namespace EKS
200} // namespace Aws
Update & WithId(IdT &&value)
Definition Update.h:53
bool CancellationHasBeenSet() const
Definition Update.h:163
const Aws::String & GetId() const
Definition Update.h:45
Update & WithType(UpdateType value)
Definition Update.h:85
const Aws::Vector< UpdateParam > & GetParams() const
Definition Update.h:95
bool IdHasBeenSet() const
Definition Update.h:46
bool StatusHasBeenSet() const
Definition Update.h:64
Update & AddParams(ParamsT &&value)
Definition Update.h:108
void SetStatus(UpdateStatus value)
Definition Update.h:65
Update & WithErrors(ErrorsT &&value)
Definition Update.h:145
AWS_EKS_API Update & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Update.h:119
bool ParamsHasBeenSet() const
Definition Update.h:96
Update & AddErrors(ErrorsT &&value)
Definition Update.h:150
AWS_EKS_API Update()=default
void SetCancellation(CancellationT &&value)
Definition Update.h:165
UpdateType GetType() const
Definition Update.h:79
const Cancellation & GetCancellation() const
Definition Update.h:162
Update & WithCancellation(CancellationT &&value)
Definition Update.h:170
void SetType(UpdateType value)
Definition Update.h:81
Update & WithStatus(UpdateStatus value)
Definition Update.h:69
Update & WithParams(ParamsT &&value)
Definition Update.h:103
void SetCreatedAt(CreatedAtT &&value)
Definition Update.h:122
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
bool TypeHasBeenSet() const
Definition Update.h:80
void SetErrors(ErrorsT &&value)
Definition Update.h:140
AWS_EKS_API Update(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ErrorDetail > & GetErrors() const
Definition Update.h:137
UpdateStatus GetStatus() const
Definition Update.h:63
bool CreatedAtHasBeenSet() const
Definition Update.h:120
Update & WithCreatedAt(CreatedAtT &&value)
Definition Update.h:127
bool ErrorsHasBeenSet() const
Definition Update.h:138
void SetParams(ParamsT &&value)
Definition Update.h:98
void SetId(IdT &&value)
Definition Update.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue