/** * 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 DeleteArtifactRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API DeleteArtifactRequest(); // 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 "DeleteArtifact"; } 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 delete.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The URI of the source.

*/ inline const ArtifactSource& GetSource() const{ return m_source; } /** *

The URI of the source.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The URI of the source.

*/ inline void SetSource(const ArtifactSource& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The URI of the source.

*/ inline void SetSource(ArtifactSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The URI of the source.

*/ inline DeleteArtifactRequest& WithSource(const ArtifactSource& value) { SetSource(value); return *this;} /** *

The URI of the source.

*/ inline DeleteArtifactRequest& WithSource(ArtifactSource&& value) { SetSource(std::move(value)); return *this;} private: Aws::String m_artifactArn; bool m_artifactArnHasBeenSet = false; ArtifactSource m_source; bool m_sourceHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws