AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
NetworkGeoLocation.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_GUARDDUTY_API NetworkGeoLocation() = default;
36 AWS_GUARDDUTY_API NetworkGeoLocation(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
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) { m_cityHasBeenSet = true; m_city = std::forward<CityT>(value); }
49 template<typename CityT = Aws::String>
50 NetworkGeoLocation& WithCity(CityT&& value) { SetCity(std::forward<CityT>(value)); return *this;}
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) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
61 template<typename CountryT = Aws::String>
62 NetworkGeoLocation& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
64
66
69 inline double GetLatitude() const { return m_latitude; }
70 inline bool LatitudeHasBeenSet() const { return m_latitudeHasBeenSet; }
71 inline void SetLatitude(double value) { m_latitudeHasBeenSet = true; m_latitude = value; }
72 inline NetworkGeoLocation& WithLatitude(double value) { SetLatitude(value); return *this;}
74
76
79 inline double GetLongitude() const { return m_longitude; }
80 inline bool LongitudeHasBeenSet() const { return m_longitudeHasBeenSet; }
81 inline void SetLongitude(double value) { m_longitudeHasBeenSet = true; m_longitude = value; }
82 inline NetworkGeoLocation& WithLongitude(double value) { SetLongitude(value); return *this;}
84 private:
85
86 Aws::String m_city;
87 bool m_cityHasBeenSet = false;
88
89 Aws::String m_country;
90 bool m_countryHasBeenSet = false;
91
92 double m_latitude{0.0};
93 bool m_latitudeHasBeenSet = false;
94
95 double m_longitude{0.0};
96 bool m_longitudeHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace GuardDuty
101} // 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