/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace WorkSpaces { namespace Model { /** */ class CreateWorkspaceImageRequest : public WorkSpacesRequest { public: AWS_WORKSPACES_API CreateWorkspaceImageRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateWorkspaceImage"; } AWS_WORKSPACES_API Aws::String SerializePayload() const override; AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the new WorkSpace image.

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

The name of the new WorkSpace image.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the new WorkSpace image.

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

The name of the new WorkSpace image.

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

The name of the new WorkSpace image.

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

The name of the new WorkSpace image.

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

The name of the new WorkSpace image.

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

The name of the new WorkSpace image.

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

The description of the new WorkSpace image.

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

The description of the new WorkSpace image.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the new WorkSpace image.

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

The description of the new WorkSpace image.

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

The description of the new WorkSpace image.

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

The description of the new WorkSpace image.

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

The description of the new WorkSpace image.

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

The description of the new WorkSpace image.

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

The identifier of the source WorkSpace

*/ inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } /** *

The identifier of the source WorkSpace

*/ inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } /** *

The identifier of the source WorkSpace

*/ inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } /** *

The identifier of the source WorkSpace

*/ inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } /** *

The identifier of the source WorkSpace

*/ inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } /** *

The identifier of the source WorkSpace

*/ inline CreateWorkspaceImageRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} /** *

The identifier of the source WorkSpace

*/ inline CreateWorkspaceImageRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} /** *

The identifier of the source WorkSpace

*/ inline CreateWorkspaceImageRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} /** *

The tags that you want to add to the new WorkSpace image. To add tags when * you're creating the image, you must create an IAM policy that grants your IAM * user permission to use workspaces:CreateTags.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags that you want to add to the new WorkSpace image. To add tags when * you're creating the image, you must create an IAM policy that grants your IAM * user permission to use workspaces:CreateTags.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags that you want to add to the new WorkSpace image. To add tags when * you're creating the image, you must create an IAM policy that grants your IAM * user permission to use workspaces:CreateTags.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags that you want to add to the new WorkSpace image. To add tags when * you're creating the image, you must create an IAM policy that grants your IAM * user permission to use workspaces:CreateTags.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags that you want to add to the new WorkSpace image. To add tags when * you're creating the image, you must create an IAM policy that grants your IAM * user permission to use workspaces:CreateTags.

*/ inline CreateWorkspaceImageRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags that you want to add to the new WorkSpace image. To add tags when * you're creating the image, you must create an IAM policy that grants your IAM * user permission to use workspaces:CreateTags.

*/ inline CreateWorkspaceImageRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags that you want to add to the new WorkSpace image. To add tags when * you're creating the image, you must create an IAM policy that grants your IAM * user permission to use workspaces:CreateTags.

*/ inline CreateWorkspaceImageRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags that you want to add to the new WorkSpace image. To add tags when * you're creating the image, you must create an IAM policy that grants your IAM * user permission to use workspaces:CreateTags.

*/ inline CreateWorkspaceImageRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_workspaceId; bool m_workspaceIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws