/** * 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 SageMaker { namespace Model { /** */ class CreateImageRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API CreateImageRequest(); // 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 "CreateImage"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The description of the image.

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

The description of the image.

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

The description of the image.

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

The description of the image.

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

The description of the image.

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

The description of the image.

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

The description of the image.

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

The description of the image.

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

The display name of the image. If not provided, ImageName is * displayed.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The display name of the image. If not provided, ImageName is * displayed.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The display name of the image. If not provided, ImageName is * displayed.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The display name of the image. If not provided, ImageName is * displayed.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The display name of the image. If not provided, ImageName is * displayed.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The display name of the image. If not provided, ImageName is * displayed.

*/ inline CreateImageRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The display name of the image. If not provided, ImageName is * displayed.

*/ inline CreateImageRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The display name of the image. If not provided, ImageName is * displayed.

*/ inline CreateImageRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

The name of the image. Must be unique to your account.

*/ inline const Aws::String& GetImageName() const{ return m_imageName; } /** *

The name of the image. Must be unique to your account.

*/ inline bool ImageNameHasBeenSet() const { return m_imageNameHasBeenSet; } /** *

The name of the image. Must be unique to your account.

*/ inline void SetImageName(const Aws::String& value) { m_imageNameHasBeenSet = true; m_imageName = value; } /** *

The name of the image. Must be unique to your account.

*/ inline void SetImageName(Aws::String&& value) { m_imageNameHasBeenSet = true; m_imageName = std::move(value); } /** *

The name of the image. Must be unique to your account.

*/ inline void SetImageName(const char* value) { m_imageNameHasBeenSet = true; m_imageName.assign(value); } /** *

The name of the image. Must be unique to your account.

*/ inline CreateImageRequest& WithImageName(const Aws::String& value) { SetImageName(value); return *this;} /** *

The name of the image. Must be unique to your account.

*/ inline CreateImageRequest& WithImageName(Aws::String&& value) { SetImageName(std::move(value)); return *this;} /** *

The name of the image. Must be unique to your account.

*/ inline CreateImageRequest& WithImageName(const char* value) { SetImageName(value); return *this;} /** *

The ARN of an IAM role that enables Amazon SageMaker to perform tasks on your * behalf.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The ARN of an IAM role that enables Amazon SageMaker to perform tasks on your * behalf.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The ARN of an IAM role that enables Amazon SageMaker to perform tasks on your * behalf.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The ARN of an IAM role that enables Amazon SageMaker to perform tasks on your * behalf.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The ARN of an IAM role that enables Amazon SageMaker to perform tasks on your * behalf.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The ARN of an IAM role that enables Amazon SageMaker to perform tasks on your * behalf.

*/ inline CreateImageRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of an IAM role that enables Amazon SageMaker to perform tasks on your * behalf.

*/ inline CreateImageRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The ARN of an IAM role that enables Amazon SageMaker to perform tasks on your * behalf.

*/ inline CreateImageRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

A list of tags to apply to the image.

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

A list of tags to apply to the image.

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

A list of tags to apply to the image.

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

A list of tags to apply to the image.

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

A list of tags to apply to the image.

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

A list of tags to apply to the image.

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

A list of tags to apply to the image.

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

A list of tags to apply to the image.

*/ inline CreateImageRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; Aws::String m_imageName; bool m_imageNameHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws