AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
47 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
48 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
49 inline Category& WithId(const Aws::String& value) { SetId(value); return *this;}
50 inline Category& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
51 inline Category& WithId(const char* value) { SetId(value); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline Category& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline Category& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline Category& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const Aws::String& GetLocalizedName() const{ return m_localizedName; }
73 inline bool LocalizedNameHasBeenSet() const { return m_localizedNameHasBeenSet; }
74 inline void SetLocalizedName(const Aws::String& value) { m_localizedNameHasBeenSet = true; m_localizedName = value; }
75 inline void SetLocalizedName(Aws::String&& value) { m_localizedNameHasBeenSet = true; m_localizedName = std::move(value); }
76 inline void SetLocalizedName(const char* value) { m_localizedNameHasBeenSet = true; m_localizedName.assign(value); }
77 inline Category& WithLocalizedName(const Aws::String& value) { SetLocalizedName(value); return *this;}
78 inline Category& WithLocalizedName(Aws::String&& value) { SetLocalizedName(std::move(value)); return *this;}
79 inline Category& WithLocalizedName(const char* value) { SetLocalizedName(value); return *this;}
81
83
87 inline bool GetPrimary() const{ return m_primary; }
88 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
89 inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
90 inline Category& WithPrimary(bool value) { SetPrimary(value); return *this;}
92 private:
93
94 Aws::String m_id;
95 bool m_idHasBeenSet = false;
96
97 Aws::String m_name;
98 bool m_nameHasBeenSet = false;
99
100 Aws::String m_localizedName;
101 bool m_localizedNameHasBeenSet = false;
102
103 bool m_primary;
104 bool m_primaryHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace GeoPlaces
109} // namespace Aws
Category & WithName(const Aws::String &value)
Definition Category.h:63
Category & WithId(Aws::String &&value)
Definition Category.h:50
void SetPrimary(bool value)
Definition Category.h:89
bool LocalizedNameHasBeenSet() const
Definition Category.h:73
AWS_GEOPLACES_API Category & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(const char *value)
Definition Category.h:62
Category & WithId(const Aws::String &value)
Definition Category.h:49
AWS_GEOPLACES_API Category(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
Definition Category.h:58
void SetId(Aws::String &&value)
Definition Category.h:47
Category & WithName(Aws::String &&value)
Definition Category.h:64
void SetName(Aws::String &&value)
Definition Category.h:61
Category & WithId(const char *value)
Definition Category.h:51
void SetId(const char *value)
Definition Category.h:48
void SetLocalizedName(const char *value)
Definition Category.h:76
AWS_GEOPLACES_API Category()
void SetLocalizedName(Aws::String &&value)
Definition Category.h:75
Category & WithName(const char *value)
Definition Category.h:65
const Aws::String & GetId() const
Definition Category.h:44
void SetId(const Aws::String &value)
Definition Category.h:46
Category & WithLocalizedName(const Aws::String &value)
Definition Category.h:77
Category & WithPrimary(bool value)
Definition Category.h:90
void SetName(const Aws::String &value)
Definition Category.h:60
const Aws::String & GetLocalizedName() const
Definition Category.h:72
Category & WithLocalizedName(const char *value)
Definition Category.h:79
void SetLocalizedName(const Aws::String &value)
Definition Category.h:74
Category & WithLocalizedName(Aws::String &&value)
Definition Category.h:78
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