AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ClientLocation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkflowmonitor/NetworkFlowMonitor_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace NetworkFlowMonitor {
20namespace Model {
21
29 public:
30 AWS_NETWORKFLOWMONITOR_API ClientLocation() = default;
31 AWS_NETWORKFLOWMONITOR_API ClientLocation(Aws::Utils::Json::JsonView jsonValue);
32 AWS_NETWORKFLOWMONITOR_API ClientLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NETWORKFLOWMONITOR_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 ClientLocation& WithCity(CityT&& value) {
48 SetCity(std::forward<CityT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetSubdivision() const { return m_subdivision; }
59 inline bool SubdivisionHasBeenSet() const { return m_subdivisionHasBeenSet; }
60 template <typename SubdivisionT = Aws::String>
61 void SetSubdivision(SubdivisionT&& value) {
62 m_subdivisionHasBeenSet = true;
63 m_subdivision = std::forward<SubdivisionT>(value);
64 }
65 template <typename SubdivisionT = Aws::String>
66 ClientLocation& WithSubdivision(SubdivisionT&& value) {
67 SetSubdivision(std::forward<SubdivisionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetCountry() const { return m_country; }
77 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
78 template <typename CountryT = Aws::String>
79 void SetCountry(CountryT&& value) {
80 m_countryHasBeenSet = true;
81 m_country = std::forward<CountryT>(value);
82 }
83 template <typename CountryT = Aws::String>
84 ClientLocation& WithCountry(CountryT&& value) {
85 SetCountry(std::forward<CountryT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_city;
91
92 Aws::String m_subdivision;
93
94 Aws::String m_country;
95 bool m_cityHasBeenSet = false;
96 bool m_subdivisionHasBeenSet = false;
97 bool m_countryHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace NetworkFlowMonitor
102} // namespace Aws
ClientLocation & WithSubdivision(SubdivisionT &&value)
ClientLocation & WithCountry(CountryT &&value)
AWS_NETWORKFLOWMONITOR_API ClientLocation(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFLOWMONITOR_API ClientLocation()=default
AWS_NETWORKFLOWMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
ClientLocation & WithCity(CityT &&value)
AWS_NETWORKFLOWMONITOR_API ClientLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue