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

The name of the Git repository. The name must have 1 to 63 characters. Valid * characters are a-z, A-Z, 0-9, and - (hyphen).

*/ inline const Aws::String& GetCodeRepositoryName() const{ return m_codeRepositoryName; } /** *

The name of the Git repository. The name must have 1 to 63 characters. Valid * characters are a-z, A-Z, 0-9, and - (hyphen).

*/ inline bool CodeRepositoryNameHasBeenSet() const { return m_codeRepositoryNameHasBeenSet; } /** *

The name of the Git repository. The name must have 1 to 63 characters. Valid * characters are a-z, A-Z, 0-9, and - (hyphen).

*/ inline void SetCodeRepositoryName(const Aws::String& value) { m_codeRepositoryNameHasBeenSet = true; m_codeRepositoryName = value; } /** *

The name of the Git repository. The name must have 1 to 63 characters. Valid * characters are a-z, A-Z, 0-9, and - (hyphen).

*/ inline void SetCodeRepositoryName(Aws::String&& value) { m_codeRepositoryNameHasBeenSet = true; m_codeRepositoryName = std::move(value); } /** *

The name of the Git repository. The name must have 1 to 63 characters. Valid * characters are a-z, A-Z, 0-9, and - (hyphen).

*/ inline void SetCodeRepositoryName(const char* value) { m_codeRepositoryNameHasBeenSet = true; m_codeRepositoryName.assign(value); } /** *

The name of the Git repository. The name must have 1 to 63 characters. Valid * characters are a-z, A-Z, 0-9, and - (hyphen).

*/ inline CreateCodeRepositoryRequest& WithCodeRepositoryName(const Aws::String& value) { SetCodeRepositoryName(value); return *this;} /** *

The name of the Git repository. The name must have 1 to 63 characters. Valid * characters are a-z, A-Z, 0-9, and - (hyphen).

*/ inline CreateCodeRepositoryRequest& WithCodeRepositoryName(Aws::String&& value) { SetCodeRepositoryName(std::move(value)); return *this;} /** *

The name of the Git repository. The name must have 1 to 63 characters. Valid * characters are a-z, A-Z, 0-9, and - (hyphen).

*/ inline CreateCodeRepositoryRequest& WithCodeRepositoryName(const char* value) { SetCodeRepositoryName(value); return *this;} /** *

Specifies details about the repository, including the URL where the * repository is located, the default branch, and credentials to use to access the * repository.

*/ inline const GitConfig& GetGitConfig() const{ return m_gitConfig; } /** *

Specifies details about the repository, including the URL where the * repository is located, the default branch, and credentials to use to access the * repository.

*/ inline bool GitConfigHasBeenSet() const { return m_gitConfigHasBeenSet; } /** *

Specifies details about the repository, including the URL where the * repository is located, the default branch, and credentials to use to access the * repository.

*/ inline void SetGitConfig(const GitConfig& value) { m_gitConfigHasBeenSet = true; m_gitConfig = value; } /** *

Specifies details about the repository, including the URL where the * repository is located, the default branch, and credentials to use to access the * repository.

*/ inline void SetGitConfig(GitConfig&& value) { m_gitConfigHasBeenSet = true; m_gitConfig = std::move(value); } /** *

Specifies details about the repository, including the URL where the * repository is located, the default branch, and credentials to use to access the * repository.

*/ inline CreateCodeRepositoryRequest& WithGitConfig(const GitConfig& value) { SetGitConfig(value); return *this;} /** *

Specifies details about the repository, including the URL where the * repository is located, the default branch, and credentials to use to access the * repository.

*/ inline CreateCodeRepositoryRequest& WithGitConfig(GitConfig&& value) { SetGitConfig(std::move(value)); return *this;} /** *

An array of key-value pairs. You can use tags to categorize your Amazon Web * Services resources in different ways, for example, by purpose, owner, or * environment. For more information, see Tagging * Amazon Web Services Resources.

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

An array of key-value pairs. You can use tags to categorize your Amazon Web * Services resources in different ways, for example, by purpose, owner, or * environment. For more information, see Tagging * Amazon Web Services Resources.

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

An array of key-value pairs. You can use tags to categorize your Amazon Web * Services resources in different ways, for example, by purpose, owner, or * environment. For more information, see Tagging * Amazon Web Services Resources.

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

An array of key-value pairs. You can use tags to categorize your Amazon Web * Services resources in different ways, for example, by purpose, owner, or * environment. For more information, see Tagging * Amazon Web Services Resources.

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

An array of key-value pairs. You can use tags to categorize your Amazon Web * Services resources in different ways, for example, by purpose, owner, or * environment. For more information, see Tagging * Amazon Web Services Resources.

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

An array of key-value pairs. You can use tags to categorize your Amazon Web * Services resources in different ways, for example, by purpose, owner, or * environment. For more information, see Tagging * Amazon Web Services Resources.

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

An array of key-value pairs. You can use tags to categorize your Amazon Web * Services resources in different ways, for example, by purpose, owner, or * environment. For more information, see Tagging * Amazon Web Services Resources.

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

An array of key-value pairs. You can use tags to categorize your Amazon Web * Services resources in different ways, for example, by purpose, owner, or * environment. For more information, see Tagging * Amazon Web Services Resources.

*/ inline CreateCodeRepositoryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_codeRepositoryName; bool m_codeRepositoryNameHasBeenSet = false; GitConfig m_gitConfig; bool m_gitConfigHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws