AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
WorkspaceImage.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/crt/cbor/Cbor.h>
11#include <aws/workspaces/WorkSpaces_EXPORTS.h>
12#include <aws/workspaces/model/ErrorDetails.h>
13#include <aws/workspaces/model/OperatingSystem.h>
14#include <aws/workspaces/model/UpdateResult.h>
15#include <aws/workspaces/model/WorkspaceImageRequiredTenancy.h>
16#include <aws/workspaces/model/WorkspaceImageState.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Cbor {
23class CborValue;
24} // namespace Cbor
25} // namespace Utils
26namespace WorkSpaces {
27namespace Model {
28
35 public:
36 AWS_WORKSPACES_API WorkspaceImage() = default;
37 AWS_WORKSPACES_API WorkspaceImage(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_WORKSPACES_API WorkspaceImage& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
40
42
45 inline const Aws::String& GetImageId() const { return m_imageId; }
46 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
47 template <typename ImageIdT = Aws::String>
48 void SetImageId(ImageIdT&& value) {
49 m_imageIdHasBeenSet = true;
50 m_imageId = std::forward<ImageIdT>(value);
51 }
52 template <typename ImageIdT = Aws::String>
53 WorkspaceImage& WithImageId(ImageIdT&& value) {
54 SetImageId(std::forward<ImageIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
71 WorkspaceImage& WithName(NameT&& value) {
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
89 WorkspaceImage& WithDescription(DescriptionT&& value) {
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
99 inline const OperatingSystem& GetOperatingSystem() const { return m_operatingSystem; }
100 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
101 template <typename OperatingSystemT = OperatingSystem>
102 void SetOperatingSystem(OperatingSystemT&& value) {
103 m_operatingSystemHasBeenSet = true;
104 m_operatingSystem = std::forward<OperatingSystemT>(value);
105 }
106 template <typename OperatingSystemT = OperatingSystem>
107 WorkspaceImage& WithOperatingSystem(OperatingSystemT&& value) {
108 SetOperatingSystem(std::forward<OperatingSystemT>(value));
109 return *this;
110 }
112
114
117 inline WorkspaceImageState GetState() const { return m_state; }
118 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
119 inline void SetState(WorkspaceImageState value) {
120 m_stateHasBeenSet = true;
121 m_state = value;
122 }
124 SetState(value);
125 return *this;
126 }
128
130
137 inline WorkspaceImageRequiredTenancy GetRequiredTenancy() const { return m_requiredTenancy; }
138 inline bool RequiredTenancyHasBeenSet() const { return m_requiredTenancyHasBeenSet; }
140 m_requiredTenancyHasBeenSet = true;
141 m_requiredTenancy = value;
142 }
144 SetRequiredTenancy(value);
145 return *this;
146 }
148
150
153 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
154 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
155 template <typename ErrorCodeT = Aws::String>
156 void SetErrorCode(ErrorCodeT&& value) {
157 m_errorCodeHasBeenSet = true;
158 m_errorCode = std::forward<ErrorCodeT>(value);
159 }
160 template <typename ErrorCodeT = Aws::String>
161 WorkspaceImage& WithErrorCode(ErrorCodeT&& value) {
162 SetErrorCode(std::forward<ErrorCodeT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
172 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
173 template <typename ErrorMessageT = Aws::String>
174 void SetErrorMessage(ErrorMessageT&& value) {
175 m_errorMessageHasBeenSet = true;
176 m_errorMessage = std::forward<ErrorMessageT>(value);
177 }
178 template <typename ErrorMessageT = Aws::String>
179 WorkspaceImage& WithErrorMessage(ErrorMessageT&& value) {
180 SetErrorMessage(std::forward<ErrorMessageT>(value));
181 return *this;
182 }
184
186
191 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
192 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
193 template <typename CreatedT = Aws::Utils::DateTime>
194 void SetCreated(CreatedT&& value) {
195 m_createdHasBeenSet = true;
196 m_created = std::forward<CreatedT>(value);
197 }
198 template <typename CreatedT = Aws::Utils::DateTime>
199 WorkspaceImage& WithCreated(CreatedT&& value) {
200 SetCreated(std::forward<CreatedT>(value));
201 return *this;
202 }
204
206
209 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
210 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
211 template <typename OwnerAccountIdT = Aws::String>
212 void SetOwnerAccountId(OwnerAccountIdT&& value) {
213 m_ownerAccountIdHasBeenSet = true;
214 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
215 }
216 template <typename OwnerAccountIdT = Aws::String>
217 WorkspaceImage& WithOwnerAccountId(OwnerAccountIdT&& value) {
218 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
219 return *this;
220 }
222
224
227 inline const UpdateResult& GetUpdates() const { return m_updates; }
228 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
229 template <typename UpdatesT = UpdateResult>
230 void SetUpdates(UpdatesT&& value) {
231 m_updatesHasBeenSet = true;
232 m_updates = std::forward<UpdatesT>(value);
233 }
234 template <typename UpdatesT = UpdateResult>
235 WorkspaceImage& WithUpdates(UpdatesT&& value) {
236 SetUpdates(std::forward<UpdatesT>(value));
237 return *this;
238 }
240
242
246 inline const Aws::Vector<ErrorDetails>& GetErrorDetails() const { return m_errorDetails; }
247 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
248 template <typename ErrorDetailsT = Aws::Vector<ErrorDetails>>
249 void SetErrorDetails(ErrorDetailsT&& value) {
250 m_errorDetailsHasBeenSet = true;
251 m_errorDetails = std::forward<ErrorDetailsT>(value);
252 }
253 template <typename ErrorDetailsT = Aws::Vector<ErrorDetails>>
254 WorkspaceImage& WithErrorDetails(ErrorDetailsT&& value) {
255 SetErrorDetails(std::forward<ErrorDetailsT>(value));
256 return *this;
257 }
258 template <typename ErrorDetailsT = ErrorDetails>
259 WorkspaceImage& AddErrorDetails(ErrorDetailsT&& value) {
260 m_errorDetailsHasBeenSet = true;
261 m_errorDetails.emplace_back(std::forward<ErrorDetailsT>(value));
262 return *this;
263 }
265 private:
266 Aws::String m_imageId;
267
268 Aws::String m_name;
269
270 Aws::String m_description;
271
272 OperatingSystem m_operatingSystem;
273
275
277
278 Aws::String m_errorCode;
279
280 Aws::String m_errorMessage;
281
282 Aws::Utils::DateTime m_created{};
283
284 Aws::String m_ownerAccountId;
285
286 UpdateResult m_updates;
287
288 Aws::Vector<ErrorDetails> m_errorDetails;
289 bool m_imageIdHasBeenSet = false;
290 bool m_nameHasBeenSet = false;
291 bool m_descriptionHasBeenSet = false;
292 bool m_operatingSystemHasBeenSet = false;
293 bool m_stateHasBeenSet = false;
294 bool m_requiredTenancyHasBeenSet = false;
295 bool m_errorCodeHasBeenSet = false;
296 bool m_errorMessageHasBeenSet = false;
297 bool m_createdHasBeenSet = false;
298 bool m_ownerAccountIdHasBeenSet = false;
299 bool m_updatesHasBeenSet = false;
300 bool m_errorDetailsHasBeenSet = false;
301};
302
303} // namespace Model
304} // namespace WorkSpaces
305} // namespace Aws
const Aws::String & GetErrorCode() const
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
WorkspaceImage & WithErrorMessage(ErrorMessageT &&value)
const Aws::String & GetOwnerAccountId() const
const OperatingSystem & GetOperatingSystem() const
WorkspaceImage & WithImageId(ImageIdT &&value)
void SetRequiredTenancy(WorkspaceImageRequiredTenancy value)
WorkspaceImage & WithUpdates(UpdatesT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetImageId() const
WorkspaceImage & WithName(NameT &&value)
WorkspaceImage & WithOperatingSystem(OperatingSystemT &&value)
WorkspaceImage & WithErrorCode(ErrorCodeT &&value)
WorkspaceImage & WithRequiredTenancy(WorkspaceImageRequiredTenancy value)
void SetDescription(DescriptionT &&value)
WorkspaceImage & WithCreated(CreatedT &&value)
const Aws::Vector< ErrorDetails > & GetErrorDetails() const
void SetState(WorkspaceImageState value)
const UpdateResult & GetUpdates() const
const Aws::String & GetName() const
const Aws::Utils::DateTime & GetCreated() const
void SetErrorCode(ErrorCodeT &&value)
WorkspaceImage & WithDescription(DescriptionT &&value)
void SetErrorMessage(ErrorMessageT &&value)
void SetOwnerAccountId(OwnerAccountIdT &&value)
WorkspaceImage & WithErrorDetails(ErrorDetailsT &&value)
const Aws::String & GetErrorMessage() const
void SetErrorDetails(ErrorDetailsT &&value)
AWS_WORKSPACES_API WorkspaceImage(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
WorkspaceImage & WithState(WorkspaceImageState value)
WorkspaceImage & AddErrorDetails(ErrorDetailsT &&value)
void SetOperatingSystem(OperatingSystemT &&value)
AWS_WORKSPACES_API WorkspaceImage()=default
AWS_WORKSPACES_API WorkspaceImage & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
WorkspaceImageState GetState() const
WorkspaceImage & WithOwnerAccountId(OwnerAccountIdT &&value)
WorkspaceImageRequiredTenancy GetRequiredTenancy() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector