AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
NamedEntityDefinition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/NamedEntityDefinitionMetric.h>
10#include <aws/quicksight/model/PropertyRole.h>
11#include <aws/quicksight/model/PropertyUsage.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight {
23namespace Model {
24
31 public:
32 AWS_QUICKSIGHT_API NamedEntityDefinition() = default;
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetFieldName() const { return m_fieldName; }
42 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
43 template <typename FieldNameT = Aws::String>
44 void SetFieldName(FieldNameT&& value) {
45 m_fieldNameHasBeenSet = true;
46 m_fieldName = std::forward<FieldNameT>(value);
47 }
48 template <typename FieldNameT = Aws::String>
49 NamedEntityDefinition& WithFieldName(FieldNameT&& value) {
50 SetFieldName(std::forward<FieldNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetPropertyName() const { return m_propertyName; }
60 inline bool PropertyNameHasBeenSet() const { return m_propertyNameHasBeenSet; }
61 template <typename PropertyNameT = Aws::String>
62 void SetPropertyName(PropertyNameT&& value) {
63 m_propertyNameHasBeenSet = true;
64 m_propertyName = std::forward<PropertyNameT>(value);
65 }
66 template <typename PropertyNameT = Aws::String>
67 NamedEntityDefinition& WithPropertyName(PropertyNameT&& value) {
68 SetPropertyName(std::forward<PropertyNameT>(value));
69 return *this;
70 }
72
74
78 inline PropertyRole GetPropertyRole() const { return m_propertyRole; }
79 inline bool PropertyRoleHasBeenSet() const { return m_propertyRoleHasBeenSet; }
80 inline void SetPropertyRole(PropertyRole value) {
81 m_propertyRoleHasBeenSet = true;
82 m_propertyRole = value;
83 }
85 SetPropertyRole(value);
86 return *this;
87 }
89
91
95 inline PropertyUsage GetPropertyUsage() const { return m_propertyUsage; }
96 inline bool PropertyUsageHasBeenSet() const { return m_propertyUsageHasBeenSet; }
97 inline void SetPropertyUsage(PropertyUsage value) {
98 m_propertyUsageHasBeenSet = true;
99 m_propertyUsage = value;
100 }
102 SetPropertyUsage(value);
103 return *this;
104 }
106
108
111 inline const NamedEntityDefinitionMetric& GetMetric() const { return m_metric; }
112 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
113 template <typename MetricT = NamedEntityDefinitionMetric>
114 void SetMetric(MetricT&& value) {
115 m_metricHasBeenSet = true;
116 m_metric = std::forward<MetricT>(value);
117 }
118 template <typename MetricT = NamedEntityDefinitionMetric>
120 SetMetric(std::forward<MetricT>(value));
121 return *this;
122 }
124
126
129 inline int GetRankOrder() const { return m_rankOrder; }
130 inline bool RankOrderHasBeenSet() const { return m_rankOrderHasBeenSet; }
131 inline void SetRankOrder(int value) {
132 m_rankOrderHasBeenSet = true;
133 m_rankOrder = value;
134 }
136 SetRankOrder(value);
137 return *this;
138 }
140
142
145 inline int GetPresentationOrder() const { return m_presentationOrder; }
146 inline bool PresentationOrderHasBeenSet() const { return m_presentationOrderHasBeenSet; }
147 inline void SetPresentationOrder(int value) {
148 m_presentationOrderHasBeenSet = true;
149 m_presentationOrder = value;
150 }
153 return *this;
154 }
156
158
162 inline bool GetIsHidden() const { return m_isHidden; }
163 inline bool IsHiddenHasBeenSet() const { return m_isHiddenHasBeenSet; }
164 inline void SetIsHidden(bool value) {
165 m_isHiddenHasBeenSet = true;
166 m_isHidden = value;
167 }
169 SetIsHidden(value);
170 return *this;
171 }
173 private:
174 Aws::String m_fieldName;
175
176 Aws::String m_propertyName;
177
178 PropertyRole m_propertyRole{PropertyRole::NOT_SET};
179
180 PropertyUsage m_propertyUsage{PropertyUsage::NOT_SET};
181
182 NamedEntityDefinitionMetric m_metric;
183
184 int m_rankOrder{0};
185
186 int m_presentationOrder{0};
187
188 bool m_isHidden{false};
189 bool m_fieldNameHasBeenSet = false;
190 bool m_propertyNameHasBeenSet = false;
191 bool m_propertyRoleHasBeenSet = false;
192 bool m_propertyUsageHasBeenSet = false;
193 bool m_metricHasBeenSet = false;
194 bool m_rankOrderHasBeenSet = false;
195 bool m_presentationOrderHasBeenSet = false;
196 bool m_isHiddenHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace QuickSight
201} // namespace Aws
AWS_QUICKSIGHT_API NamedEntityDefinition(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API NamedEntityDefinition()=default
NamedEntityDefinition & WithRankOrder(int value)
NamedEntityDefinition & WithIsHidden(bool value)
AWS_QUICKSIGHT_API NamedEntityDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
NamedEntityDefinition & WithMetric(MetricT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
NamedEntityDefinition & WithPropertyRole(PropertyRole value)
NamedEntityDefinition & WithPropertyName(PropertyNameT &&value)
NamedEntityDefinition & WithFieldName(FieldNameT &&value)
NamedEntityDefinition & WithPropertyUsage(PropertyUsage value)
const NamedEntityDefinitionMetric & GetMetric() const
NamedEntityDefinition & WithPresentationOrder(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue