/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace SageMaker { namespace Model { /** */ class UpdateImageRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API UpdateImageRequest(); // 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 "UpdateImage"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A list of properties to delete. Only the Description and * DisplayName properties can be deleted.

*/ inline const Aws::Vector& GetDeleteProperties() const{ return m_deleteProperties; } /** *

A list of properties to delete. Only the Description and * DisplayName properties can be deleted.

*/ inline bool DeletePropertiesHasBeenSet() const { return m_deletePropertiesHasBeenSet; } /** *

A list of properties to delete. Only the Description and * DisplayName properties can be deleted.

*/ inline void SetDeleteProperties(const Aws::Vector& value) { m_deletePropertiesHasBeenSet = true; m_deleteProperties = value; } /** *

A list of properties to delete. Only the Description and * DisplayName properties can be deleted.

*/ inline void SetDeleteProperties(Aws::Vector&& value) { m_deletePropertiesHasBeenSet = true; m_deleteProperties = std::move(value); } /** *

A list of properties to delete. Only the Description and * DisplayName properties can be deleted.

*/ inline UpdateImageRequest& WithDeleteProperties(const Aws::Vector& value) { SetDeleteProperties(value); return *this;} /** *

A list of properties to delete. Only the Description and * DisplayName properties can be deleted.

*/ inline UpdateImageRequest& WithDeleteProperties(Aws::Vector&& value) { SetDeleteProperties(std::move(value)); return *this;} /** *

A list of properties to delete. Only the Description and * DisplayName properties can be deleted.

*/ inline UpdateImageRequest& AddDeleteProperties(const Aws::String& value) { m_deletePropertiesHasBeenSet = true; m_deleteProperties.push_back(value); return *this; } /** *

A list of properties to delete. Only the Description and * DisplayName properties can be deleted.

*/ inline UpdateImageRequest& AddDeleteProperties(Aws::String&& value) { m_deletePropertiesHasBeenSet = true; m_deleteProperties.push_back(std::move(value)); return *this; } /** *

A list of properties to delete. Only the Description and * DisplayName properties can be deleted.

*/ inline UpdateImageRequest& AddDeleteProperties(const char* value) { m_deletePropertiesHasBeenSet = true; m_deleteProperties.push_back(value); return *this; } /** *

The new description for the image.

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

The new description for the image.

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

The new description for the image.

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

The new description for the image.

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

The new description for the image.

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

The new description for the image.

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

The new description for the image.

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

The new description for the image.

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

The new display name for the image.

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

The new display name for the image.

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

The new display name for the image.

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

The new display name for the image.

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

The new display name for the image.

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

The new display name for the image.

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

The new display name for the image.

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

The new display name for the image.

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

The name of the image to update.

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

The name of the image to update.

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

The name of the image to update.

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

The name of the image to update.

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

The name of the image to update.

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

The name of the image to update.

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

The name of the image to update.

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

The name of the image to update.

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

The new ARN for the IAM role that enables Amazon SageMaker to perform tasks * on your behalf.

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

The new ARN for the IAM role that enables Amazon SageMaker to perform tasks * on your behalf.

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

The new ARN for the 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 new ARN for the 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 new ARN for the 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 new ARN for the IAM role that enables Amazon SageMaker to perform tasks * on your behalf.

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

The new ARN for the IAM role that enables Amazon SageMaker to perform tasks * on your behalf.

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

The new ARN for the IAM role that enables Amazon SageMaker to perform tasks * on your behalf.

*/ inline UpdateImageRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::Vector m_deleteProperties; bool m_deletePropertiesHasBeenSet = false; 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; }; } // namespace Model } // namespace SageMaker } // namespace Aws