/** * 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 CreateUpdatedWorkspaceImageRequest : public WorkSpacesRequest { public: AWS_WORKSPACES_API CreateUpdatedWorkspaceImageRequest(); // 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 "CreateUpdatedWorkspaceImage"; } AWS_WORKSPACES_API Aws::String SerializePayload() const override; AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the new updated WorkSpace image.

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

The name of the new updated WorkSpace image.

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

The name of the new updated WorkSpace image.

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

The name of the new updated WorkSpace image.

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

The name of the new updated WorkSpace image.

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

The name of the new updated WorkSpace image.

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

The name of the new updated WorkSpace image.

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

The name of the new updated WorkSpace image.

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

A description of whether updates for the WorkSpace image are available.

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

A description of whether updates for the WorkSpace image are available.

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

A description of whether updates for the WorkSpace image are available.

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

A description of whether updates for the WorkSpace image are available.

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

A description of whether updates for the WorkSpace image are available.

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

A description of whether updates for the WorkSpace image are available.

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

A description of whether updates for the WorkSpace image are available.

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

A description of whether updates for the WorkSpace image are available.

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

The identifier of the source WorkSpace image.

*/ inline const Aws::String& GetSourceImageId() const{ return m_sourceImageId; } /** *

The identifier of the source WorkSpace image.

*/ inline bool SourceImageIdHasBeenSet() const { return m_sourceImageIdHasBeenSet; } /** *

The identifier of the source WorkSpace image.

*/ inline void SetSourceImageId(const Aws::String& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = value; } /** *

The identifier of the source WorkSpace image.

*/ inline void SetSourceImageId(Aws::String&& value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId = std::move(value); } /** *

The identifier of the source WorkSpace image.

*/ inline void SetSourceImageId(const char* value) { m_sourceImageIdHasBeenSet = true; m_sourceImageId.assign(value); } /** *

The identifier of the source WorkSpace image.

*/ inline CreateUpdatedWorkspaceImageRequest& WithSourceImageId(const Aws::String& value) { SetSourceImageId(value); return *this;} /** *

The identifier of the source WorkSpace image.

*/ inline CreateUpdatedWorkspaceImageRequest& WithSourceImageId(Aws::String&& value) { SetSourceImageId(std::move(value)); return *this;} /** *

The identifier of the source WorkSpace image.

*/ inline CreateUpdatedWorkspaceImageRequest& WithSourceImageId(const char* value) { SetSourceImageId(value); return *this;} /** *

The tags that you want to add to the new updated WorkSpace image.

*

To add tags at the same time when you're creating the updated image, you must * create an IAM policy that grants your IAM user permissions to use * workspaces:CreateTags.

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

The tags that you want to add to the new updated WorkSpace image.

*

To add tags at the same time when you're creating the updated image, you must * create an IAM policy that grants your IAM user permissions to use * workspaces:CreateTags.

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

The tags that you want to add to the new updated WorkSpace image.

*

To add tags at the same time when you're creating the updated image, you must * create an IAM policy that grants your IAM user permissions 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 updated WorkSpace image.

*

To add tags at the same time when you're creating the updated image, you must * create an IAM policy that grants your IAM user permissions 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 updated WorkSpace image.

*

To add tags at the same time when you're creating the updated image, you must * create an IAM policy that grants your IAM user permissions to use * workspaces:CreateTags.

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

The tags that you want to add to the new updated WorkSpace image.

*

To add tags at the same time when you're creating the updated image, you must * create an IAM policy that grants your IAM user permissions to use * workspaces:CreateTags.

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

The tags that you want to add to the new updated WorkSpace image.

*

To add tags at the same time when you're creating the updated image, you must * create an IAM policy that grants your IAM user permissions to use * workspaces:CreateTags.

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

The tags that you want to add to the new updated WorkSpace image.

*

To add tags at the same time when you're creating the updated image, you must * create an IAM policy that grants your IAM user permissions to use * workspaces:CreateTags.

*/ inline CreateUpdatedWorkspaceImageRequest& 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_sourceImageId; bool m_sourceImageIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws