AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Region.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 Region
33 {
34 public:
35 AWS_GEOPLACES_API Region();
36 AWS_GEOPLACES_API Region(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GEOPLACES_API Region& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetCode() const{ return m_code; }
47 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
48 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
49 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
50 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
51 inline Region& WithCode(const Aws::String& value) { SetCode(value); return *this;}
52 inline Region& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
53 inline Region& WithCode(const char* value) { SetCode(value); return *this;}
55
57
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline Region& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline Region& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline Region& WithName(const char* value) { SetName(value); return *this;}
70 private:
71
72 Aws::String m_code;
73 bool m_codeHasBeenSet = false;
74
75 Aws::String m_name;
76 bool m_nameHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace GeoPlaces
81} // namespace Aws
bool CodeHasBeenSet() const
Definition Region.h:47
const Aws::String & GetName() const
Definition Region.h:61
void SetName(const Aws::String &value)
Definition Region.h:63
const Aws::String & GetCode() const
Definition Region.h:46
bool NameHasBeenSet() const
Definition Region.h:62
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
Region & WithCode(const Aws::String &value)
Definition Region.h:51
Region & WithName(const Aws::String &value)
Definition Region.h:66
Region & WithCode(const char *value)
Definition Region.h:53
AWS_GEOPLACES_API Region & operator=(Aws::Utils::Json::JsonView jsonValue)
Region & WithName(const char *value)
Definition Region.h:68
void SetCode(const char *value)
Definition Region.h:50
void SetCode(Aws::String &&value)
Definition Region.h:49
void SetName(Aws::String &&value)
Definition Region.h:64
Region & WithCode(Aws::String &&value)
Definition Region.h:52
void SetCode(const Aws::String &value)
Definition Region.h:48
AWS_GEOPLACES_API Region()
AWS_GEOPLACES_API Region(Aws::Utils::Json::JsonView jsonValue)
Region & WithName(Aws::String &&value)
Definition Region.h:67
void SetName(const char *value)
Definition Region.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue