/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Specifies configuration details for a Git repository in your Amazon Web * Services account.

See Also:

AWS * API Reference

*/ class GitConfig { public: AWS_SAGEMAKER_API GitConfig(); AWS_SAGEMAKER_API GitConfig(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API GitConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The URL where the Git repository is located.

*/ inline const Aws::String& GetRepositoryUrl() const{ return m_repositoryUrl; } /** *

The URL where the Git repository is located.

*/ inline bool RepositoryUrlHasBeenSet() const { return m_repositoryUrlHasBeenSet; } /** *

The URL where the Git repository is located.

*/ inline void SetRepositoryUrl(const Aws::String& value) { m_repositoryUrlHasBeenSet = true; m_repositoryUrl = value; } /** *

The URL where the Git repository is located.

*/ inline void SetRepositoryUrl(Aws::String&& value) { m_repositoryUrlHasBeenSet = true; m_repositoryUrl = std::move(value); } /** *

The URL where the Git repository is located.

*/ inline void SetRepositoryUrl(const char* value) { m_repositoryUrlHasBeenSet = true; m_repositoryUrl.assign(value); } /** *

The URL where the Git repository is located.

*/ inline GitConfig& WithRepositoryUrl(const Aws::String& value) { SetRepositoryUrl(value); return *this;} /** *

The URL where the Git repository is located.

*/ inline GitConfig& WithRepositoryUrl(Aws::String&& value) { SetRepositoryUrl(std::move(value)); return *this;} /** *

The URL where the Git repository is located.

*/ inline GitConfig& WithRepositoryUrl(const char* value) { SetRepositoryUrl(value); return *this;} /** *

The default branch for the Git repository.

*/ inline const Aws::String& GetBranch() const{ return m_branch; } /** *

The default branch for the Git repository.

*/ inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; } /** *

The default branch for the Git repository.

*/ inline void SetBranch(const Aws::String& value) { m_branchHasBeenSet = true; m_branch = value; } /** *

The default branch for the Git repository.

*/ inline void SetBranch(Aws::String&& value) { m_branchHasBeenSet = true; m_branch = std::move(value); } /** *

The default branch for the Git repository.

*/ inline void SetBranch(const char* value) { m_branchHasBeenSet = true; m_branch.assign(value); } /** *

The default branch for the Git repository.

*/ inline GitConfig& WithBranch(const Aws::String& value) { SetBranch(value); return *this;} /** *

The default branch for the Git repository.

*/ inline GitConfig& WithBranch(Aws::String&& value) { SetBranch(std::move(value)); return *this;} /** *

The default branch for the Git repository.

*/ inline GitConfig& WithBranch(const char* value) { SetBranch(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager * secret that contains the credentials used to access the git repository. The * secret must have a staging label of AWSCURRENT and must be in the * following format:

{"username": UserName, "password": * Password}

*/ inline const Aws::String& GetSecretArn() const{ return m_secretArn; } /** *

The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager * secret that contains the credentials used to access the git repository. The * secret must have a staging label of AWSCURRENT and must be in the * following format:

{"username": UserName, "password": * Password}

*/ inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager * secret that contains the credentials used to access the git repository. The * secret must have a staging label of AWSCURRENT and must be in the * following format:

{"username": UserName, "password": * Password}

*/ inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; } /** *

The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager * secret that contains the credentials used to access the git repository. The * secret must have a staging label of AWSCURRENT and must be in the * following format:

{"username": UserName, "password": * Password}

*/ inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager * secret that contains the credentials used to access the git repository. The * secret must have a staging label of AWSCURRENT and must be in the * following format:

{"username": UserName, "password": * Password}

*/ inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager * secret that contains the credentials used to access the git repository. The * secret must have a staging label of AWSCURRENT and must be in the * following format:

{"username": UserName, "password": * Password}

*/ inline GitConfig& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager * secret that contains the credentials used to access the git repository. The * secret must have a staging label of AWSCURRENT and must be in the * following format:

{"username": UserName, "password": * Password}

*/ inline GitConfig& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager * secret that contains the credentials used to access the git repository. The * secret must have a staging label of AWSCURRENT and must be in the * following format:

{"username": UserName, "password": * Password}

*/ inline GitConfig& WithSecretArn(const char* value) { SetSecretArn(value); return *this;} private: Aws::String m_repositoryUrl; bool m_repositoryUrlHasBeenSet = false; Aws::String m_branch; bool m_branchHasBeenSet = false; Aws::String m_secretArn; bool m_secretArnHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws