/** * 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 UpdateArtifactRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API UpdateArtifactRequest(); // 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 "UpdateArtifact"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the artifact to update.

*/ inline const Aws::String& GetArtifactArn() const{ return m_artifactArn; } /** *

The Amazon Resource Name (ARN) of the artifact to update.

*/ inline bool ArtifactArnHasBeenSet() const { return m_artifactArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the artifact to update.

*/ inline void SetArtifactArn(const Aws::String& value) { m_artifactArnHasBeenSet = true; m_artifactArn = value; } /** *

The Amazon Resource Name (ARN) of the artifact to update.

*/ inline void SetArtifactArn(Aws::String&& value) { m_artifactArnHasBeenSet = true; m_artifactArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the artifact to update.

*/ inline void SetArtifactArn(const char* value) { m_artifactArnHasBeenSet = true; m_artifactArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the artifact to update.

*/ inline UpdateArtifactRequest& WithArtifactArn(const Aws::String& value) { SetArtifactArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the artifact to update.

*/ inline UpdateArtifactRequest& WithArtifactArn(Aws::String&& value) { SetArtifactArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the artifact to update.

*/ inline UpdateArtifactRequest& WithArtifactArn(const char* value) { SetArtifactArn(value); return *this;} /** *

The new name for the artifact.

*/ inline const Aws::String& GetArtifactName() const{ return m_artifactName; } /** *

The new name for the artifact.

*/ inline bool ArtifactNameHasBeenSet() const { return m_artifactNameHasBeenSet; } /** *

The new name for the artifact.

*/ inline void SetArtifactName(const Aws::String& value) { m_artifactNameHasBeenSet = true; m_artifactName = value; } /** *

The new name for the artifact.

*/ inline void SetArtifactName(Aws::String&& value) { m_artifactNameHasBeenSet = true; m_artifactName = std::move(value); } /** *

The new name for the artifact.

*/ inline void SetArtifactName(const char* value) { m_artifactNameHasBeenSet = true; m_artifactName.assign(value); } /** *

The new name for the artifact.

*/ inline UpdateArtifactRequest& WithArtifactName(const Aws::String& value) { SetArtifactName(value); return *this;} /** *

The new name for the artifact.

*/ inline UpdateArtifactRequest& WithArtifactName(Aws::String&& value) { SetArtifactName(std::move(value)); return *this;} /** *

The new name for the artifact.

*/ inline UpdateArtifactRequest& WithArtifactName(const char* value) { SetArtifactName(value); return *this;} /** *

The new list of properties. Overwrites the current property list.

*/ inline const Aws::Map& GetProperties() const{ return m_properties; } /** *

The new list of properties. Overwrites the current property list.

*/ inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; } /** *

The new list of properties. Overwrites the current property list.

*/ inline void SetProperties(const Aws::Map& value) { m_propertiesHasBeenSet = true; m_properties = value; } /** *

The new list of properties. Overwrites the current property list.

*/ inline void SetProperties(Aws::Map&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); } /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateArtifactRequest& WithProperties(const Aws::Map& value) { SetProperties(value); return *this;} /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateArtifactRequest& WithProperties(Aws::Map&& value) { SetProperties(std::move(value)); return *this;} /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateArtifactRequest& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; } /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateArtifactRequest& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; } /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateArtifactRequest& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; } /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateArtifactRequest& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; } /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateArtifactRequest& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; } /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateArtifactRequest& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; } /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateArtifactRequest& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; } /** *

A list of properties to remove.

*/ inline const Aws::Vector& GetPropertiesToRemove() const{ return m_propertiesToRemove; } /** *

A list of properties to remove.

*/ inline bool PropertiesToRemoveHasBeenSet() const { return m_propertiesToRemoveHasBeenSet; } /** *

A list of properties to remove.

*/ inline void SetPropertiesToRemove(const Aws::Vector& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove = value; } /** *

A list of properties to remove.

*/ inline void SetPropertiesToRemove(Aws::Vector&& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove = std::move(value); } /** *

A list of properties to remove.

*/ inline UpdateArtifactRequest& WithPropertiesToRemove(const Aws::Vector& value) { SetPropertiesToRemove(value); return *this;} /** *

A list of properties to remove.

*/ inline UpdateArtifactRequest& WithPropertiesToRemove(Aws::Vector&& value) { SetPropertiesToRemove(std::move(value)); return *this;} /** *

A list of properties to remove.

*/ inline UpdateArtifactRequest& AddPropertiesToRemove(const Aws::String& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove.push_back(value); return *this; } /** *

A list of properties to remove.

*/ inline UpdateArtifactRequest& AddPropertiesToRemove(Aws::String&& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove.push_back(std::move(value)); return *this; } /** *

A list of properties to remove.

*/ inline UpdateArtifactRequest& AddPropertiesToRemove(const char* value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove.push_back(value); return *this; } private: Aws::String m_artifactArn; bool m_artifactArnHasBeenSet = false; Aws::String m_artifactName; bool m_artifactNameHasBeenSet = false; Aws::Map m_properties; bool m_propertiesHasBeenSet = false; Aws::Vector m_propertiesToRemove; bool m_propertiesToRemoveHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws