/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a domain. A domain is a container for repositories. When
* you create a domain, it is empty until you add one or more repositories.
* See Also:
AWS
* API Reference
The name of the domain.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the domain.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the domain.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the domain.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the domain.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the domain.
*/ inline DomainDescription& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the domain.
*/ inline DomainDescription& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the domain.
*/ inline DomainDescription& WithName(const char* value) { SetName(value); return *this;} /** *The Amazon Web Services account ID that owns the domain.
*/ inline const Aws::String& GetOwner() const{ return m_owner; } /** *The Amazon Web Services account ID that owns the domain.
*/ inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } /** *The Amazon Web Services account ID that owns the domain.
*/ inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; } /** *The Amazon Web Services account ID that owns the domain.
*/ inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } /** *The Amazon Web Services account ID that owns the domain.
*/ inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); } /** *The Amazon Web Services account ID that owns the domain.
*/ inline DomainDescription& WithOwner(const Aws::String& value) { SetOwner(value); return *this;} /** *The Amazon Web Services account ID that owns the domain.
*/ inline DomainDescription& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;} /** *The Amazon Web Services account ID that owns the domain.
*/ inline DomainDescription& WithOwner(const char* value) { SetOwner(value); return *this;} /** *The Amazon Resource Name (ARN) of the domain.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the domain.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the domain.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the domain.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the domain.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the domain.
*/ inline DomainDescription& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the domain.
*/ inline DomainDescription& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the domain.
*/ inline DomainDescription& WithArn(const char* value) { SetArn(value); return *this;} /** *The current status of a domain.
*/ inline const DomainStatus& GetStatus() const{ return m_status; } /** *The current status of a domain.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The current status of a domain.
*/ inline void SetStatus(const DomainStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The current status of a domain.
*/ inline void SetStatus(DomainStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The current status of a domain.
*/ inline DomainDescription& WithStatus(const DomainStatus& value) { SetStatus(value); return *this;} /** *The current status of a domain.
*/ inline DomainDescription& WithStatus(DomainStatus&& value) { SetStatus(std::move(value)); return *this;} /** *A timestamp that represents the date and time the domain was created.
*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *A timestamp that represents the date and time the domain was created.
*/ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *A timestamp that represents the date and time the domain was created.
*/ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** *A timestamp that represents the date and time the domain was created.
*/ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** *A timestamp that represents the date and time the domain was created.
*/ inline DomainDescription& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *A timestamp that represents the date and time the domain was created.
*/ inline DomainDescription& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** *The ARN of an Key Management Service (KMS) key associated with a domain. *
*/ inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; } /** *The ARN of an Key Management Service (KMS) key associated with a domain. *
*/ inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; } /** *The ARN of an Key Management Service (KMS) key associated with a domain. *
*/ inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; } /** *The ARN of an Key Management Service (KMS) key associated with a domain. *
*/ inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); } /** *The ARN of an Key Management Service (KMS) key associated with a domain. *
*/ inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); } /** *The ARN of an Key Management Service (KMS) key associated with a domain. *
*/ inline DomainDescription& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;} /** *The ARN of an Key Management Service (KMS) key associated with a domain. *
*/ inline DomainDescription& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;} /** *The ARN of an Key Management Service (KMS) key associated with a domain. *
*/ inline DomainDescription& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;} /** *The number of repositories in the domain.
*/ inline int GetRepositoryCount() const{ return m_repositoryCount; } /** *The number of repositories in the domain.
*/ inline bool RepositoryCountHasBeenSet() const { return m_repositoryCountHasBeenSet; } /** *The number of repositories in the domain.
*/ inline void SetRepositoryCount(int value) { m_repositoryCountHasBeenSet = true; m_repositoryCount = value; } /** *The number of repositories in the domain.
*/ inline DomainDescription& WithRepositoryCount(int value) { SetRepositoryCount(value); return *this;} /** *The total size of all assets in the domain.
*/ inline long long GetAssetSizeBytes() const{ return m_assetSizeBytes; } /** *The total size of all assets in the domain.
*/ inline bool AssetSizeBytesHasBeenSet() const { return m_assetSizeBytesHasBeenSet; } /** *The total size of all assets in the domain.
*/ inline void SetAssetSizeBytes(long long value) { m_assetSizeBytesHasBeenSet = true; m_assetSizeBytes = value; } /** *The total size of all assets in the domain.
*/ inline DomainDescription& WithAssetSizeBytes(long long value) { SetAssetSizeBytes(value); return *this;} /** *The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store * package assets in the domain.
*/ inline const Aws::String& GetS3BucketArn() const{ return m_s3BucketArn; } /** *The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store * package assets in the domain.
*/ inline bool S3BucketArnHasBeenSet() const { return m_s3BucketArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store * package assets in the domain.
*/ inline void SetS3BucketArn(const Aws::String& value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn = value; } /** *The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store * package assets in the domain.
*/ inline void SetS3BucketArn(Aws::String&& value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store * package assets in the domain.
*/ inline void SetS3BucketArn(const char* value) { m_s3BucketArnHasBeenSet = true; m_s3BucketArn.assign(value); } /** *The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store * package assets in the domain.
*/ inline DomainDescription& WithS3BucketArn(const Aws::String& value) { SetS3BucketArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store * package assets in the domain.
*/ inline DomainDescription& WithS3BucketArn(Aws::String&& value) { SetS3BucketArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store * package assets in the domain.
*/ inline DomainDescription& WithS3BucketArn(const char* value) { SetS3BucketArn(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_owner; bool m_ownerHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; DomainStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet = false; Aws::String m_encryptionKey; bool m_encryptionKeyHasBeenSet = false; int m_repositoryCount; bool m_repositoryCountHasBeenSet = false; long long m_assetSizeBytes; bool m_assetSizeBytesHasBeenSet = false; Aws::String m_s3BucketArn; bool m_s3BucketArnHasBeenSet = false; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws