AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NetworkGeoLocation.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_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 SecurityHub
22{
23namespace Model
24{
25
39 {
40 public:
41 AWS_SECURITYHUB_API NetworkGeoLocation() = default;
42 AWS_SECURITYHUB_API NetworkGeoLocation(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetCity() const { return m_city; }
52 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
53 template<typename CityT = Aws::String>
54 void SetCity(CityT&& value) { m_cityHasBeenSet = true; m_city = std::forward<CityT>(value); }
55 template<typename CityT = Aws::String>
56 NetworkGeoLocation& WithCity(CityT&& value) { SetCity(std::forward<CityT>(value)); return *this;}
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) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
67 template<typename CountryT = Aws::String>
68 NetworkGeoLocation& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
70
72
75 inline double GetLat() const { return m_lat; }
76 inline bool LatHasBeenSet() const { return m_latHasBeenSet; }
77 inline void SetLat(double value) { m_latHasBeenSet = true; m_lat = value; }
78 inline NetworkGeoLocation& WithLat(double value) { SetLat(value); return *this;}
80
82
85 inline double GetLon() const { return m_lon; }
86 inline bool LonHasBeenSet() const { return m_lonHasBeenSet; }
87 inline void SetLon(double value) { m_lonHasBeenSet = true; m_lon = value; }
88 inline NetworkGeoLocation& WithLon(double value) { SetLon(value); return *this;}
90 private:
91
92 Aws::String m_city;
93 bool m_cityHasBeenSet = false;
94
95 Aws::String m_country;
96 bool m_countryHasBeenSet = false;
97
98 double m_lat{0.0};
99 bool m_latHasBeenSet = false;
100
101 double m_lon{0.0};
102 bool m_lonHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace SecurityHub
107} // 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