AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Category.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 {
33 public:
34 AWS_GEOPLACES_API Category() = default;
35 AWS_GEOPLACES_API Category(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GEOPLACES_API Category& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template<typename IdT = Aws::String>
47 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
48 template<typename IdT = Aws::String>
49 Category& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
60 template<typename NameT = Aws::String>
61 Category& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetLocalizedName() const { return m_localizedName; }
69 inline bool LocalizedNameHasBeenSet() const { return m_localizedNameHasBeenSet; }
70 template<typename LocalizedNameT = Aws::String>
71 void SetLocalizedName(LocalizedNameT&& value) { m_localizedNameHasBeenSet = true; m_localizedName = std::forward<LocalizedNameT>(value); }
72 template<typename LocalizedNameT = Aws::String>
73 Category& WithLocalizedName(LocalizedNameT&& value) { SetLocalizedName(std::forward<LocalizedNameT>(value)); return *this;}
75
77
81 inline bool GetPrimary() const { return m_primary; }
82 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
83 inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
84 inline Category& WithPrimary(bool value) { SetPrimary(value); return *this;}
86 private:
87
88 Aws::String m_id;
89 bool m_idHasBeenSet = false;
90
91 Aws::String m_name;
92 bool m_nameHasBeenSet = false;
93
94 Aws::String m_localizedName;
95 bool m_localizedNameHasBeenSet = false;
96
97 bool m_primary{false};
98 bool m_primaryHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace GeoPlaces
103} // namespace Aws
AWS_GEOPLACES_API Category()=default
Category & WithId(IdT &&value)
Definition Category.h:49
void SetPrimary(bool value)
Definition Category.h:83
bool LocalizedNameHasBeenSet() const
Definition Category.h:69
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:47
void SetName(NameT &&value)
Definition Category.h:59
const Aws::String & GetId() const
Definition Category.h:44
Category & WithPrimary(bool value)
Definition Category.h:84
const Aws::String & GetLocalizedName() const
Definition Category.h:68
Category & WithName(NameT &&value)
Definition Category.h:61
Category & WithLocalizedName(LocalizedNameT &&value)
Definition Category.h:73
void SetLocalizedName(LocalizedNameT &&value)
Definition Category.h:71
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