AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Country.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_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 GeoPlaces
22{
23namespace Model
24{
25
32 class Country
33 {
34 public:
35 AWS_GEOPLACES_API Country() = default;
36 AWS_GEOPLACES_API Country(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GEOPLACES_API Country& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetCode2() const { return m_code2; }
46 inline bool Code2HasBeenSet() const { return m_code2HasBeenSet; }
47 template<typename Code2T = Aws::String>
48 void SetCode2(Code2T&& value) { m_code2HasBeenSet = true; m_code2 = std::forward<Code2T>(value); }
49 template<typename Code2T = Aws::String>
50 Country& WithCode2(Code2T&& value) { SetCode2(std::forward<Code2T>(value)); return *this;}
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) { m_code3HasBeenSet = true; m_code3 = std::forward<Code3T>(value); }
61 template<typename Code3T = Aws::String>
62 Country& WithCode3(Code3T&& value) { SetCode3(std::forward<Code3T>(value)); return *this;}
64
66
69 inline const Aws::String& GetName() const { return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 template<typename NameT = Aws::String>
72 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
73 template<typename NameT = Aws::String>
74 Country& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
76 private:
77
78 Aws::String m_code2;
79 bool m_code2HasBeenSet = false;
80
81 Aws::String m_code3;
82 bool m_code3HasBeenSet = false;
83
84 Aws::String m_name;
85 bool m_nameHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace GeoPlaces
90} // namespace Aws
Country & WithCode2(Code2T &&value)
Definition Country.h:50
AWS_GEOPLACES_API Country()=default
void SetCode2(Code2T &&value)
Definition Country.h:48
const Aws::String & GetCode2() const
Definition Country.h:45
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:72
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:62
const Aws::String & GetName() const
Definition Country.h:69
Country & WithName(NameT &&value)
Definition Country.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue