AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ImageIdT = Aws::String>
54 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
55 template<typename ImageIdT = Aws::String>
56 WorkspaceImage& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
67 template<typename NameT = Aws::String>
68 WorkspaceImage& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template<typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
79 template<typename DescriptionT = Aws::String>
80 WorkspaceImage& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
82
84
87 inline const OperatingSystem& GetOperatingSystem() const { return m_operatingSystem; }
88 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
89 template<typename OperatingSystemT = OperatingSystem>
90 void SetOperatingSystem(OperatingSystemT&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::forward<OperatingSystemT>(value); }
91 template<typename OperatingSystemT = OperatingSystem>
92 WorkspaceImage& WithOperatingSystem(OperatingSystemT&& value) { SetOperatingSystem(std::forward<OperatingSystemT>(value)); return *this;}
94
96
99 inline WorkspaceImageState GetState() const { return m_state; }
100 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
101 inline void SetState(WorkspaceImageState value) { m_stateHasBeenSet = true; m_state = value; }
102 inline WorkspaceImage& WithState(WorkspaceImageState value) { SetState(value); return *this;}
104
106
113 inline WorkspaceImageRequiredTenancy GetRequiredTenancy() const { return m_requiredTenancy; }
114 inline bool RequiredTenancyHasBeenSet() const { return m_requiredTenancyHasBeenSet; }
115 inline void SetRequiredTenancy(WorkspaceImageRequiredTenancy value) { m_requiredTenancyHasBeenSet = true; m_requiredTenancy = value; }
118
120
123 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
124 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
125 template<typename ErrorCodeT = Aws::String>
126 void SetErrorCode(ErrorCodeT&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::forward<ErrorCodeT>(value); }
127 template<typename ErrorCodeT = Aws::String>
128 WorkspaceImage& WithErrorCode(ErrorCodeT&& value) { SetErrorCode(std::forward<ErrorCodeT>(value)); return *this;}
130
132
135 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
136 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
137 template<typename ErrorMessageT = Aws::String>
138 void SetErrorMessage(ErrorMessageT&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::forward<ErrorMessageT>(value); }
139 template<typename ErrorMessageT = Aws::String>
140 WorkspaceImage& WithErrorMessage(ErrorMessageT&& value) { SetErrorMessage(std::forward<ErrorMessageT>(value)); return *this;}
142
144
149 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
150 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
151 template<typename CreatedT = Aws::Utils::DateTime>
152 void SetCreated(CreatedT&& value) { m_createdHasBeenSet = true; m_created = std::forward<CreatedT>(value); }
153 template<typename CreatedT = Aws::Utils::DateTime>
154 WorkspaceImage& WithCreated(CreatedT&& value) { SetCreated(std::forward<CreatedT>(value)); return *this;}
156
158
161 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
162 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
163 template<typename OwnerAccountIdT = Aws::String>
164 void SetOwnerAccountId(OwnerAccountIdT&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::forward<OwnerAccountIdT>(value); }
165 template<typename OwnerAccountIdT = Aws::String>
166 WorkspaceImage& WithOwnerAccountId(OwnerAccountIdT&& value) { SetOwnerAccountId(std::forward<OwnerAccountIdT>(value)); return *this;}
168
170
173 inline const UpdateResult& GetUpdates() const { return m_updates; }
174 inline bool UpdatesHasBeenSet() const { return m_updatesHasBeenSet; }
175 template<typename UpdatesT = UpdateResult>
176 void SetUpdates(UpdatesT&& value) { m_updatesHasBeenSet = true; m_updates = std::forward<UpdatesT>(value); }
177 template<typename UpdatesT = UpdateResult>
178 WorkspaceImage& WithUpdates(UpdatesT&& value) { SetUpdates(std::forward<UpdatesT>(value)); return *this;}
180
182
186 inline const Aws::Vector<ErrorDetails>& GetErrorDetails() const { return m_errorDetails; }
187 inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; }
188 template<typename ErrorDetailsT = Aws::Vector<ErrorDetails>>
189 void SetErrorDetails(ErrorDetailsT&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::forward<ErrorDetailsT>(value); }
190 template<typename ErrorDetailsT = Aws::Vector<ErrorDetails>>
191 WorkspaceImage& WithErrorDetails(ErrorDetailsT&& value) { SetErrorDetails(std::forward<ErrorDetailsT>(value)); return *this;}
192 template<typename ErrorDetailsT = ErrorDetails>
193 WorkspaceImage& AddErrorDetails(ErrorDetailsT&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails.emplace_back(std::forward<ErrorDetailsT>(value)); return *this; }
195 private:
196
197 Aws::String m_imageId;
198 bool m_imageIdHasBeenSet = false;
199
200 Aws::String m_name;
201 bool m_nameHasBeenSet = false;
202
203 Aws::String m_description;
204 bool m_descriptionHasBeenSet = false;
205
206 OperatingSystem m_operatingSystem;
207 bool m_operatingSystemHasBeenSet = false;
208
210 bool m_stateHasBeenSet = false;
211
213 bool m_requiredTenancyHasBeenSet = false;
214
215 Aws::String m_errorCode;
216 bool m_errorCodeHasBeenSet = false;
217
218 Aws::String m_errorMessage;
219 bool m_errorMessageHasBeenSet = false;
220
221 Aws::Utils::DateTime m_created{};
222 bool m_createdHasBeenSet = false;
223
224 Aws::String m_ownerAccountId;
225 bool m_ownerAccountIdHasBeenSet = false;
226
227 UpdateResult m_updates;
228 bool m_updatesHasBeenSet = false;
229
230 Aws::Vector<ErrorDetails> m_errorDetails;
231 bool m_errorDetailsHasBeenSet = false;
232 };
233
234} // namespace Model
235} // namespace WorkSpaces
236} // namespace Aws
const Aws::String & GetErrorCode() 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)
AWS_WORKSPACES_API WorkspaceImage & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkspaceImage & WithErrorCode(ErrorCodeT &&value)
AWS_WORKSPACES_API WorkspaceImage(Aws::Utils::Json::JsonView jsonValue)
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)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetErrorMessage() const
void SetErrorDetails(ErrorDetailsT &&value)
WorkspaceImage & WithState(WorkspaceImageState value)
WorkspaceImage & AddErrorDetails(ErrorDetailsT &&value)
void SetOperatingSystem(OperatingSystemT &&value)
AWS_WORKSPACES_API WorkspaceImage()=default
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
Aws::Utils::Json::JsonValue JsonValue