/** * 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 CodeArtifact { namespace Model { /** *

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

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

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 AWS 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 AWS 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 AWS 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 AWS 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 AWS 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 AWS 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 AWS 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 AWS 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. The valid values are:

*
  • Active

  • Deleted

    *
*/ inline const DomainStatus& GetStatus() const{ return m_status; } /** *

A string that contains the status of the domain. The valid values are:

*
  • Active

  • Deleted

    *
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

A string that contains the status of the domain. The valid values are:

*
  • Active

  • Deleted

    *
*/ inline void SetStatus(const DomainStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

A string that contains the status of the domain. The valid values are:

*
  • Active

  • Deleted

    *
*/ inline void SetStatus(DomainStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

A string that contains the status of the domain. The valid values are:

*
  • Active

  • Deleted

    *
*/ inline DomainSummary& WithStatus(const DomainStatus& value) { SetStatus(value); return *this;} /** *

A string that contains the status of the domain. The valid values are:

*
  • Active

  • Deleted

    *
*/ 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; 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; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws