/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pinpoint { namespace Model { /** *

Specifies geographic information about an endpoint.

See Also:

* AWS * API Reference

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

The name of the city where the endpoint is located.

*/ inline const Aws::String& GetCity() const{ return m_city; } /** *

The name of the city where the endpoint is located.

*/ inline bool CityHasBeenSet() const { return m_cityHasBeenSet; } /** *

The name of the city where the endpoint is located.

*/ inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; } /** *

The name of the city where the endpoint is located.

*/ inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = std::move(value); } /** *

The name of the city where the endpoint is located.

*/ inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); } /** *

The name of the city where the endpoint is located.

*/ inline EndpointLocation& WithCity(const Aws::String& value) { SetCity(value); return *this;} /** *

The name of the city where the endpoint is located.

*/ inline EndpointLocation& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;} /** *

The name of the city where the endpoint is located.

*/ inline EndpointLocation& WithCity(const char* value) { SetCity(value); return *this;} /** *

The two-character code, in ISO 3166-1 alpha-2 format, for the country or * region where the endpoint is located. For example, US for the United States.

*/ inline const Aws::String& GetCountry() const{ return m_country; } /** *

The two-character code, in ISO 3166-1 alpha-2 format, for the country or * region where the endpoint is located. For example, US for the United States.

*/ inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; } /** *

The two-character code, in ISO 3166-1 alpha-2 format, for the country or * region where the endpoint is located. For example, US for the United States.

*/ inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; } /** *

The two-character code, in ISO 3166-1 alpha-2 format, for the country or * region where the endpoint is located. For example, US for the United States.

*/ inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); } /** *

The two-character code, in ISO 3166-1 alpha-2 format, for the country or * region where the endpoint is located. For example, US for the United States.

*/ inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); } /** *

The two-character code, in ISO 3166-1 alpha-2 format, for the country or * region where the endpoint is located. For example, US for the United States.

*/ inline EndpointLocation& WithCountry(const Aws::String& value) { SetCountry(value); return *this;} /** *

The two-character code, in ISO 3166-1 alpha-2 format, for the country or * region where the endpoint is located. For example, US for the United States.

*/ inline EndpointLocation& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;} /** *

The two-character code, in ISO 3166-1 alpha-2 format, for the country or * region where the endpoint is located. For example, US for the United States.

*/ inline EndpointLocation& WithCountry(const char* value) { SetCountry(value); return *this;} /** *

The latitude coordinate of the endpoint location, rounded to one decimal * place.

*/ inline double GetLatitude() const{ return m_latitude; } /** *

The latitude coordinate of the endpoint location, rounded to one decimal * place.

*/ inline bool LatitudeHasBeenSet() const { return m_latitudeHasBeenSet; } /** *

The latitude coordinate of the endpoint location, rounded to one decimal * place.

*/ inline void SetLatitude(double value) { m_latitudeHasBeenSet = true; m_latitude = value; } /** *

The latitude coordinate of the endpoint location, rounded to one decimal * place.

*/ inline EndpointLocation& WithLatitude(double value) { SetLatitude(value); return *this;} /** *

The longitude coordinate of the endpoint location, rounded to one decimal * place.

*/ inline double GetLongitude() const{ return m_longitude; } /** *

The longitude coordinate of the endpoint location, rounded to one decimal * place.

*/ inline bool LongitudeHasBeenSet() const { return m_longitudeHasBeenSet; } /** *

The longitude coordinate of the endpoint location, rounded to one decimal * place.

*/ inline void SetLongitude(double value) { m_longitudeHasBeenSet = true; m_longitude = value; } /** *

The longitude coordinate of the endpoint location, rounded to one decimal * place.

*/ inline EndpointLocation& WithLongitude(double value) { SetLongitude(value); return *this;} /** *

The postal or ZIP code for the area where the endpoint is located.

*/ inline const Aws::String& GetPostalCode() const{ return m_postalCode; } /** *

The postal or ZIP code for the area where the endpoint is located.

*/ inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; } /** *

The postal or ZIP code for the area where the endpoint is located.

*/ inline void SetPostalCode(const Aws::String& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; } /** *

The postal or ZIP code for the area where the endpoint is located.

*/ inline void SetPostalCode(Aws::String&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::move(value); } /** *

The postal or ZIP code for the area where the endpoint is located.

*/ inline void SetPostalCode(const char* value) { m_postalCodeHasBeenSet = true; m_postalCode.assign(value); } /** *

The postal or ZIP code for the area where the endpoint is located.

*/ inline EndpointLocation& WithPostalCode(const Aws::String& value) { SetPostalCode(value); return *this;} /** *

The postal or ZIP code for the area where the endpoint is located.

*/ inline EndpointLocation& WithPostalCode(Aws::String&& value) { SetPostalCode(std::move(value)); return *this;} /** *

The postal or ZIP code for the area where the endpoint is located.

*/ inline EndpointLocation& WithPostalCode(const char* value) { SetPostalCode(value); return *this;} /** *

The name of the region where the endpoint is located. For locations in the * United States, this value is the name of a state.

*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *

The name of the region where the endpoint is located. For locations in the * United States, this value is the name of a state.

*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *

The name of the region where the endpoint is located. For locations in the * United States, this value is the name of a state.

*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *

The name of the region where the endpoint is located. For locations in the * United States, this value is the name of a state.

*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *

The name of the region where the endpoint is located. For locations in the * United States, this value is the name of a state.

*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *

The name of the region where the endpoint is located. For locations in the * United States, this value is the name of a state.

*/ inline EndpointLocation& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *

The name of the region where the endpoint is located. For locations in the * United States, this value is the name of a state.

*/ inline EndpointLocation& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *

The name of the region where the endpoint is located. For locations in the * United States, this value is the name of a state.

*/ inline EndpointLocation& WithRegion(const char* value) { SetRegion(value); return *this;} private: Aws::String m_city; bool m_cityHasBeenSet; Aws::String m_country; bool m_countryHasBeenSet; double m_latitude; bool m_latitudeHasBeenSet; double m_longitude; bool m_longitudeHasBeenSet; Aws::String m_postalCode; bool m_postalCodeHasBeenSet; Aws::String m_region; bool m_regionHasBeenSet; }; } // namespace Model } // namespace Pinpoint } // namespace Aws