/**
* 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 AWS account ID that owns the domain.
*/ inline const Aws::String& GetOwner() const{ return m_owner; } /** *The AWS account ID that owns the domain.
*/ inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } /** *The AWS account ID that owns the domain.
*/ inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; } /** *The AWS account ID that owns the domain.
*/ inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } /** *The AWS account ID that owns the domain.
*/ inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); } /** *The AWS account ID that owns the domain.
*/ inline DomainDescription& WithOwner(const Aws::String& value) { SetOwner(value); return *this;} /** *The AWS account ID that owns the domain.
*/ inline DomainDescription& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;} /** *The AWS 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. The valid values are
* Active
Deleted
The current status of a domain. The valid values are
* Active
Deleted
The current status of a domain. The valid values are
* Active
Deleted
The current status of a domain. The valid values are
* Active
Deleted
The current status of a domain. The valid values are
* Active
Deleted
The current status of a domain. The valid values are
* Active
Deleted
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 AWS Key Management Service (AWS KMS) key associated with a * domain.
*/ inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; } /** *The ARN of an AWS Key Management Service (AWS KMS) key associated with a * domain.
*/ inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; } /** *The ARN of an AWS Key Management Service (AWS KMS) key associated with a * domain.
*/ inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; } /** *The ARN of an AWS Key Management Service (AWS KMS) key associated with a * domain.
*/ inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); } /** *The ARN of an AWS Key Management Service (AWS KMS) key associated with a * domain.
*/ inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); } /** *The ARN of an AWS Key Management Service (AWS KMS) key associated with a * domain.
*/ inline DomainDescription& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;} /** *The ARN of an AWS Key Management Service (AWS KMS) key associated with a * domain.
*/ inline DomainDescription& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;} /** *The ARN of an AWS Key Management Service (AWS 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;} private: Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_owner; bool m_ownerHasBeenSet; Aws::String m_arn; bool m_arnHasBeenSet; DomainStatus m_status; bool m_statusHasBeenSet; Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet; Aws::String m_encryptionKey; bool m_encryptionKeyHasBeenSet; int m_repositoryCount; bool m_repositoryCountHasBeenSet; long long m_assetSizeBytes; bool m_assetSizeBytesHasBeenSet; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws