AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCode2(const Aws::String& value) { m_code2HasBeenSet = true; m_code2 = value; }
48 inline void SetCode2(Aws::String&& value) { m_code2HasBeenSet = true; m_code2 = std::move(value); }
49 inline void SetCode2(const char* value) { m_code2HasBeenSet = true; m_code2.assign(value); }
50 inline Country& WithCode2(const Aws::String& value) { SetCode2(value); return *this;}
51 inline Country& WithCode2(Aws::String&& value) { SetCode2(std::move(value)); return *this;}
52 inline Country& WithCode2(const char* value) { SetCode2(value); return *this;}
54
56
59 inline const Aws::String& GetCode3() const{ return m_code3; }
60 inline bool Code3HasBeenSet() const { return m_code3HasBeenSet; }
61 inline void SetCode3(const Aws::String& value) { m_code3HasBeenSet = true; m_code3 = value; }
62 inline void SetCode3(Aws::String&& value) { m_code3HasBeenSet = true; m_code3 = std::move(value); }
63 inline void SetCode3(const char* value) { m_code3HasBeenSet = true; m_code3.assign(value); }
64 inline Country& WithCode3(const Aws::String& value) { SetCode3(value); return *this;}
65 inline Country& WithCode3(Aws::String&& value) { SetCode3(std::move(value)); return *this;}
66 inline Country& WithCode3(const char* value) { SetCode3(value); return *this;}
68
70
73 inline const Aws::String& GetName() const{ return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
76 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
77 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
78 inline Country& WithName(const Aws::String& value) { SetName(value); return *this;}
79 inline Country& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 inline Country& WithName(const char* value) { SetName(value); return *this;}
82 private:
83
84 Aws::String m_code2;
85 bool m_code2HasBeenSet = false;
86
87 Aws::String m_code3;
88 bool m_code3HasBeenSet = false;
89
90 Aws::String m_name;
91 bool m_nameHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace GeoPlaces
96} // namespace Aws
void SetCode3(Aws::String &&value)
Definition Country.h:62
Country & WithName(const Aws::String &value)
Definition Country.h:78
Country & WithCode3(Aws::String &&value)
Definition Country.h:65
void SetName(const Aws::String &value)
Definition Country.h:75
Country & WithName(Aws::String &&value)
Definition Country.h:79
const Aws::String & GetCode2() const
Definition Country.h:45
void SetCode3(const char *value)
Definition Country.h:63
AWS_GEOPLACES_API Country & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Country(Aws::Utils::Json::JsonView jsonValue)
void SetCode2(const char *value)
Definition Country.h:49
void SetCode2(Aws::String &&value)
Definition Country.h:48
void SetName(const char *value)
Definition Country.h:77
Country & WithName(const char *value)
Definition Country.h:80
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetCode3() const
Definition Country.h:59
Country & WithCode2(Aws::String &&value)
Definition Country.h:51
Country & WithCode2(const Aws::String &value)
Definition Country.h:50
Country & WithCode2(const char *value)
Definition Country.h:52
const Aws::String & GetName() const
Definition Country.h:73
void SetCode3(const Aws::String &value)
Definition Country.h:61
void SetCode2(const Aws::String &value)
Definition Country.h:47
void SetName(Aws::String &&value)
Definition Country.h:76
Country & WithCode3(const char *value)
Definition Country.h:66
AWS_GEOPLACES_API Country()
Country & WithCode3(const Aws::String &value)
Definition Country.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue