AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
Region.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 Region {
29 public:
30 AWS_GEOPLACES_API Region() = default;
31 AWS_GEOPLACES_API Region(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GEOPLACES_API Region& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
43 inline const Aws::String& GetCode() const { return m_code; }
44 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
45 template <typename CodeT = Aws::String>
46 void SetCode(CodeT&& value) {
47 m_codeHasBeenSet = true;
48 m_code = std::forward<CodeT>(value);
49 }
50 template <typename CodeT = Aws::String>
51 Region& WithCode(CodeT&& value) {
52 SetCode(std::forward<CodeT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
70 Region& WithName(NameT&& value) {
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_code;
77
78 Aws::String m_name;
79 bool m_codeHasBeenSet = false;
80 bool m_nameHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace GeoPlaces
85} // namespace Aws
bool CodeHasBeenSet() const
Definition Region.h:44
const Aws::String & GetName() const
Definition Region.h:62
const Aws::String & GetCode() const
Definition Region.h:43
AWS_GEOPLACES_API Region()=default
bool NameHasBeenSet() const
Definition Region.h:63
void SetName(NameT &&value)
Definition Region.h:65
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
Region & WithName(NameT &&value)
Definition Region.h:70
AWS_GEOPLACES_API Region & operator=(Aws::Utils::Json::JsonView jsonValue)
Region & WithCode(CodeT &&value)
Definition Region.h:51
AWS_GEOPLACES_API Region(Aws::Utils::Json::JsonView jsonValue)
void SetCode(CodeT &&value)
Definition Region.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue