AWS SDK for C++

AWS SDK for C++ Version 1.11.754

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
40 inline const Aws::String& GetCode() const { return m_code; }
41 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
42 template <typename CodeT = Aws::String>
43 void SetCode(CodeT&& value) {
44 m_codeHasBeenSet = true;
45 m_code = std::forward<CodeT>(value);
46 }
47 template <typename CodeT = Aws::String>
48 Region& WithCode(CodeT&& value) {
49 SetCode(std::forward<CodeT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 Region& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_code;
74
75 Aws::String m_name;
76 bool m_codeHasBeenSet = false;
77 bool m_nameHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace GeoPlaces
82} // namespace Aws
bool CodeHasBeenSet() const
Definition Region.h:41
const Aws::String & GetName() const
Definition Region.h:59
const Aws::String & GetCode() const
Definition Region.h:40
AWS_GEOPLACES_API Region()=default
bool NameHasBeenSet() const
Definition Region.h:60
void SetName(NameT &&value)
Definition Region.h:62
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
Region & WithName(NameT &&value)
Definition Region.h:67
AWS_GEOPLACES_API Region & operator=(Aws::Utils::Json::JsonView jsonValue)
Region & WithCode(CodeT &&value)
Definition Region.h:48
AWS_GEOPLACES_API Region(Aws::Utils::Json::JsonView jsonValue)
void SetCode(CodeT &&value)
Definition Region.h:43
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue