AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
NamedEntityDefinition.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/model/PropertyRole.h>
10#include <aws/quicksight/model/PropertyUsage.h>
11#include <aws/quicksight/model/NamedEntityDefinitionMetric.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_QUICKSIGHT_API NamedEntityDefinition() = default;
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetFieldName() const { return m_fieldName; }
48 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
49 template<typename FieldNameT = Aws::String>
50 void SetFieldName(FieldNameT&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::forward<FieldNameT>(value); }
51 template<typename FieldNameT = Aws::String>
52 NamedEntityDefinition& WithFieldName(FieldNameT&& value) { SetFieldName(std::forward<FieldNameT>(value)); return *this;}
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) { m_propertyNameHasBeenSet = true; m_propertyName = std::forward<PropertyNameT>(value); }
63 template<typename PropertyNameT = Aws::String>
64 NamedEntityDefinition& WithPropertyName(PropertyNameT&& value) { SetPropertyName(std::forward<PropertyNameT>(value)); return *this;}
66
68
72 inline PropertyRole GetPropertyRole() const { return m_propertyRole; }
73 inline bool PropertyRoleHasBeenSet() const { return m_propertyRoleHasBeenSet; }
74 inline void SetPropertyRole(PropertyRole value) { m_propertyRoleHasBeenSet = true; m_propertyRole = value; }
77
79
83 inline PropertyUsage GetPropertyUsage() const { return m_propertyUsage; }
84 inline bool PropertyUsageHasBeenSet() const { return m_propertyUsageHasBeenSet; }
85 inline void SetPropertyUsage(PropertyUsage value) { m_propertyUsageHasBeenSet = true; m_propertyUsage = value; }
88
90
93 inline const NamedEntityDefinitionMetric& GetMetric() const { return m_metric; }
94 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
95 template<typename MetricT = NamedEntityDefinitionMetric>
96 void SetMetric(MetricT&& value) { m_metricHasBeenSet = true; m_metric = std::forward<MetricT>(value); }
97 template<typename MetricT = NamedEntityDefinitionMetric>
98 NamedEntityDefinition& WithMetric(MetricT&& value) { SetMetric(std::forward<MetricT>(value)); return *this;}
100 private:
101
102 Aws::String m_fieldName;
103 bool m_fieldNameHasBeenSet = false;
104
105 Aws::String m_propertyName;
106 bool m_propertyNameHasBeenSet = false;
107
108 PropertyRole m_propertyRole{PropertyRole::NOT_SET};
109 bool m_propertyRoleHasBeenSet = false;
110
111 PropertyUsage m_propertyUsage{PropertyUsage::NOT_SET};
112 bool m_propertyUsageHasBeenSet = false;
113
114 NamedEntityDefinitionMetric m_metric;
115 bool m_metricHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace QuickSight
120} // 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