AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
Country.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-places/GeoPlaces_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GeoPlaces {
20namespace Model {
21
28class Country {
29 public:
30 AWS_GEOPLACES_API Country() = default;
31 AWS_GEOPLACES_API Country(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GEOPLACES_API Country& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetCode2() const { return m_code2; }
40 inline bool Code2HasBeenSet() const { return m_code2HasBeenSet; }
41 template <typename Code2T = Aws::String>
42 void SetCode2(Code2T&& value) {
43 m_code2HasBeenSet = true;
44 m_code2 = std::forward<Code2T>(value);
45 }
46 template <typename Code2T = Aws::String>
47 Country& WithCode2(Code2T&& value) {
48 SetCode2(std::forward<Code2T>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCode3() const { return m_code3; }
58 inline bool Code3HasBeenSet() const { return m_code3HasBeenSet; }
59 template <typename Code3T = Aws::String>
60 void SetCode3(Code3T&& value) {
61 m_code3HasBeenSet = true;
62 m_code3 = std::forward<Code3T>(value);
63 }
64 template <typename Code3T = Aws::String>
65 Country& WithCode3(Code3T&& value) {
66 SetCode3(std::forward<Code3T>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
83 Country& WithName(NameT&& value) {
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_code2;
90
91 Aws::String m_code3;
92
93 Aws::String m_name;
94 bool m_code2HasBeenSet = false;
95 bool m_code3HasBeenSet = false;
96 bool m_nameHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace GeoPlaces
101} // namespace Aws
Country & WithCode2(Code2T &&value)
Definition Country.h:47
AWS_GEOPLACES_API Country()=default
void SetCode2(Code2T &&value)
Definition Country.h:42
const Aws::String & GetCode2() const
Definition Country.h:39
AWS_GEOPLACES_API Country & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Country(Aws::Utils::Json::JsonView jsonValue)
void SetName(NameT &&value)
Definition Country.h:78
void SetCode3(Code3T &&value)
Definition Country.h:60
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetCode3() const
Definition Country.h:57
Country & WithCode3(Code3T &&value)
Definition Country.h:65
const Aws::String & GetName() const
Definition Country.h:75
Country & WithName(NameT &&value)
Definition Country.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue