/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Specifies summary information about a Git repository.

See * Also:

AWS * API Reference

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

The name of the Git repository.

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

The name of the Git repository.

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

The name of the Git repository.

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

The name of the Git repository.

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

The name of the Git repository.

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

The name of the Git repository.

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

The name of the Git repository.

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

The name of the Git repository.

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

The Amazon Resource Name (ARN) of the Git repository.

*/ inline const Aws::String& GetCodeRepositoryArn() const{ return m_codeRepositoryArn; } /** *

The Amazon Resource Name (ARN) of the Git repository.

*/ inline bool CodeRepositoryArnHasBeenSet() const { return m_codeRepositoryArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Git repository.

*/ inline void SetCodeRepositoryArn(const Aws::String& value) { m_codeRepositoryArnHasBeenSet = true; m_codeRepositoryArn = value; } /** *

The Amazon Resource Name (ARN) of the Git repository.

*/ inline void SetCodeRepositoryArn(Aws::String&& value) { m_codeRepositoryArnHasBeenSet = true; m_codeRepositoryArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Git repository.

*/ inline void SetCodeRepositoryArn(const char* value) { m_codeRepositoryArnHasBeenSet = true; m_codeRepositoryArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Git repository.

*/ inline CodeRepositorySummary& WithCodeRepositoryArn(const Aws::String& value) { SetCodeRepositoryArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Git repository.

*/ inline CodeRepositorySummary& WithCodeRepositoryArn(Aws::String&& value) { SetCodeRepositoryArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Git repository.

*/ inline CodeRepositorySummary& WithCodeRepositoryArn(const char* value) { SetCodeRepositoryArn(value); return *this;} /** *

The date and time that the Git repository was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The date and time that the Git repository was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The date and time that the Git repository was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The date and time that the Git repository was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The date and time that the Git repository was created.

*/ inline CodeRepositorySummary& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The date and time that the Git repository was created.

*/ inline CodeRepositorySummary& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The date and time that the Git repository was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The date and time that the Git repository was last modified.

*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *

The date and time that the Git repository was last modified.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *

The date and time that the Git repository was last modified.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *

The date and time that the Git repository was last modified.

*/ inline CodeRepositorySummary& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

The date and time that the Git repository was last modified.

*/ inline CodeRepositorySummary& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

Configuration details for the Git repository, including the URL where it is * located and the ARN of the Amazon Web Services Secrets Manager secret that * contains the credentials used to access the repository.

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

Configuration details for the Git repository, including the URL where it is * located and the ARN of the Amazon Web Services Secrets Manager secret that * contains the credentials used to access the repository.

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

Configuration details for the Git repository, including the URL where it is * located and the ARN of the Amazon Web Services Secrets Manager secret that * contains the credentials used to access the repository.

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

Configuration details for the Git repository, including the URL where it is * located and the ARN of the Amazon Web Services Secrets Manager secret that * contains the credentials used to access the repository.

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

Configuration details for the Git repository, including the URL where it is * located and the ARN of the Amazon Web Services Secrets Manager secret that * contains the credentials used to access the repository.

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

Configuration details for the Git repository, including the URL where it is * located and the ARN of the Amazon Web Services Secrets Manager secret that * contains the credentials used to access the repository.

*/ inline CodeRepositorySummary& WithGitConfig(GitConfig&& value) { SetGitConfig(std::move(value)); return *this;} private: Aws::String m_codeRepositoryName; bool m_codeRepositoryNameHasBeenSet = false; Aws::String m_codeRepositoryArn; bool m_codeRepositoryArnHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; GitConfig m_gitConfig; bool m_gitConfigHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws