AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GeoLocation.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty
20{
21namespace Model
22{
23
32 {
33 public:
34 AWS_GUARDDUTY_API GeoLocation() = default;
35 AWS_GUARDDUTY_API GeoLocation(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API GeoLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline double GetLat() const { return m_lat; }
45 inline bool LatHasBeenSet() const { return m_latHasBeenSet; }
46 inline void SetLat(double value) { m_latHasBeenSet = true; m_lat = value; }
47 inline GeoLocation& WithLat(double value) { SetLat(value); return *this;}
49
51
54 inline double GetLon() const { return m_lon; }
55 inline bool LonHasBeenSet() const { return m_lonHasBeenSet; }
56 inline void SetLon(double value) { m_lonHasBeenSet = true; m_lon = value; }
57 inline GeoLocation& WithLon(double value) { SetLon(value); return *this;}
59 private:
60
61 double m_lat{0.0};
62 bool m_latHasBeenSet = false;
63
64 double m_lon{0.0};
65 bool m_lonHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace GuardDuty
70} // namespace Aws
GeoLocation & WithLon(double value)
Definition GeoLocation.h:57
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:47
AWS_GUARDDUTY_API GeoLocation()=default
Aws::Utils::Json::JsonValue JsonValue