AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Entity.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue
23{
24namespace Model
25{
26
33 class Entity
34 {
35 public:
36 AWS_GLUE_API Entity() = default;
37 AWS_GLUE_API Entity(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::String& GetEntityName() const { return m_entityName; }
47 inline bool EntityNameHasBeenSet() const { return m_entityNameHasBeenSet; }
48 template<typename EntityNameT = Aws::String>
49 void SetEntityName(EntityNameT&& value) { m_entityNameHasBeenSet = true; m_entityName = std::forward<EntityNameT>(value); }
50 template<typename EntityNameT = Aws::String>
51 Entity& WithEntityName(EntityNameT&& value) { SetEntityName(std::forward<EntityNameT>(value)); return *this;}
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) { m_labelHasBeenSet = true; m_label = std::forward<LabelT>(value); }
62 template<typename LabelT = Aws::String>
63 Entity& WithLabel(LabelT&& value) { SetLabel(std::forward<LabelT>(value)); return *this;}
65
67
71 inline bool GetIsParentEntity() const { return m_isParentEntity; }
72 inline bool IsParentEntityHasBeenSet() const { return m_isParentEntityHasBeenSet; }
73 inline void SetIsParentEntity(bool value) { m_isParentEntityHasBeenSet = true; m_isParentEntity = value; }
74 inline Entity& WithIsParentEntity(bool value) { SetIsParentEntity(value); return *this;}
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template<typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
85 template<typename DescriptionT = Aws::String>
86 Entity& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
88
90
96 inline const Aws::String& GetCategory() const { return m_category; }
97 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
98 template<typename CategoryT = Aws::String>
99 void SetCategory(CategoryT&& value) { m_categoryHasBeenSet = true; m_category = std::forward<CategoryT>(value); }
100 template<typename CategoryT = Aws::String>
101 Entity& WithCategory(CategoryT&& value) { SetCategory(std::forward<CategoryT>(value)); return *this;}
103
105
109 inline const Aws::Map<Aws::String, Aws::String>& GetCustomProperties() const { return m_customProperties; }
110 inline bool CustomPropertiesHasBeenSet() const { return m_customPropertiesHasBeenSet; }
111 template<typename CustomPropertiesT = Aws::Map<Aws::String, Aws::String>>
112 void SetCustomProperties(CustomPropertiesT&& value) { m_customPropertiesHasBeenSet = true; m_customProperties = std::forward<CustomPropertiesT>(value); }
113 template<typename CustomPropertiesT = Aws::Map<Aws::String, Aws::String>>
114 Entity& WithCustomProperties(CustomPropertiesT&& value) { SetCustomProperties(std::forward<CustomPropertiesT>(value)); return *this;}
115 template<typename CustomPropertiesKeyT = Aws::String, typename CustomPropertiesValueT = Aws::String>
116 Entity& AddCustomProperties(CustomPropertiesKeyT&& key, CustomPropertiesValueT&& value) {
117 m_customPropertiesHasBeenSet = true; m_customProperties.emplace(std::forward<CustomPropertiesKeyT>(key), std::forward<CustomPropertiesValueT>(value)); return *this;
118 }
120 private:
121
122 Aws::String m_entityName;
123 bool m_entityNameHasBeenSet = false;
124
125 Aws::String m_label;
126 bool m_labelHasBeenSet = false;
127
128 bool m_isParentEntity{false};
129 bool m_isParentEntityHasBeenSet = false;
130
131 Aws::String m_description;
132 bool m_descriptionHasBeenSet = false;
133
134 Aws::String m_category;
135 bool m_categoryHasBeenSet = false;
136
137 Aws::Map<Aws::String, Aws::String> m_customProperties;
138 bool m_customPropertiesHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace Glue
143} // namespace Aws
bool IsParentEntityHasBeenSet() const
Definition Entity.h:72
void SetEntityName(EntityNameT &&value)
Definition Entity.h:49
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDescription() const
Definition Entity.h:81
const Aws::String & GetEntityName() const
Definition Entity.h:46
Entity & WithCustomProperties(CustomPropertiesT &&value)
Definition Entity.h:114
void SetLabel(LabelT &&value)
Definition Entity.h:61
const Aws::String & GetLabel() const
Definition Entity.h:58
bool EntityNameHasBeenSet() const
Definition Entity.h:47
void SetCustomProperties(CustomPropertiesT &&value)
Definition Entity.h:112
bool CustomPropertiesHasBeenSet() const
Definition Entity.h:110
const Aws::Map< Aws::String, Aws::String > & GetCustomProperties() const
Definition Entity.h:109
bool CategoryHasBeenSet() const
Definition Entity.h:97
Entity & WithLabel(LabelT &&value)
Definition Entity.h:63
Entity & WithIsParentEntity(bool value)
Definition Entity.h:74
AWS_GLUE_API Entity(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API Entity()=default
void SetIsParentEntity(bool value)
Definition Entity.h:73
AWS_GLUE_API Entity & operator=(Aws::Utils::Json::JsonView jsonValue)
Entity & WithEntityName(EntityNameT &&value)
Definition Entity.h:51
Entity & WithCategory(CategoryT &&value)
Definition Entity.h:101
const Aws::String & GetCategory() const
Definition Entity.h:96
bool GetIsParentEntity() const
Definition Entity.h:71
bool DescriptionHasBeenSet() const
Definition Entity.h:82
void SetDescription(DescriptionT &&value)
Definition Entity.h:84
Entity & AddCustomProperties(CustomPropertiesKeyT &&key, CustomPropertiesValueT &&value)
Definition Entity.h:116
Entity & WithDescription(DescriptionT &&value)
Definition Entity.h:86
void SetCategory(CategoryT &&value)
Definition Entity.h:99
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