AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NetworkGeoLocation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
35 public:
36 AWS_SECURITYHUB_API NetworkGeoLocation() = default;
37 AWS_SECURITYHUB_API NetworkGeoLocation(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetCity() const { return m_city; }
46 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
47 template <typename CityT = Aws::String>
48 void SetCity(CityT&& value) {
49 m_cityHasBeenSet = true;
50 m_city = std::forward<CityT>(value);
51 }
52 template <typename CityT = Aws::String>
53 NetworkGeoLocation& WithCity(CityT&& value) {
54 SetCity(std::forward<CityT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetCountry() const { return m_country; }
64 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
65 template <typename CountryT = Aws::String>
66 void SetCountry(CountryT&& value) {
67 m_countryHasBeenSet = true;
68 m_country = std::forward<CountryT>(value);
69 }
70 template <typename CountryT = Aws::String>
71 NetworkGeoLocation& WithCountry(CountryT&& value) {
72 SetCountry(std::forward<CountryT>(value));
73 return *this;
74 }
76
78
81 inline double GetLat() const { return m_lat; }
82 inline bool LatHasBeenSet() const { return m_latHasBeenSet; }
83 inline void SetLat(double value) {
84 m_latHasBeenSet = true;
85 m_lat = value;
86 }
87 inline NetworkGeoLocation& WithLat(double value) {
88 SetLat(value);
89 return *this;
90 }
92
94
97 inline double GetLon() const { return m_lon; }
98 inline bool LonHasBeenSet() const { return m_lonHasBeenSet; }
99 inline void SetLon(double value) {
100 m_lonHasBeenSet = true;
101 m_lon = value;
102 }
103 inline NetworkGeoLocation& WithLon(double value) {
104 SetLon(value);
105 return *this;
106 }
108 private:
109 Aws::String m_city;
110
111 Aws::String m_country;
112
113 double m_lat{0.0};
114
115 double m_lon{0.0};
116 bool m_cityHasBeenSet = false;
117 bool m_countryHasBeenSet = false;
118 bool m_latHasBeenSet = false;
119 bool m_lonHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace SecurityHub
124} // namespace Aws
AWS_SECURITYHUB_API NetworkGeoLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API NetworkGeoLocation()=default
NetworkGeoLocation & WithLon(double value)
NetworkGeoLocation & WithCity(CityT &&value)
NetworkGeoLocation & WithCountry(CountryT &&value)
NetworkGeoLocation & WithLat(double value)
AWS_SECURITYHUB_API NetworkGeoLocation(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue