AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
GeoLocation.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace SecurityHub {
17namespace Model {
18
26 public:
27 AWS_SECURITYHUB_API GeoLocation() = default;
28 AWS_SECURITYHUB_API GeoLocation(Aws::Utils::Json::JsonView jsonValue);
29 AWS_SECURITYHUB_API GeoLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline double GetLon() const { return m_lon; }
37 inline bool LonHasBeenSet() const { return m_lonHasBeenSet; }
38 inline void SetLon(double value) {
39 m_lonHasBeenSet = true;
40 m_lon = value;
41 }
42 inline GeoLocation& WithLon(double value) {
43 SetLon(value);
44 return *this;
45 }
47
49
52 inline double GetLat() const { return m_lat; }
53 inline bool LatHasBeenSet() const { return m_latHasBeenSet; }
54 inline void SetLat(double value) {
55 m_latHasBeenSet = true;
56 m_lat = value;
57 }
58 inline GeoLocation& WithLat(double value) {
59 SetLat(value);
60 return *this;
61 }
63 private:
64 double m_lon{0.0};
65
66 double m_lat{0.0};
67 bool m_lonHasBeenSet = false;
68 bool m_latHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace SecurityHub
73} // namespace Aws
AWS_SECURITYHUB_API GeoLocation()=default
GeoLocation & WithLat(double value)
Definition GeoLocation.h:58
AWS_SECURITYHUB_API GeoLocation(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
GeoLocation & WithLon(double value)
Definition GeoLocation.h:42
AWS_SECURITYHUB_API GeoLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue