AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkspaceImage.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workspaces/model/OperatingSystem.h>
10#include <aws/workspaces/model/WorkspaceImageState.h>
11#include <aws/workspaces/model/WorkspaceImageRequiredTenancy.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/workspaces/model/UpdateResult.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/workspaces/model/ErrorDetails.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace WorkSpaces
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_WORKSPACES_API WorkspaceImage();
42 AWS_WORKSPACES_API WorkspaceImage(Aws::Utils::Json::JsonView jsonValue);
43 AWS_WORKSPACES_API WorkspaceImage& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetImageId() const{ return m_imageId; }
52 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
53 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
54 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
55 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
56 inline WorkspaceImage& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
57 inline WorkspaceImage& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
58 inline WorkspaceImage& WithImageId(const char* value) { SetImageId(value); return *this;}
60
62
65 inline const Aws::String& GetName() const{ return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
68 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
69 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 inline WorkspaceImage& WithName(const Aws::String& value) { SetName(value); return *this;}
71 inline WorkspaceImage& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
72 inline WorkspaceImage& WithName(const char* value) { SetName(value); return *this;}
74
76
79 inline const Aws::String& GetDescription() const{ return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
82 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
83 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
84 inline WorkspaceImage& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
85 inline WorkspaceImage& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
86 inline WorkspaceImage& WithDescription(const char* value) { SetDescription(value); return *this;}
88
90
93 inline const OperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; }
94 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
95 inline void SetOperatingSystem(const OperatingSystem& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
96 inline void SetOperatingSystem(OperatingSystem&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
97 inline WorkspaceImage& WithOperatingSystem(const OperatingSystem& value) { SetOperatingSystem(value); return *this;}
98 inline WorkspaceImage& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(value)); return *this;}
100
102
105 inline const WorkspaceImageState& GetState() const{ return m_state; }
106 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
107 inline void SetState(const WorkspaceImageState& value) { m_stateHasBeenSet = true; m_state = value; }
108 inline void SetState(WorkspaceImageState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
109 inline WorkspaceImage& WithState(const WorkspaceImageState& value) { SetState(value); return *this;}
110 inline WorkspaceImage& WithState(WorkspaceImageState&& value) { SetState(std::move(value)); return *this;}
112
114
121 inline const WorkspaceImageRequiredTenancy& GetRequiredTenancy() const{ return m_requiredTenancy; }
122 inline bool RequiredTenancyHasBeenSet() const { return m_requiredTenancyHasBeenSet; }
123 inline void SetRequiredTenancy(const WorkspaceImageRequiredTenancy& value) { m_requiredTenancyHasBeenSet = true; m_requiredTenancy = value; }
124 inline void SetRequiredTenancy(WorkspaceImageRequiredTenancy&& value) { m_requiredTenancyHasBeenSet = true; m_requiredTenancy = std::move(value); }
126 inline WorkspaceImage& WithRequiredTenancy(WorkspaceImageRequiredTenancy&& value) { SetRequiredTenancy(std::move(value)); return *this;}
128
130
133 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
134 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
135 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
136 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
137 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
138 inline WorkspaceImage& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
139 inline WorkspaceImage& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
140 inline WorkspaceImage& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
142
144
147 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
148 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
149 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
150 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
151 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
152 inline WorkspaceImage& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
153 inline WorkspaceImage& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
154 inline WorkspaceImage& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
156
158
163 inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
164 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
165 inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
166 inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
167 inline WorkspaceImage& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
168 inline WorkspaceImage& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
170
172
175 inline const Aws::String& GetOwnerAccountId() const{ return m_ownerAccountId; }
176 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
177 inline void SetOwnerAccountId(const Aws::String& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = value; }
178 inline void SetOwnerAccountId(Aws::String&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::move(value); }
179 inline void SetOwnerAccountId(const char* value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId.assign(value); }
180 inline WorkspaceImage& WithOwnerAccountId(const Aws::String& value) { SetOwnerAccountId(value); return *this;}
181 inline WorkspaceImage& WithOwnerAccountId(Aws::String&& value) { SetOwnerAccountId(std::move(value)); return *this;}
182 inline WorkspaceImage& WithOwnerAccountId(const char* value) { SetOwnerAccountId(value); return *this;}
184
186
189 inline const UpdateResult& GetUpdates() const{ return m_updates; }
190 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
191 inline void SetUpdates(const UpdateResult& value) { m_updatesHasBeenSet = true; m_updates = value; }
192 inline void SetUpdates(UpdateResult&& value) { m_updatesHasBeenSet = true; m_updates = std::move(value); }
193 inline WorkspaceImage& WithUpdates(const UpdateResult& value) { SetUpdates(value); return *this;}
194 inline WorkspaceImage& WithUpdates(UpdateResult&& value) { SetUpdates(std::move(value)); return *this;}
196
198
202 inline const Aws::Vector<ErrorDetails>& GetErrorDetails() const{ return m_errorDetails; }
203 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
204 inline void SetErrorDetails(const Aws::Vector<ErrorDetails>& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; }
205 inline void SetErrorDetails(Aws::Vector<ErrorDetails>&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); }
206 inline WorkspaceImage& WithErrorDetails(const Aws::Vector<ErrorDetails>& value) { SetErrorDetails(value); return *this;}
207 inline WorkspaceImage& WithErrorDetails(Aws::Vector<ErrorDetails>&& value) { SetErrorDetails(std::move(value)); return *this;}
208 inline WorkspaceImage& AddErrorDetails(const ErrorDetails& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.push_back(value); return *this; }
209 inline WorkspaceImage& AddErrorDetails(ErrorDetails&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.push_back(std::move(value)); return *this; }
211 private:
212
213 Aws::String m_imageId;
214 bool m_imageIdHasBeenSet = false;
215
216 Aws::String m_name;
217 bool m_nameHasBeenSet = false;
218
219 Aws::String m_description;
220 bool m_descriptionHasBeenSet = false;
221
222 OperatingSystem m_operatingSystem;
223 bool m_operatingSystemHasBeenSet = false;
224
225 WorkspaceImageState m_state;
226 bool m_stateHasBeenSet = false;
227
228 WorkspaceImageRequiredTenancy m_requiredTenancy;
229 bool m_requiredTenancyHasBeenSet = false;
230
231 Aws::String m_errorCode;
232 bool m_errorCodeHasBeenSet = false;
233
234 Aws::String m_errorMessage;
235 bool m_errorMessageHasBeenSet = false;
236
237 Aws::Utils::DateTime m_created;
238 bool m_createdHasBeenSet = false;
239
240 Aws::String m_ownerAccountId;
241 bool m_ownerAccountIdHasBeenSet = false;
242
243 UpdateResult m_updates;
244 bool m_updatesHasBeenSet = false;
245
246 Aws::Vector<ErrorDetails> m_errorDetails;
247 bool m_errorDetailsHasBeenSet = false;
248 };
249
250} // namespace Model
251} // namespace WorkSpaces
252} // namespace Aws
const Aws::String & GetErrorCode() const
WorkspaceImage & WithState(WorkspaceImageState &&value)
const Aws::String & GetOwnerAccountId() const
const OperatingSystem & GetOperatingSystem() const
void SetUpdates(UpdateResult &&value)
WorkspaceImage & WithErrorMessage(const char *value)
WorkspaceImage & AddErrorDetails(const ErrorDetails &value)
void SetOperatingSystem(const OperatingSystem &value)
WorkspaceImage & WithDescription(const char *value)
WorkspaceImage & WithRequiredTenancy(WorkspaceImageRequiredTenancy &&value)
void SetDescription(const Aws::String &value)
WorkspaceImage & WithImageId(const Aws::String &value)
const WorkspaceImageRequiredTenancy & GetRequiredTenancy() const
const Aws::String & GetDescription() const
const Aws::String & GetImageId() const
AWS_WORKSPACES_API WorkspaceImage & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkspaceImage & WithOwnerAccountId(const char *value)
WorkspaceImage & WithImageId(const char *value)
WorkspaceImage & WithRequiredTenancy(const WorkspaceImageRequiredTenancy &value)
void SetErrorDetails(const Aws::Vector< ErrorDetails > &value)
WorkspaceImage & WithErrorDetails(const Aws::Vector< ErrorDetails > &value)
WorkspaceImage & WithUpdates(const UpdateResult &value)
WorkspaceImage & WithImageId(Aws::String &&value)
void SetDescription(const char *value)
AWS_WORKSPACES_API WorkspaceImage(Aws::Utils::Json::JsonView jsonValue)
void SetErrorCode(Aws::String &&value)
WorkspaceImage & WithErrorMessage(const Aws::String &value)
WorkspaceImage & WithState(const WorkspaceImageState &value)
WorkspaceImage & WithOperatingSystem(const OperatingSystem &value)
const Aws::Vector< ErrorDetails > & GetErrorDetails() const
void SetName(Aws::String &&value)
WorkspaceImage & WithErrorDetails(Aws::Vector< ErrorDetails > &&value)
const UpdateResult & GetUpdates() const
WorkspaceImage & WithCreated(const Aws::Utils::DateTime &value)
WorkspaceImage & AddErrorDetails(ErrorDetails &&value)
const Aws::String & GetName() const
void SetErrorDetails(Aws::Vector< ErrorDetails > &&value)
void SetState(const WorkspaceImageState &value)
const Aws::Utils::DateTime & GetCreated() const
void SetOwnerAccountId(Aws::String &&value)
void SetState(WorkspaceImageState &&value)
void SetName(const Aws::String &value)
void SetErrorMessage(const Aws::String &value)
void SetErrorMessage(const char *value)
WorkspaceImage & WithErrorCode(const Aws::String &value)
WorkspaceImage & WithUpdates(UpdateResult &&value)
void SetImageId(const Aws::String &value)
WorkspaceImage & WithOperatingSystem(OperatingSystem &&value)
WorkspaceImage & WithOwnerAccountId(Aws::String &&value)
void SetRequiredTenancy(WorkspaceImageRequiredTenancy &&value)
WorkspaceImage & WithDescription(Aws::String &&value)
void SetCreated(const Aws::Utils::DateTime &value)
const WorkspaceImageState & GetState() const
void SetCreated(Aws::Utils::DateTime &&value)
WorkspaceImage & WithOwnerAccountId(const Aws::String &value)
void SetUpdates(const UpdateResult &value)
void SetImageId(Aws::String &&value)
WorkspaceImage & WithName(Aws::String &&value)
void SetErrorMessage(Aws::String &&value)
void SetOwnerAccountId(const Aws::String &value)
WorkspaceImage & WithDescription(const Aws::String &value)
void SetDescription(Aws::String &&value)
void SetOperatingSystem(OperatingSystem &&value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetErrorMessage() const
WorkspaceImage & WithErrorCode(Aws::String &&value)
WorkspaceImage & WithErrorMessage(Aws::String &&value)
void SetErrorCode(const Aws::String &value)
WorkspaceImage & WithCreated(Aws::Utils::DateTime &&value)
WorkspaceImage & WithName(const Aws::String &value)
void SetRequiredTenancy(const WorkspaceImageRequiredTenancy &value)
WorkspaceImage & WithErrorCode(const char *value)
WorkspaceImage & WithName(const char *value)
void SetOwnerAccountId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue