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

The CheckDomainAvailability response includes the following * elements.

See Also:

AWS * API Reference

*/ class CheckDomainAvailabilityResult { public: AWS_ROUTE53DOMAINS_API CheckDomainAvailabilityResult(); AWS_ROUTE53DOMAINS_API CheckDomainAvailabilityResult(const Aws::AmazonWebServiceResult& result); AWS_ROUTE53DOMAINS_API CheckDomainAvailabilityResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Whether the domain name is available for registering.

You can * register only domains designated as AVAILABLE.

Valid * values:

AVAILABLE

The domain name is available.

*
AVAILABLE_RESERVED

The domain name is reserved under * specific conditions.

AVAILABLE_PREORDER

The domain * name is available and can be preordered.

DONT_KNOW
*

The TLD registry didn't reply with a definitive answer about whether the * domain name is available. Route 53 can return this response for a variety of * reasons, for example, the registry is performing maintenance. Try again * later.

PENDING

The TLD registry didn't return a * response in the expected amount of time. When the response is delayed, it * usually takes just a few extra seconds. You can resubmit the request * immediately.

RESERVED

The domain name has been * reserved for another person or organization.

UNAVAILABLE
*

The domain name is not available.

UNAVAILABLE_PREMIUM
*

The domain name is not available.

UNAVAILABLE_RESTRICTED
*

The domain name is forbidden.

*/ inline const DomainAvailability& GetAvailability() const{ return m_availability; } /** *

Whether the domain name is available for registering.

You can * register only domains designated as AVAILABLE.

Valid * values:

AVAILABLE

The domain name is available.

*
AVAILABLE_RESERVED

The domain name is reserved under * specific conditions.

AVAILABLE_PREORDER

The domain * name is available and can be preordered.

DONT_KNOW
*

The TLD registry didn't reply with a definitive answer about whether the * domain name is available. Route 53 can return this response for a variety of * reasons, for example, the registry is performing maintenance. Try again * later.

PENDING

The TLD registry didn't return a * response in the expected amount of time. When the response is delayed, it * usually takes just a few extra seconds. You can resubmit the request * immediately.

RESERVED

The domain name has been * reserved for another person or organization.

UNAVAILABLE
*

The domain name is not available.

UNAVAILABLE_PREMIUM
*

The domain name is not available.

UNAVAILABLE_RESTRICTED
*

The domain name is forbidden.

*/ inline void SetAvailability(const DomainAvailability& value) { m_availability = value; } /** *

Whether the domain name is available for registering.

You can * register only domains designated as AVAILABLE.

Valid * values:

AVAILABLE

The domain name is available.

*
AVAILABLE_RESERVED

The domain name is reserved under * specific conditions.

AVAILABLE_PREORDER

The domain * name is available and can be preordered.

DONT_KNOW
*

The TLD registry didn't reply with a definitive answer about whether the * domain name is available. Route 53 can return this response for a variety of * reasons, for example, the registry is performing maintenance. Try again * later.

PENDING

The TLD registry didn't return a * response in the expected amount of time. When the response is delayed, it * usually takes just a few extra seconds. You can resubmit the request * immediately.

RESERVED

The domain name has been * reserved for another person or organization.

UNAVAILABLE
*

The domain name is not available.

UNAVAILABLE_PREMIUM
*

The domain name is not available.

UNAVAILABLE_RESTRICTED
*

The domain name is forbidden.

*/ inline void SetAvailability(DomainAvailability&& value) { m_availability = std::move(value); } /** *

Whether the domain name is available for registering.

You can * register only domains designated as AVAILABLE.

Valid * values:

AVAILABLE

The domain name is available.

*
AVAILABLE_RESERVED

The domain name is reserved under * specific conditions.

AVAILABLE_PREORDER

The domain * name is available and can be preordered.

DONT_KNOW
*

The TLD registry didn't reply with a definitive answer about whether the * domain name is available. Route 53 can return this response for a variety of * reasons, for example, the registry is performing maintenance. Try again * later.

PENDING

The TLD registry didn't return a * response in the expected amount of time. When the response is delayed, it * usually takes just a few extra seconds. You can resubmit the request * immediately.

RESERVED

The domain name has been * reserved for another person or organization.

UNAVAILABLE
*

The domain name is not available.

UNAVAILABLE_PREMIUM
*

The domain name is not available.

UNAVAILABLE_RESTRICTED
*

The domain name is forbidden.

*/ inline CheckDomainAvailabilityResult& WithAvailability(const DomainAvailability& value) { SetAvailability(value); return *this;} /** *

Whether the domain name is available for registering.

You can * register only domains designated as AVAILABLE.

Valid * values:

AVAILABLE

The domain name is available.

*
AVAILABLE_RESERVED

The domain name is reserved under * specific conditions.

AVAILABLE_PREORDER

The domain * name is available and can be preordered.

DONT_KNOW
*

The TLD registry didn't reply with a definitive answer about whether the * domain name is available. Route 53 can return this response for a variety of * reasons, for example, the registry is performing maintenance. Try again * later.

PENDING

The TLD registry didn't return a * response in the expected amount of time. When the response is delayed, it * usually takes just a few extra seconds. You can resubmit the request * immediately.

RESERVED

The domain name has been * reserved for another person or organization.

UNAVAILABLE
*

The domain name is not available.

UNAVAILABLE_PREMIUM
*

The domain name is not available.

UNAVAILABLE_RESTRICTED
*

The domain name is forbidden.

*/ inline CheckDomainAvailabilityResult& WithAvailability(DomainAvailability&& value) { SetAvailability(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CheckDomainAvailabilityResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CheckDomainAvailabilityResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CheckDomainAvailabilityResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: DomainAvailability m_availability; Aws::String m_requestId; }; } // namespace Model } // namespace Route53Domains } // namespace Aws