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

Specifies the GPS coordinates of a location.

See Also:

AWS * API Reference

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

The latitude coordinate of the location.

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

The latitude coordinate of the location.

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

The latitude coordinate of the location.

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

The latitude coordinate of the location.

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

The longitude coordinate of the location.

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

The longitude coordinate of the location.

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

The longitude coordinate of the location.

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

The longitude coordinate of the location.

*/ inline GPSCoordinates& WithLongitude(double value) { SetLongitude(value); return *this;} private: double m_latitude; bool m_latitudeHasBeenSet = false; double m_longitude; bool m_longitudeHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws