/** * 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 Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace ElasticBeanstalk { namespace Model { /** *

Indicates if the specified CNAME is available.

See Also:

AWS * API Reference

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

Indicates if the specified CNAME is available:

  • * true : The CNAME is available.

  • * false : The CNAME is not available.

*/ inline bool GetAvailable() const{ return m_available; } /** *

Indicates if the specified CNAME is available:

  • * true : The CNAME is available.

  • * false : The CNAME is not available.

*/ inline void SetAvailable(bool value) { m_available = value; } /** *

Indicates if the specified CNAME is available:

  • * true : The CNAME is available.

  • * false : The CNAME is not available.

*/ inline CheckDNSAvailabilityResult& WithAvailable(bool value) { SetAvailable(value); return *this;} /** *

The fully qualified CNAME to reserve when CreateEnvironment is called * with the provided prefix.

*/ inline const Aws::String& GetFullyQualifiedCNAME() const{ return m_fullyQualifiedCNAME; } /** *

The fully qualified CNAME to reserve when CreateEnvironment is called * with the provided prefix.

*/ inline void SetFullyQualifiedCNAME(const Aws::String& value) { m_fullyQualifiedCNAME = value; } /** *

The fully qualified CNAME to reserve when CreateEnvironment is called * with the provided prefix.

*/ inline void SetFullyQualifiedCNAME(Aws::String&& value) { m_fullyQualifiedCNAME = std::move(value); } /** *

The fully qualified CNAME to reserve when CreateEnvironment is called * with the provided prefix.

*/ inline void SetFullyQualifiedCNAME(const char* value) { m_fullyQualifiedCNAME.assign(value); } /** *

The fully qualified CNAME to reserve when CreateEnvironment is called * with the provided prefix.

*/ inline CheckDNSAvailabilityResult& WithFullyQualifiedCNAME(const Aws::String& value) { SetFullyQualifiedCNAME(value); return *this;} /** *

The fully qualified CNAME to reserve when CreateEnvironment is called * with the provided prefix.

*/ inline CheckDNSAvailabilityResult& WithFullyQualifiedCNAME(Aws::String&& value) { SetFullyQualifiedCNAME(std::move(value)); return *this;} /** *

The fully qualified CNAME to reserve when CreateEnvironment is called * with the provided prefix.

*/ inline CheckDNSAvailabilityResult& WithFullyQualifiedCNAME(const char* value) { SetFullyQualifiedCNAME(value); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline CheckDNSAvailabilityResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline CheckDNSAvailabilityResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: bool m_available; Aws::String m_fullyQualifiedCNAME; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws