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

A request for information about whether a specified geographic location is * supported for Amazon Route 53 geolocation resource record sets.

See * Also:

AWS * API Reference

*/ class GetGeoLocationRequest : public Route53Request { public: AWS_ROUTE53_API GetGeoLocationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetGeoLocation"; } AWS_ROUTE53_API Aws::String SerializePayload() const override; AWS_ROUTE53_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

For geolocation resource record sets, a two-letter abbreviation that * identifies a 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

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

For geolocation resource record sets, a two-letter abbreviation that * identifies a 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

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

For geolocation resource record sets, a two-letter abbreviation that * identifies a 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

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

For geolocation resource record sets, a two-letter abbreviation that * identifies a 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

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

For geolocation resource record sets, a two-letter abbreviation that * identifies a 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

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

For geolocation resource record sets, a two-letter abbreviation that * identifies a 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

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

For geolocation resource record sets, a two-letter abbreviation that * identifies a 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

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

For geolocation resource record sets, a two-letter abbreviation that * identifies a 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

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

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; } /** *

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; } /** *

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; } /** *

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); } /** *

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); } /** *

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

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

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

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

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

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

The code for the subdivision, such as a particular state within the United * States. For a list of US state abbreviations, see Appendix B: Two–Letter State and * Possession Abbreviations on the United States Postal Service website. For a * list of all supported subdivision codes, use the ListGeoLocations * API.

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

The code for the subdivision, such as a particular state within the United * States. For a list of US state abbreviations, see Appendix B: Two–Letter State and * Possession Abbreviations on the United States Postal Service website. For a * list of all supported subdivision codes, use the ListGeoLocations * API.

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

The code for the subdivision, such as a particular state within the United * States. For a list of US state abbreviations, see Appendix B: Two–Letter State and * Possession Abbreviations on the United States Postal Service website. For a * list of all supported subdivision codes, use the ListGeoLocations * API.

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

The code for the subdivision, such as a particular state within the United * States. For a list of US state abbreviations, see Appendix B: Two–Letter State and * Possession Abbreviations on the United States Postal Service website. For a * list of all supported subdivision codes, use the ListGeoLocations * API.

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

The code for the subdivision, such as a particular state within the United * States. For a list of US state abbreviations, see Appendix B: Two–Letter State and * Possession Abbreviations on the United States Postal Service website. For a * list of all supported subdivision codes, use the ListGeoLocations * API.

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

The code for the subdivision, such as a particular state within the United * States. For a list of US state abbreviations, see Appendix B: Two–Letter State and * Possession Abbreviations on the United States Postal Service website. For a * list of all supported subdivision codes, use the ListGeoLocations * API.

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

The code for the subdivision, such as a particular state within the United * States. For a list of US state abbreviations, see Appendix B: Two–Letter State and * Possession Abbreviations on the United States Postal Service website. For a * list of all supported subdivision codes, use the ListGeoLocations * API.

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

The code for the subdivision, such as a particular state within the United * States. For a list of US state abbreviations, see Appendix B: Two–Letter State and * Possession Abbreviations on the United States Postal Service website. For a * list of all supported subdivision codes, use the ListGeoLocations * API.

*/ inline GetGeoLocationRequest& 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