/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace WorkSpaces { namespace Model { class CreateWorkspaceImageResult { public: AWS_WORKSPACES_API CreateWorkspaceImageResult(); AWS_WORKSPACES_API CreateWorkspaceImageResult(const Aws::AmazonWebServiceResult& result); AWS_WORKSPACES_API CreateWorkspaceImageResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The identifier of the new WorkSpace image.

*/ inline const Aws::String& GetImageId() const{ return m_imageId; } /** *

The identifier of the new WorkSpace image.

*/ inline void SetImageId(const Aws::String& value) { m_imageId = value; } /** *

The identifier of the new WorkSpace image.

*/ inline void SetImageId(Aws::String&& value) { m_imageId = std::move(value); } /** *

The identifier of the new WorkSpace image.

*/ inline void SetImageId(const char* value) { m_imageId.assign(value); } /** *

The identifier of the new WorkSpace image.

*/ inline CreateWorkspaceImageResult& WithImageId(const Aws::String& value) { SetImageId(value); return *this;} /** *

The identifier of the new WorkSpace image.

*/ inline CreateWorkspaceImageResult& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;} /** *

The identifier of the new WorkSpace image.

*/ inline CreateWorkspaceImageResult& WithImageId(const char* value) { SetImageId(value); return *this;} /** *

The name of the image.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the image.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the image.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The name of the image.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the image.

*/ inline CreateWorkspaceImageResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the image.

*/ inline CreateWorkspaceImageResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the image.

*/ inline CreateWorkspaceImageResult& WithName(const char* value) { SetName(value); return *this;} /** *

The description of the image.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the image.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

The description of the image.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

The description of the image.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description of the image.

*/ inline CreateWorkspaceImageResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the image.

*/ inline CreateWorkspaceImageResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the image.

*/ inline CreateWorkspaceImageResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The operating system that the image is running.

*/ inline const OperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; } /** *

The operating system that the image is running.

*/ inline void SetOperatingSystem(const OperatingSystem& value) { m_operatingSystem = value; } /** *

The operating system that the image is running.

*/ inline void SetOperatingSystem(OperatingSystem&& value) { m_operatingSystem = std::move(value); } /** *

The operating system that the image is running.

*/ inline CreateWorkspaceImageResult& WithOperatingSystem(const OperatingSystem& value) { SetOperatingSystem(value); return *this;} /** *

The operating system that the image is running.

*/ inline CreateWorkspaceImageResult& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(value)); return *this;} /** *

The availability status of the image.

*/ inline const WorkspaceImageState& GetState() const{ return m_state; } /** *

The availability status of the image.

*/ inline void SetState(const WorkspaceImageState& value) { m_state = value; } /** *

The availability status of the image.

*/ inline void SetState(WorkspaceImageState&& value) { m_state = std::move(value); } /** *

The availability status of the image.

*/ inline CreateWorkspaceImageResult& WithState(const WorkspaceImageState& value) { SetState(value); return *this;} /** *

The availability status of the image.

*/ inline CreateWorkspaceImageResult& WithState(WorkspaceImageState&& value) { SetState(std::move(value)); return *this;} /** *

Specifies whether the image is running on dedicated hardware. When Bring Your * Own License (BYOL) is enabled, this value is set to DEDICATED. For more * information, see * Bring Your Own Windows Desktop Images..

*/ inline const WorkspaceImageRequiredTenancy& GetRequiredTenancy() const{ return m_requiredTenancy; } /** *

Specifies whether the image is running on dedicated hardware. When Bring Your * Own License (BYOL) is enabled, this value is set to DEDICATED. For more * information, see * Bring Your Own Windows Desktop Images..

*/ inline void SetRequiredTenancy(const WorkspaceImageRequiredTenancy& value) { m_requiredTenancy = value; } /** *

Specifies whether the image is running on dedicated hardware. When Bring Your * Own License (BYOL) is enabled, this value is set to DEDICATED. For more * information, see * Bring Your Own Windows Desktop Images..

*/ inline void SetRequiredTenancy(WorkspaceImageRequiredTenancy&& value) { m_requiredTenancy = std::move(value); } /** *

Specifies whether the image is running on dedicated hardware. When Bring Your * Own License (BYOL) is enabled, this value is set to DEDICATED. For more * information, see * Bring Your Own Windows Desktop Images..

*/ inline CreateWorkspaceImageResult& WithRequiredTenancy(const WorkspaceImageRequiredTenancy& value) { SetRequiredTenancy(value); return *this;} /** *

Specifies whether the image is running on dedicated hardware. When Bring Your * Own License (BYOL) is enabled, this value is set to DEDICATED. For more * information, see * Bring Your Own Windows Desktop Images..

*/ inline CreateWorkspaceImageResult& WithRequiredTenancy(WorkspaceImageRequiredTenancy&& value) { SetRequiredTenancy(std::move(value)); return *this;} /** *

The date when the image was created.

*/ inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; } /** *

The date when the image was created.

*/ inline void SetCreated(const Aws::Utils::DateTime& value) { m_created = value; } /** *

The date when the image was created.

*/ inline void SetCreated(Aws::Utils::DateTime&& value) { m_created = std::move(value); } /** *

The date when the image was created.

*/ inline CreateWorkspaceImageResult& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;} /** *

The date when the image was created.

*/ inline CreateWorkspaceImageResult& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;} /** *

The identifier of the Amazon Web Services account that owns the image.

*/ inline const Aws::String& GetOwnerAccountId() const{ return m_ownerAccountId; } /** *

The identifier of the Amazon Web Services account that owns the image.

*/ inline void SetOwnerAccountId(const Aws::String& value) { m_ownerAccountId = value; } /** *

The identifier of the Amazon Web Services account that owns the image.

*/ inline void SetOwnerAccountId(Aws::String&& value) { m_ownerAccountId = std::move(value); } /** *

The identifier of the Amazon Web Services account that owns the image.

*/ inline void SetOwnerAccountId(const char* value) { m_ownerAccountId.assign(value); } /** *

The identifier of the Amazon Web Services account that owns the image.

*/ inline CreateWorkspaceImageResult& WithOwnerAccountId(const Aws::String& value) { SetOwnerAccountId(value); return *this;} /** *

The identifier of the Amazon Web Services account that owns the image.

*/ inline CreateWorkspaceImageResult& WithOwnerAccountId(Aws::String&& value) { SetOwnerAccountId(std::move(value)); return *this;} /** *

The identifier of the Amazon Web Services account that owns the image.

*/ inline CreateWorkspaceImageResult& WithOwnerAccountId(const char* value) { SetOwnerAccountId(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateWorkspaceImageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateWorkspaceImageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateWorkspaceImageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_imageId; Aws::String m_name; Aws::String m_description; OperatingSystem m_operatingSystem; WorkspaceImageState m_state; WorkspaceImageRequiredTenancy m_requiredTenancy; Aws::Utils::DateTime m_created; Aws::String m_ownerAccountId; Aws::String m_requestId; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws