/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a domain, including its name, Amazon Resource Name (ARN),
* and status. The ListDomains
* operation returns a list of DomainSummary
objects. 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 DomainSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the domain.
*/ inline DomainSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the domain.
*/ inline DomainSummary& WithName(const char* value) { SetName(value); return *this;} /** *The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.
*/ inline const Aws::String& GetOwner() const{ return m_owner; } /** *The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.
*/ inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } /** *The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.
*/ inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; } /** *The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.
*/ inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } /** *The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.
*/ inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); } /** *The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.
*/ inline DomainSummary& WithOwner(const Aws::String& value) { SetOwner(value); return *this;} /** *The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.
*/ inline DomainSummary& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;} /** *The 12-digit account number of the Amazon Web Services account that owns the * domain. It does not include dashes or spaces.
*/ inline DomainSummary& WithOwner(const char* value) { SetOwner(value); return *this;} /** *The ARN of the domain.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The ARN of the domain.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The ARN of the domain.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The ARN of the domain.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The ARN of the domain.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The ARN of the domain.
*/ inline DomainSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The ARN of the domain.
*/ inline DomainSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The ARN of the domain.
*/ inline DomainSummary& WithArn(const char* value) { SetArn(value); return *this;} /** *A string that contains the status of the domain.
*/ inline const DomainStatus& GetStatus() const{ return m_status; } /** *A string that contains the status of the domain.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *A string that contains the status of the domain.
*/ inline void SetStatus(const DomainStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *A string that contains the status of the domain.
*/ inline void SetStatus(DomainStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *A string that contains the status of the domain.
*/ inline DomainSummary& WithStatus(const DomainStatus& value) { SetStatus(value); return *this;} /** *A string that contains the status of the domain.
*/ inline DomainSummary& WithStatus(DomainStatus&& value) { SetStatus(std::move(value)); return *this;} /** *A timestamp that contains the date and time the domain was created.
*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *A timestamp that contains the date and time the domain was created.
*/ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *A timestamp that contains 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 contains 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 contains the date and time the domain was created.
*/ inline DomainSummary& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *A timestamp that contains the date and time the domain was created.
*/ inline DomainSummary& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** *The key used to encrypt the domain.
*/ inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; } /** *The key used to encrypt the domain.
*/ inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; } /** *The key used to encrypt the domain.
*/ inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; } /** *The key used to encrypt the domain.
*/ inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); } /** *The key used to encrypt the domain.
*/ inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); } /** *The key used to encrypt the domain.
*/ inline DomainSummary& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;} /** *The key used to encrypt the domain.
*/ inline DomainSummary& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;} /** *The key used to encrypt the domain.
*/ inline DomainSummary& WithEncryptionKey(const char* value) { SetEncryptionKey(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; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws