1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/securityhub/SecurityHub_EXPORTS.h> 8 9 namespace Aws 10 { 11 namespace Utils 12 { 13 namespace Json 14 { 15 class JsonValue; 16 class JsonView; 17 } // namespace Json 18 } // namespace Utils 19 namespace SecurityHub 20 { 21 namespace Model 22 { 23 24 /** 25 * <p>Provides the latitude and longitude coordinates of a location.</p><p><h3>See 26 * Also:</h3> <a 27 * href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GeoLocation">AWS 28 * API Reference</a></p> 29 */ 30 class AWS_SECURITYHUB_API GeoLocation 31 { 32 public: 33 GeoLocation(); 34 GeoLocation(Aws::Utils::Json::JsonView jsonValue); 35 GeoLocation& operator=(Aws::Utils::Json::JsonView jsonValue); 36 Aws::Utils::Json::JsonValue Jsonize() const; 37 38 39 /** 40 * <p>The longitude of the location.</p> 41 */ GetLon()42 inline double GetLon() const{ return m_lon; } 43 44 /** 45 * <p>The longitude of the location.</p> 46 */ LonHasBeenSet()47 inline bool LonHasBeenSet() const { return m_lonHasBeenSet; } 48 49 /** 50 * <p>The longitude of the location.</p> 51 */ SetLon(double value)52 inline void SetLon(double value) { m_lonHasBeenSet = true; m_lon = value; } 53 54 /** 55 * <p>The longitude of the location.</p> 56 */ WithLon(double value)57 inline GeoLocation& WithLon(double value) { SetLon(value); return *this;} 58 59 60 /** 61 * <p>The latitude of the location.</p> 62 */ GetLat()63 inline double GetLat() const{ return m_lat; } 64 65 /** 66 * <p>The latitude of the location.</p> 67 */ LatHasBeenSet()68 inline bool LatHasBeenSet() const { return m_latHasBeenSet; } 69 70 /** 71 * <p>The latitude of the location.</p> 72 */ SetLat(double value)73 inline void SetLat(double value) { m_latHasBeenSet = true; m_lat = value; } 74 75 /** 76 * <p>The latitude of the location.</p> 77 */ WithLat(double value)78 inline GeoLocation& WithLat(double value) { SetLat(value); return *this;} 79 80 private: 81 82 double m_lon; 83 bool m_lonHasBeenSet; 84 85 double m_lat; 86 bool m_latHasBeenSet; 87 }; 88 89 } // namespace Model 90 } // namespace SecurityHub 91 } // namespace Aws 92