AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Entity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/Glue_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
29class Entity {
30 public:
31 AWS_GLUE_API Entity() = default;
32 AWS_GLUE_API Entity(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline const Aws::String& GetEntityName() const { return m_entityName; }
41 inline bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; }
42 template <typename EntityNameT = Aws::String>
43 void SetEntityName(EntityNameT&& value) {
44 m_entityNameHasBeenSet = true;
45 m_entityName = std::forward<EntityNameT>(value);
46 }
47 template <typename EntityNameT = Aws::String>
48 Entity& WithEntityName(EntityNameT&& value) {
49 SetEntityName(std::forward<EntityNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetLabel() const { return m_label; }
59 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
60 template <typename LabelT = Aws::String>
61 void SetLabel(LabelT&& value) {
62 m_labelHasBeenSet = true;
63 m_label = std::forward<LabelT>(value);
64 }
65 template <typename LabelT = Aws::String>
66 Entity& WithLabel(LabelT&& value) {
67 SetLabel(std::forward<LabelT>(value));
68 return *this;
69 }
71
73
77 inline bool GetIsParentEntity() const { return m_isParentEntity; }
78 inline bool IsParentEntityHasBeenSet() const { return m_isParentEntityHasBeenSet; }
79 inline void SetIsParentEntity(bool value) {
80 m_isParentEntityHasBeenSet = true;
81 m_isParentEntity = value;
82 }
83 inline Entity& WithIsParentEntity(bool value) {
84 SetIsParentEntity(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template <typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) {
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
101 Entity& WithDescription(DescriptionT&& value) {
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106
108
114 inline const Aws::String& GetCategory() const { return m_category; }
115 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
116 template <typename CategoryT = Aws::String>
117 void SetCategory(CategoryT&& value) {
118 m_categoryHasBeenSet = true;
119 m_category = std::forward<CategoryT>(value);
120 }
121 template <typename CategoryT = Aws::String>
122 Entity& WithCategory(CategoryT&& value) {
123 SetCategory(std::forward<CategoryT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::Map<Aws::String, Aws::String>& GetCustomProperties() const { return m_customProperties; }
134 inline bool CustomPropertiesHasBeenSet() const { return m_customPropertiesHasBeenSet; }
135 template <typename CustomPropertiesT = Aws::Map<Aws::String, Aws::String>>
136 void SetCustomProperties(CustomPropertiesT&& value) {
137 m_customPropertiesHasBeenSet = true;
138 m_customProperties = std::forward<CustomPropertiesT>(value);
139 }
140 template <typename CustomPropertiesT = Aws::Map<Aws::String, Aws::String>>
141 Entity& WithCustomProperties(CustomPropertiesT&& value) {
142 SetCustomProperties(std::forward<CustomPropertiesT>(value));
143 return *this;
144 }
145 template <typename CustomPropertiesKeyT = Aws::String, typename CustomPropertiesValueT = Aws::String>
146 Entity& AddCustomProperties(CustomPropertiesKeyT&& key, CustomPropertiesValueT&& value) {
147 m_customPropertiesHasBeenSet = true;
148 m_customProperties.emplace(std::forward<CustomPropertiesKeyT>(key), std::forward<CustomPropertiesValueT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_entityName;
154
155 Aws::String m_label;
156
157 bool m_isParentEntity{false};
158
159 Aws::String m_description;
160
161 Aws::String m_category;
162
163 Aws::Map<Aws::String, Aws::String> m_customProperties;
164 bool m_entityNameHasBeenSet = false;
165 bool m_labelHasBeenSet = false;
166 bool m_isParentEntityHasBeenSet = false;
167 bool m_descriptionHasBeenSet = false;
168 bool m_categoryHasBeenSet = false;
169 bool m_customPropertiesHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace Glue
174} // namespace Aws
bool IsParentEntityHasBeenSet() const
Definition Entity.h:78
void SetEntityName(EntityNameT &&value)
Definition Entity.h:43
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDescription() const
Definition Entity.h:93
const Aws::String & GetEntityName() const
Definition Entity.h:40
Entity & WithCustomProperties(CustomPropertiesT &&value)
Definition Entity.h:141
void SetLabel(LabelT &&value)
Definition Entity.h:61
const Aws::String & GetLabel() const
Definition Entity.h:58
bool EntityNameHasBeenSet() const
Definition Entity.h:41
void SetCustomProperties(CustomPropertiesT &&value)
Definition Entity.h:136
bool CustomPropertiesHasBeenSet() const
Definition Entity.h:134
const Aws::Map< Aws::String, Aws::String > & GetCustomProperties() const
Definition Entity.h:133
bool CategoryHasBeenSet() const
Definition Entity.h:115
Entity & WithLabel(LabelT &&value)
Definition Entity.h:66
Entity & WithIsParentEntity(bool value)
Definition Entity.h:83
AWS_GLUE_API Entity(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Entity()=default
void SetIsParentEntity(bool value)
Definition Entity.h:79
AWS_GLUE_API Entity & operator=(Aws::Utils::Json::JsonView jsonValue)
Entity & WithEntityName(EntityNameT &&value)
Definition Entity.h:48
Entity & WithCategory(CategoryT &&value)
Definition Entity.h:122
const Aws::String & GetCategory() const
Definition Entity.h:114
bool GetIsParentEntity() const
Definition Entity.h:77
bool DescriptionHasBeenSet() const
Definition Entity.h:94
void SetDescription(DescriptionT &&value)
Definition Entity.h:96
Entity & AddCustomProperties(CustomPropertiesKeyT &&key, CustomPropertiesValueT &&value)
Definition Entity.h:146
Entity & WithDescription(DescriptionT &&value)
Definition Entity.h:101
void SetCategory(CategoryT &&value)
Definition Entity.h:117
bool LabelHasBeenSet() const
Definition Entity.h:59
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue