AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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/ErrorDetail.h>
12#include <aws/eks/model/UpdateParam.h>
13#include <aws/eks/model/UpdateStatus.h>
14#include <aws/eks/model/UpdateType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace EKS {
26namespace Model {
27
33class Update {
34 public:
35 AWS_EKS_API Update() = default;
36 AWS_EKS_API Update(Aws::Utils::Json::JsonView jsonValue);
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
52 Update& WithId(IdT&& value) {
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline UpdateStatus GetStatus() const { return m_status; }
63 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
64 inline void SetStatus(UpdateStatus value) {
65 m_statusHasBeenSet = true;
66 m_status = value;
67 }
69 SetStatus(value);
70 return *this;
71 }
73
75
78 inline UpdateType GetType() const { return m_type; }
79 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
80 inline void SetType(UpdateType value) {
81 m_typeHasBeenSet = true;
82 m_type = value;
83 }
84 inline Update& WithType(UpdateType value) {
85 SetType(value);
86 return *this;
87 }
89
91
94 inline const Aws::Vector<UpdateParam>& GetParams() const { return m_params; }
95 inline bool ParamsHasBeenSet() const { return m_paramsHasBeenSet; }
96 template <typename ParamsT = Aws::Vector<UpdateParam>>
97 void SetParams(ParamsT&& value) {
98 m_paramsHasBeenSet = true;
99 m_params = std::forward<ParamsT>(value);
100 }
101 template <typename ParamsT = Aws::Vector<UpdateParam>>
102 Update& WithParams(ParamsT&& value) {
103 SetParams(std::forward<ParamsT>(value));
104 return *this;
105 }
106 template <typename ParamsT = UpdateParam>
107 Update& AddParams(ParamsT&& value) {
108 m_paramsHasBeenSet = true;
109 m_params.emplace_back(std::forward<ParamsT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
119 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
120 template <typename CreatedAtT = Aws::Utils::DateTime>
121 void SetCreatedAt(CreatedAtT&& value) {
122 m_createdAtHasBeenSet = true;
123 m_createdAt = std::forward<CreatedAtT>(value);
124 }
125 template <typename CreatedAtT = Aws::Utils::DateTime>
126 Update& WithCreatedAt(CreatedAtT&& value) {
127 SetCreatedAt(std::forward<CreatedAtT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Vector<ErrorDetail>& GetErrors() const { return m_errors; }
137 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
138 template <typename ErrorsT = Aws::Vector<ErrorDetail>>
139 void SetErrors(ErrorsT&& value) {
140 m_errorsHasBeenSet = true;
141 m_errors = std::forward<ErrorsT>(value);
142 }
143 template <typename ErrorsT = Aws::Vector<ErrorDetail>>
144 Update& WithErrors(ErrorsT&& value) {
145 SetErrors(std::forward<ErrorsT>(value));
146 return *this;
147 }
148 template <typename ErrorsT = ErrorDetail>
149 Update& AddErrors(ErrorsT&& value) {
150 m_errorsHasBeenSet = true;
151 m_errors.emplace_back(std::forward<ErrorsT>(value));
152 return *this;
153 }
155 private:
156 Aws::String m_id;
157
159
161
163
164 Aws::Utils::DateTime m_createdAt{};
165
167 bool m_idHasBeenSet = false;
168 bool m_statusHasBeenSet = false;
169 bool m_typeHasBeenSet = false;
170 bool m_paramsHasBeenSet = false;
171 bool m_createdAtHasBeenSet = false;
172 bool m_errorsHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace EKS
177} // namespace Aws
Update & WithId(IdT &&value)
Definition Update.h:52
const Aws::String & GetId() const
Definition Update.h:44
Update & WithType(UpdateType value)
Definition Update.h:84
const Aws::Vector< UpdateParam > & GetParams() const
Definition Update.h:94
bool IdHasBeenSet() const
Definition Update.h:45
bool StatusHasBeenSet() const
Definition Update.h:63
Update & AddParams(ParamsT &&value)
Definition Update.h:107
void SetStatus(UpdateStatus value)
Definition Update.h:64
Update & WithErrors(ErrorsT &&value)
Definition Update.h:144
AWS_EKS_API Update & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Update.h:118
bool ParamsHasBeenSet() const
Definition Update.h:95
Update & AddErrors(ErrorsT &&value)
Definition Update.h:149
AWS_EKS_API Update()=default
UpdateType GetType() const
Definition Update.h:78
void SetType(UpdateType value)
Definition Update.h:80
Update & WithStatus(UpdateStatus value)
Definition Update.h:68
Update & WithParams(ParamsT &&value)
Definition Update.h:102
void SetCreatedAt(CreatedAtT &&value)
Definition Update.h:121
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
bool TypeHasBeenSet() const
Definition Update.h:79
void SetErrors(ErrorsT &&value)
Definition Update.h:139
AWS_EKS_API Update(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ErrorDetail > & GetErrors() const
Definition Update.h:136
UpdateStatus GetStatus() const
Definition Update.h:62
bool CreatedAtHasBeenSet() const
Definition Update.h:119
Update & WithCreatedAt(CreatedAtT &&value)
Definition Update.h:126
bool ErrorsHasBeenSet() const
Definition Update.h:137
void SetParams(ParamsT &&value)
Definition Update.h:97
void SetId(IdT &&value)
Definition Update.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue