AWS SDK for C++

AWS SDK for C++ Version 1.11.752

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