AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
Category.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 Category {
28 public:
29 AWS_GEOPLACES_API Category() = default;
30 AWS_GEOPLACES_API Category(Aws::Utils::Json::JsonView jsonValue);
31 AWS_GEOPLACES_API Category& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
46 Category& WithId(IdT&& value) {
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
64 Category& WithName(NameT&& value) {
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetLocalizedName() const { return m_localizedName; }
75 inline bool LocalizedNameHasBeenSet() const { return m_localizedNameHasBeenSet; }
76 template <typename LocalizedNameT = Aws::String>
77 void SetLocalizedName(LocalizedNameT&& value) {
78 m_localizedNameHasBeenSet = true;
79 m_localizedName = std::forward<LocalizedNameT>(value);
80 }
81 template <typename LocalizedNameT = Aws::String>
82 Category& WithLocalizedName(LocalizedNameT&& value) {
83 SetLocalizedName(std::forward<LocalizedNameT>(value));
84 return *this;
85 }
87
89
93 inline bool GetPrimary() const { return m_primary; }
94 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
95 inline void SetPrimary(bool value) {
96 m_primaryHasBeenSet = true;
97 m_primary = value;
98 }
99 inline Category& WithPrimary(bool value) {
100 SetPrimary(value);
101 return *this;
102 }
104 private:
105 Aws::String m_id;
106 bool m_idHasBeenSet = false;
107
108 Aws::String m_name;
109 bool m_nameHasBeenSet = false;
110
111 Aws::String m_localizedName;
112 bool m_localizedNameHasBeenSet = false;
113
114 bool m_primary{false};
115 bool m_primaryHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace GeoPlaces
120} // namespace Aws
AWS_GEOPLACES_API Category()=default
Category & WithId(IdT &&value)
Definition Category.h:46
void SetPrimary(bool value)
Definition Category.h:95
bool LocalizedNameHasBeenSet() const
Definition Category.h:75
AWS_GEOPLACES_API Category & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOPLACES_API Category(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Category.h:56
void SetId(IdT &&value)
Definition Category.h:41
void SetName(NameT &&value)
Definition Category.h:59
const Aws::String & GetId() const
Definition Category.h:38
Category & WithPrimary(bool value)
Definition Category.h:99
const Aws::String & GetLocalizedName() const
Definition Category.h:74
Category & WithName(NameT &&value)
Definition Category.h:64
Category & WithLocalizedName(LocalizedNameT &&value)
Definition Category.h:82
void SetLocalizedName(LocalizedNameT &&value)
Definition Category.h:77
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue