/** * 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 when the repository is * updated.

See Also:

AWS * API Reference

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

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 GitConfigForUpdate& 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 GitConfigForUpdate& 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 GitConfigForUpdate& WithSecretArn(const char* value) { SetSecretArn(value); return *this;} private: Aws::String m_secretArn; bool m_secretArnHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws