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

Detailed data of a linked repository—a repository that has been registered * with Proton.

See Also:

AWS * API Reference

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

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

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

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

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

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

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

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

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

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

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

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

*/ inline Repository& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

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

*/ inline Repository& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

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

*/ inline Repository& WithArn(const char* value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects * Proton to your repository provider account.

*/ inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; } /** *

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects * Proton to your repository provider account.

*/ inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects * Proton to your repository provider account.

*/ inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; } /** *

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects * Proton to your repository provider account.

*/ inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects * Proton to your repository provider account.

*/ inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects * Proton to your repository provider account.

*/ inline Repository& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects * Proton to your repository provider account.

*/ inline Repository& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects * Proton to your repository provider account.

*/ inline Repository& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;} /** *

Your customer Amazon Web Services KMS encryption key.

*/ inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; } /** *

Your customer Amazon Web Services KMS encryption key.

*/ inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; } /** *

Your customer Amazon Web Services KMS encryption key.

*/ inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; } /** *

Your customer Amazon Web Services KMS encryption key.

*/ inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); } /** *

Your customer Amazon Web Services KMS encryption key.

*/ inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); } /** *

Your customer Amazon Web Services KMS encryption key.

*/ inline Repository& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;} /** *

Your customer Amazon Web Services KMS encryption key.

*/ inline Repository& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;} /** *

Your customer Amazon Web Services KMS encryption key.

*/ inline Repository& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;} /** *

The repository name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The repository name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The repository name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The repository name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The repository name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The repository name.

*/ inline Repository& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The repository name.

*/ inline Repository& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The repository name.

*/ inline Repository& WithName(const char* value) { SetName(value); return *this;} /** *

The repository provider.

*/ inline const RepositoryProvider& GetProvider() const{ return m_provider; } /** *

The repository provider.

*/ inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; } /** *

The repository provider.

*/ inline void SetProvider(const RepositoryProvider& value) { m_providerHasBeenSet = true; m_provider = value; } /** *

The repository provider.

*/ inline void SetProvider(RepositoryProvider&& value) { m_providerHasBeenSet = true; m_provider = std::move(value); } /** *

The repository provider.

*/ inline Repository& WithProvider(const RepositoryProvider& value) { SetProvider(value); return *this;} /** *

The repository provider.

*/ inline Repository& WithProvider(RepositoryProvider&& value) { SetProvider(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_connectionArn; bool m_connectionArnHasBeenSet = false; Aws::String m_encryptionKey; bool m_encryptionKeyHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; RepositoryProvider m_provider; bool m_providerHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws