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

The name of the artifact. Must be unique to your account in an Amazon Web * Services Region.

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

The name of the artifact. Must be unique to your account in an Amazon Web * Services Region.

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

The name of the artifact. Must be unique to your account in an Amazon Web * Services Region.

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

The name of the artifact. Must be unique to your account in an Amazon Web * Services Region.

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

The name of the artifact. Must be unique to your account in an Amazon Web * Services Region.

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

The name of the artifact. Must be unique to your account in an Amazon Web * Services Region.

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

The name of the artifact. Must be unique to your account in an Amazon Web * Services Region.

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

The name of the artifact. Must be unique to your account in an Amazon Web * Services Region.

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

The ID, ID type, and URI of the source.

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

The ID, ID type, and URI of the source.

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

The ID, ID type, and URI of the source.

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

The ID, ID type, and URI of the source.

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

The ID, ID type, and URI of the source.

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

The ID, ID type, and URI of the source.

*/ inline CreateArtifactRequest& WithSource(ArtifactSource&& value) { SetSource(std::move(value)); return *this;} /** *

The artifact type.

*/ inline const Aws::String& GetArtifactType() const{ return m_artifactType; } /** *

The artifact type.

*/ inline bool ArtifactTypeHasBeenSet() const { return m_artifactTypeHasBeenSet; } /** *

The artifact type.

*/ inline void SetArtifactType(const Aws::String& value) { m_artifactTypeHasBeenSet = true; m_artifactType = value; } /** *

The artifact type.

*/ inline void SetArtifactType(Aws::String&& value) { m_artifactTypeHasBeenSet = true; m_artifactType = std::move(value); } /** *

The artifact type.

*/ inline void SetArtifactType(const char* value) { m_artifactTypeHasBeenSet = true; m_artifactType.assign(value); } /** *

The artifact type.

*/ inline CreateArtifactRequest& WithArtifactType(const Aws::String& value) { SetArtifactType(value); return *this;} /** *

The artifact type.

*/ inline CreateArtifactRequest& WithArtifactType(Aws::String&& value) { SetArtifactType(std::move(value)); return *this;} /** *

The artifact type.

*/ inline CreateArtifactRequest& WithArtifactType(const char* value) { SetArtifactType(value); return *this;} /** *

A list of properties to add to the artifact.

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

A list of properties to add to the artifact.

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

A list of properties to add to the artifact.

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

A list of properties to add to the artifact.

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

A list of properties to add to the artifact.

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

A list of properties to add to the artifact.

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

A list of properties to add to the artifact.

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

A list of properties to add to the artifact.

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

A list of properties to add to the artifact.

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

A list of properties to add to the artifact.

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

A list of properties to add to the artifact.

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

A list of properties to add to the artifact.

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

A list of properties to add to the artifact.

*/ inline CreateArtifactRequest& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; } inline const MetadataProperties& GetMetadataProperties() const{ return m_metadataProperties; } inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; } inline void SetMetadataProperties(const MetadataProperties& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = value; } inline void SetMetadataProperties(MetadataProperties&& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = std::move(value); } inline CreateArtifactRequest& WithMetadataProperties(const MetadataProperties& value) { SetMetadataProperties(value); return *this;} inline CreateArtifactRequest& WithMetadataProperties(MetadataProperties&& value) { SetMetadataProperties(std::move(value)); return *this;} /** *

A list of tags to apply to the artifact.

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

A list of tags to apply to the artifact.

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

A list of tags to apply to the artifact.

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

A list of tags to apply to the artifact.

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

A list of tags to apply to the artifact.

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

A list of tags to apply to the artifact.

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

A list of tags to apply to the artifact.

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

A list of tags to apply to the artifact.

*/ inline CreateArtifactRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_artifactName; bool m_artifactNameHasBeenSet = false; ArtifactSource m_source; bool m_sourceHasBeenSet = false; Aws::String m_artifactType; bool m_artifactTypeHasBeenSet = false; Aws::Map m_properties; bool m_propertiesHasBeenSet = false; MetadataProperties m_metadataProperties; bool m_metadataPropertiesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws