/** * 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 DeviceFarm { namespace Model { /** *

Represents a latitude and longitude pair, expressed in geographic coordinate * system degrees (for example, 47.6204, -122.3491).

Elevation is currently * not supported.

See Also:

AWS * API Reference

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

The latitude.

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

The latitude.

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

The latitude.

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

The latitude.

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

The longitude.

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

The longitude.

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

The longitude.

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

The longitude.

*/ inline Location& 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 DeviceFarm } // namespace Aws