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>
37 AWS_WORKSPACES_API
WorkspaceImage(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_WORKSPACES_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
47 template <
typename ImageIdT = Aws::String>
49 m_imageIdHasBeenSet =
true;
50 m_imageId = std::forward<ImageIdT>(value);
52 template <
typename ImageIdT = Aws::String>
65 template <
typename NameT = Aws::String>
67 m_nameHasBeenSet =
true;
68 m_name = std::forward<NameT>(value);
70 template <
typename NameT = Aws::String>
72 SetName(std::forward<NameT>(value));
83 template <
typename DescriptionT = Aws::String>
85 m_descriptionHasBeenSet =
true;
86 m_description = std::forward<DescriptionT>(value);
88 template <
typename DescriptionT = Aws::String>
101 template <
typename OperatingSystemT = OperatingSystem>
103 m_operatingSystemHasBeenSet =
true;
104 m_operatingSystem = std::forward<OperatingSystemT>(value);
106 template <
typename OperatingSystemT = OperatingSystem>
120 m_stateHasBeenSet =
true;
140 m_requiredTenancyHasBeenSet =
true;
141 m_requiredTenancy = value;
155 template <
typename ErrorCodeT = Aws::String>
157 m_errorCodeHasBeenSet =
true;
158 m_errorCode = std::forward<ErrorCodeT>(value);
160 template <
typename ErrorCodeT = Aws::String>
173 template <
typename ErrorMessageT = Aws::String>
175 m_errorMessageHasBeenSet =
true;
176 m_errorMessage = std::forward<ErrorMessageT>(value);
178 template <
typename ErrorMessageT = Aws::String>
193 template <
typename CreatedT = Aws::Utils::DateTime>
195 m_createdHasBeenSet =
true;
196 m_created = std::forward<CreatedT>(value);
198 template <
typename CreatedT = Aws::Utils::DateTime>
211 template <
typename OwnerAccountIdT = Aws::String>
213 m_ownerAccountIdHasBeenSet =
true;
214 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
216 template <
typename OwnerAccountIdT = Aws::String>
229 template <
typename UpdatesT = UpdateResult>
231 m_updatesHasBeenSet =
true;
232 m_updates = std::forward<UpdatesT>(value);
234 template <
typename UpdatesT = UpdateResult>
248 template <
typename ErrorDetailsT = Aws::Vector<ErrorDetails>>
250 m_errorDetailsHasBeenSet =
true;
251 m_errorDetails = std::forward<ErrorDetailsT>(value);
253 template <
typename ErrorDetailsT = Aws::Vector<ErrorDetails>>
258 template <
typename ErrorDetailsT = ErrorDetails>
260 m_errorDetailsHasBeenSet =
true;
261 m_errorDetails.emplace_back(std::forward<ErrorDetailsT>(value));
286 UpdateResult m_updates;
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;
const Aws::String & GetErrorCode() const
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetImageId(ImageIdT &&value)
WorkspaceImage & WithErrorMessage(ErrorMessageT &&value)
void SetCreated(CreatedT &&value)
const Aws::String & GetOwnerAccountId() const
const OperatingSystem & GetOperatingSystem() const
WorkspaceImage & WithImageId(ImageIdT &&value)
bool NameHasBeenSet() const
void SetRequiredTenancy(WorkspaceImageRequiredTenancy value)
WorkspaceImage & WithUpdates(UpdatesT &&value)
bool ErrorCodeHasBeenSet() const
const Aws::String & GetDescription() const
const Aws::String & GetImageId() const
WorkspaceImage & WithName(NameT &&value)
bool DescriptionHasBeenSet() const
WorkspaceImage & WithOperatingSystem(OperatingSystemT &&value)
void SetUpdates(UpdatesT &&value)
WorkspaceImage & WithErrorCode(ErrorCodeT &&value)
void SetName(NameT &&value)
WorkspaceImage & WithRequiredTenancy(WorkspaceImageRequiredTenancy value)
void SetDescription(DescriptionT &&value)
WorkspaceImage & WithCreated(CreatedT &&value)
const Aws::Vector< ErrorDetails > & GetErrorDetails() const
bool RequiredTenancyHasBeenSet() const
void SetState(WorkspaceImageState value)
const UpdateResult & GetUpdates() const
const Aws::String & GetName() const
const Aws::Utils::DateTime & GetCreated() const
bool CreatedHasBeenSet() const
void SetErrorCode(ErrorCodeT &&value)
bool OwnerAccountIdHasBeenSet() const
WorkspaceImage & WithDescription(DescriptionT &&value)
bool UpdatesHasBeenSet() const
void SetErrorMessage(ErrorMessageT &&value)
bool StateHasBeenSet() const
bool ImageIdHasBeenSet() const
bool OperatingSystemHasBeenSet() const
bool ErrorDetailsHasBeenSet() const
void SetOwnerAccountId(OwnerAccountIdT &&value)
WorkspaceImage & WithErrorDetails(ErrorDetailsT &&value)
const Aws::String & GetErrorMessage() const
void SetErrorDetails(ErrorDetailsT &&value)
bool ErrorMessageHasBeenSet() const
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
WorkspaceImageRequiredTenancy
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector