AWS SDK for C++

AWS SDK for C++ Version 1.11.751

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