AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
NetworkGeoLocation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
29 public:
30 AWS_GUARDDUTY_API NetworkGeoLocation() = default;
31 AWS_GUARDDUTY_API NetworkGeoLocation(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetCity() const { return m_city; }
40 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
41 template <typename CityT = Aws::String>
42 void SetCity(CityT&& value) {
43 m_cityHasBeenSet = true;
44 m_city = std::forward<CityT>(value);
45 }
46 template <typename CityT = Aws::String>
47 NetworkGeoLocation& WithCity(CityT&& value) {
48 SetCity(std::forward<CityT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCountry() const { return m_country; }
58 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
59 template <typename CountryT = Aws::String>
60 void SetCountry(CountryT&& value) {
61 m_countryHasBeenSet = true;
62 m_country = std::forward<CountryT>(value);
63 }
64 template <typename CountryT = Aws::String>
65 NetworkGeoLocation& WithCountry(CountryT&& value) {
66 SetCountry(std::forward<CountryT>(value));
67 return *this;
68 }
70
72
75 inline double GetLatitude() const { return m_latitude; }
76 inline bool LatitudeHasBeenSet() const { return m_latitudeHasBeenSet; }
77 inline void SetLatitude(double value) {
78 m_latitudeHasBeenSet = true;
79 m_latitude = value;
80 }
81 inline NetworkGeoLocation& WithLatitude(double value) {
82 SetLatitude(value);
83 return *this;
84 }
86
88
91 inline double GetLongitude() const { return m_longitude; }
92 inline bool LongitudeHasBeenSet() const { return m_longitudeHasBeenSet; }
93 inline void SetLongitude(double value) {
94 m_longitudeHasBeenSet = true;
95 m_longitude = value;
96 }
97 inline NetworkGeoLocation& WithLongitude(double value) {
98 SetLongitude(value);
99 return *this;
100 }
102 private:
103 Aws::String m_city;
104
105 Aws::String m_country;
106
107 double m_latitude{0.0};
108
109 double m_longitude{0.0};
110 bool m_cityHasBeenSet = false;
111 bool m_countryHasBeenSet = false;
112 bool m_latitudeHasBeenSet = false;
113 bool m_longitudeHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace GuardDuty
118} // namespace Aws
AWS_GUARDDUTY_API NetworkGeoLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API NetworkGeoLocation(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API NetworkGeoLocation()=default
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkGeoLocation & WithCity(CityT &&value)
NetworkGeoLocation & WithLatitude(double value)
NetworkGeoLocation & WithCountry(CountryT &&value)
NetworkGeoLocation & WithLongitude(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue