AWS SDK for C++

AWS SDK for C++ Version 1.11.790

Loading...
Searching...
No Matches
SubRegion.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
27class SubRegion {
28 public:
29 AWS_GEOPLACES_API SubRegion() = default;
30 AWS_GEOPLACES_API SubRegion(Aws::Utils::Json::JsonView jsonValue);
31 AWS_GEOPLACES_API SubRegion& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
41 inline const Aws::String& GetCode() const { return m_code; }
42 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
43 template <typename CodeT = Aws::String>
44 void SetCode(CodeT&& value) {
45 m_codeHasBeenSet = true;
46 m_code = std::forward<CodeT>(value);
47 }
48 template <typename CodeT = Aws::String>
49 SubRegion& WithCode(CodeT&& value) {
50 SetCode(std::forward<CodeT>(value));
51 return *this;
52 }
54
56
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 SubRegion& 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
const Aws::String & GetName() const
Definition SubRegion.h:59
SubRegion & WithName(NameT &&value)
Definition SubRegion.h:67
AWS_GEOPLACES_API SubRegion(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCode() const
Definition SubRegion.h:41
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOPLACES_API SubRegion()=default
void SetName(NameT &&value)
Definition SubRegion.h:62
AWS_GEOPLACES_API SubRegion & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCode(CodeT &&value)
Definition SubRegion.h:44
SubRegion & WithCode(CodeT &&value)
Definition SubRegion.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue