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

A complex type that contains information about a geographic * location.

See Also:

AWS * API Reference

*/ class GeoLocation { public: AWS_ROUTE53_API GeoLocation(); AWS_ROUTE53_API GeoLocation(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API GeoLocation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The two-letter code for the continent.

Amazon Route 53 supports the * following continent codes:

  • AF: Africa

  • *

    AN: Antarctica

  • AS: Asia

  • * EU: Europe

  • OC: Oceania

  • * NA: North America

  • SA: South America

  • *

Constraint: Specifying ContinentCode with either * CountryCode or SubdivisionCode returns an * InvalidInput error.

*/ inline const Aws::String& GetContinentCode() const{ return m_continentCode; } /** *

The two-letter code for the continent.

Amazon Route 53 supports the * following continent codes:

  • AF: Africa

  • *

    AN: Antarctica

  • AS: Asia

  • * EU: Europe

  • OC: Oceania

  • * NA: North America

  • SA: South America

  • *

Constraint: Specifying ContinentCode with either * CountryCode or SubdivisionCode returns an * InvalidInput error.

*/ inline bool ContinentCodeHasBeenSet() const { return m_continentCodeHasBeenSet; } /** *

The two-letter code for the continent.

Amazon Route 53 supports the * following continent codes:

  • AF: Africa

  • *

    AN: Antarctica

  • AS: Asia

  • * EU: Europe

  • OC: Oceania

  • * NA: North America

  • SA: South America

  • *

Constraint: Specifying ContinentCode with either * CountryCode or SubdivisionCode returns an * InvalidInput error.

*/ inline void SetContinentCode(const Aws::String& value) { m_continentCodeHasBeenSet = true; m_continentCode = value; } /** *

The two-letter code for the continent.

Amazon Route 53 supports the * following continent codes:

  • AF: Africa

  • *

    AN: Antarctica

  • AS: Asia

  • * EU: Europe

  • OC: Oceania

  • * NA: North America

  • SA: South America

  • *

Constraint: Specifying ContinentCode with either * CountryCode or SubdivisionCode returns an * InvalidInput error.

*/ inline void SetContinentCode(Aws::String&& value) { m_continentCodeHasBeenSet = true; m_continentCode = std::move(value); } /** *

The two-letter code for the continent.

Amazon Route 53 supports the * following continent codes:

  • AF: Africa

  • *

    AN: Antarctica

  • AS: Asia

  • * EU: Europe

  • OC: Oceania

  • * NA: North America

  • SA: South America

  • *

Constraint: Specifying ContinentCode with either * CountryCode or SubdivisionCode returns an * InvalidInput error.

*/ inline void SetContinentCode(const char* value) { m_continentCodeHasBeenSet = true; m_continentCode.assign(value); } /** *

The two-letter code for the continent.

Amazon Route 53 supports the * following continent codes:

  • AF: Africa

  • *

    AN: Antarctica

  • AS: Asia

  • * EU: Europe

  • OC: Oceania

  • * NA: North America

  • SA: South America

  • *

Constraint: Specifying ContinentCode with either * CountryCode or SubdivisionCode returns an * InvalidInput error.

*/ inline GeoLocation& WithContinentCode(const Aws::String& value) { SetContinentCode(value); return *this;} /** *

The two-letter code for the continent.

Amazon Route 53 supports the * following continent codes:

  • AF: Africa

  • *

    AN: Antarctica

  • AS: Asia

  • * EU: Europe

  • OC: Oceania

  • * NA: North America

  • SA: South America

  • *

Constraint: Specifying ContinentCode with either * CountryCode or SubdivisionCode returns an * InvalidInput error.

*/ inline GeoLocation& WithContinentCode(Aws::String&& value) { SetContinentCode(std::move(value)); return *this;} /** *

The two-letter code for the continent.

Amazon Route 53 supports the * following continent codes:

  • AF: Africa

  • *

    AN: Antarctica

  • AS: Asia

  • * EU: Europe

  • OC: Oceania

  • * NA: North America

  • SA: South America

  • *

Constraint: Specifying ContinentCode with either * CountryCode or SubdivisionCode returns an * InvalidInput error.

*/ inline GeoLocation& WithContinentCode(const char* value) { SetContinentCode(value); return *this;} /** *

For geolocation resource record sets, the two-letter code for a country.

*

Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 * alpha-2.

*/ inline const Aws::String& GetCountryCode() const{ return m_countryCode; } /** *

For geolocation resource record sets, the two-letter code for a country.

*

Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 * alpha-2.

*/ inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; } /** *

For geolocation resource record sets, the two-letter code for a country.

*

Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 * alpha-2.

*/ inline void SetCountryCode(const Aws::String& value) { m_countryCodeHasBeenSet = true; m_countryCode = value; } /** *

For geolocation resource record sets, the two-letter code for a country.

*

Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 * alpha-2.

*/ inline void SetCountryCode(Aws::String&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::move(value); } /** *

For geolocation resource record sets, the two-letter code for a country.

*

Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 * alpha-2.

*/ inline void SetCountryCode(const char* value) { m_countryCodeHasBeenSet = true; m_countryCode.assign(value); } /** *

For geolocation resource record sets, the two-letter code for a country.

*

Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 * alpha-2.

*/ inline GeoLocation& WithCountryCode(const Aws::String& value) { SetCountryCode(value); return *this;} /** *

For geolocation resource record sets, the two-letter code for a country.

*

Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 * alpha-2.

*/ inline GeoLocation& WithCountryCode(Aws::String&& value) { SetCountryCode(std::move(value)); return *this;} /** *

For geolocation resource record sets, the two-letter code for a country.

*

Amazon Route 53 uses the two-letter country codes that are specified in ISO standard 3166-1 * alpha-2.

*/ inline GeoLocation& WithCountryCode(const char* value) { SetCountryCode(value); return *this;} /** *

For geolocation resource record sets, the two-letter code for a state of the * United States. Route 53 doesn't support any other values for * SubdivisionCode. For a list of state abbreviations, see Appendix B: Two–Letter State and * Possession Abbreviations on the United States Postal Service website.

*

If you specify subdivisioncode, you must also specify * US for CountryCode.

*/ inline const Aws::String& GetSubdivisionCode() const{ return m_subdivisionCode; } /** *

For geolocation resource record sets, the two-letter code for a state of the * United States. Route 53 doesn't support any other values for * SubdivisionCode. For a list of state abbreviations, see Appendix B: Two–Letter State and * Possession Abbreviations on the United States Postal Service website.

*

If you specify subdivisioncode, you must also specify * US for CountryCode.

*/ inline bool SubdivisionCodeHasBeenSet() const { return m_subdivisionCodeHasBeenSet; } /** *

For geolocation resource record sets, the two-letter code for a state of the * United States. Route 53 doesn't support any other values for * SubdivisionCode. For a list of state abbreviations, see Appendix B: Two–Letter State and * Possession Abbreviations on the United States Postal Service website.

*

If you specify subdivisioncode, you must also specify * US for CountryCode.

*/ inline void SetSubdivisionCode(const Aws::String& value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode = value; } /** *

For geolocation resource record sets, the two-letter code for a state of the * United States. Route 53 doesn't support any other values for * SubdivisionCode. For a list of state abbreviations, see Appendix B: Two–Letter State and * Possession Abbreviations on the United States Postal Service website.

*

If you specify subdivisioncode, you must also specify * US for CountryCode.

*/ inline void SetSubdivisionCode(Aws::String&& value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode = std::move(value); } /** *

For geolocation resource record sets, the two-letter code for a state of the * United States. Route 53 doesn't support any other values for * SubdivisionCode. For a list of state abbreviations, see Appendix B: Two–Letter State and * Possession Abbreviations on the United States Postal Service website.

*

If you specify subdivisioncode, you must also specify * US for CountryCode.

*/ inline void SetSubdivisionCode(const char* value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode.assign(value); } /** *

For geolocation resource record sets, the two-letter code for a state of the * United States. Route 53 doesn't support any other values for * SubdivisionCode. For a list of state abbreviations, see Appendix B: Two–Letter State and * Possession Abbreviations on the United States Postal Service website.

*

If you specify subdivisioncode, you must also specify * US for CountryCode.

*/ inline GeoLocation& WithSubdivisionCode(const Aws::String& value) { SetSubdivisionCode(value); return *this;} /** *

For geolocation resource record sets, the two-letter code for a state of the * United States. Route 53 doesn't support any other values for * SubdivisionCode. For a list of state abbreviations, see Appendix B: Two–Letter State and * Possession Abbreviations on the United States Postal Service website.

*

If you specify subdivisioncode, you must also specify * US for CountryCode.

*/ inline GeoLocation& WithSubdivisionCode(Aws::String&& value) { SetSubdivisionCode(std::move(value)); return *this;} /** *

For geolocation resource record sets, the two-letter code for a state of the * United States. Route 53 doesn't support any other values for * SubdivisionCode. For a list of state abbreviations, see Appendix B: Two–Letter State and * Possession Abbreviations on the United States Postal Service website.

*

If you specify subdivisioncode, you must also specify * US for CountryCode.

*/ inline GeoLocation& WithSubdivisionCode(const char* value) { SetSubdivisionCode(value); return *this;} private: Aws::String m_continentCode; bool m_continentCodeHasBeenSet = false; Aws::String m_countryCode; bool m_countryCodeHasBeenSet = false; Aws::String m_subdivisionCode; bool m_subdivisionCodeHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws