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

Contains information about the location of the remote IP * address.

See Also:

AWS * API Reference

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

The latitude information of the remote IP address.

*/ inline double GetLat() const{ return m_lat; } /** *

The latitude information of the remote IP address.

*/ inline bool LatHasBeenSet() const { return m_latHasBeenSet; } /** *

The latitude information of the remote IP address.

*/ inline void SetLat(double value) { m_latHasBeenSet = true; m_lat = value; } /** *

The latitude information of the remote IP address.

*/ inline GeoLocation& WithLat(double value) { SetLat(value); return *this;} /** *

The longitude information of the remote IP address.

*/ inline double GetLon() const{ return m_lon; } /** *

The longitude information of the remote IP address.

*/ inline bool LonHasBeenSet() const { return m_lonHasBeenSet; } /** *

The longitude information of the remote IP address.

*/ inline void SetLon(double value) { m_lonHasBeenSet = true; m_lon = value; } /** *

The longitude information of the remote IP address.

*/ inline GeoLocation& WithLon(double value) { SetLon(value); return *this;} private: double m_lat; bool m_latHasBeenSet = false; double m_lon; bool m_lonHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws