AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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 private:
125 Aws::String m_fieldName;
126
127 Aws::String m_propertyName;
128
129 PropertyRole m_propertyRole{PropertyRole::NOT_SET};
130
131 PropertyUsage m_propertyUsage{PropertyUsage::NOT_SET};
132
133 NamedEntityDefinitionMetric m_metric;
134 bool m_fieldNameHasBeenSet = false;
135 bool m_propertyNameHasBeenSet = false;
136 bool m_propertyRoleHasBeenSet = false;
137 bool m_propertyUsageHasBeenSet = false;
138 bool m_metricHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace QuickSight
143} // namespace Aws
AWS_QUICKSIGHT_API NamedEntityDefinition(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API NamedEntityDefinition()=default
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
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue