AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFieldName(const Aws::String& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; }
50 inline void SetFieldName(Aws::String&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::move(value); }
51 inline void SetFieldName(const char* value) { m_fieldNameHasBeenSet = true; m_fieldName.assign(value); }
52 inline NamedEntityDefinition& WithFieldName(const Aws::String& value) { SetFieldName(value); return *this;}
53 inline NamedEntityDefinition& WithFieldName(Aws::String&& value) { SetFieldName(std::move(value)); return *this;}
54 inline NamedEntityDefinition& WithFieldName(const char* value) { SetFieldName(value); return *this;}
56
58
61 inline const Aws::String& GetPropertyName() const{ return m_propertyName; }
62 inline bool PropertyNameHasBeenSet() const { return m_propertyNameHasBeenSet; }
63 inline void SetPropertyName(const Aws::String& value) { m_propertyNameHasBeenSet = true; m_propertyName = value; }
64 inline void SetPropertyName(Aws::String&& value) { m_propertyNameHasBeenSet = true; m_propertyName = std::move(value); }
65 inline void SetPropertyName(const char* value) { m_propertyNameHasBeenSet = true; m_propertyName.assign(value); }
66 inline NamedEntityDefinition& WithPropertyName(const Aws::String& value) { SetPropertyName(value); return *this;}
67 inline NamedEntityDefinition& WithPropertyName(Aws::String&& value) { SetPropertyName(std::move(value)); return *this;}
68 inline NamedEntityDefinition& WithPropertyName(const char* value) { SetPropertyName(value); return *this;}
70
72
76 inline const PropertyRole& GetPropertyRole() const{ return m_propertyRole; }
77 inline bool PropertyRoleHasBeenSet() const { return m_propertyRoleHasBeenSet; }
78 inline void SetPropertyRole(const PropertyRole& value) { m_propertyRoleHasBeenSet = true; m_propertyRole = value; }
79 inline void SetPropertyRole(PropertyRole&& value) { m_propertyRoleHasBeenSet = true; m_propertyRole = std::move(value); }
80 inline NamedEntityDefinition& WithPropertyRole(const PropertyRole& value) { SetPropertyRole(value); return *this;}
81 inline NamedEntityDefinition& WithPropertyRole(PropertyRole&& value) { SetPropertyRole(std::move(value)); return *this;}
83
85
89 inline const PropertyUsage& GetPropertyUsage() const{ return m_propertyUsage; }
90 inline bool PropertyUsageHasBeenSet() const { return m_propertyUsageHasBeenSet; }
91 inline void SetPropertyUsage(const PropertyUsage& value) { m_propertyUsageHasBeenSet = true; m_propertyUsage = value; }
92 inline void SetPropertyUsage(PropertyUsage&& value) { m_propertyUsageHasBeenSet = true; m_propertyUsage = std::move(value); }
93 inline NamedEntityDefinition& WithPropertyUsage(const PropertyUsage& value) { SetPropertyUsage(value); return *this;}
94 inline NamedEntityDefinition& WithPropertyUsage(PropertyUsage&& value) { SetPropertyUsage(std::move(value)); return *this;}
96
98
101 inline const NamedEntityDefinitionMetric& GetMetric() const{ return m_metric; }
102 inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
103 inline void SetMetric(const NamedEntityDefinitionMetric& value) { m_metricHasBeenSet = true; m_metric = value; }
104 inline void SetMetric(NamedEntityDefinitionMetric&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
105 inline NamedEntityDefinition& WithMetric(const NamedEntityDefinitionMetric& value) { SetMetric(value); return *this;}
106 inline NamedEntityDefinition& WithMetric(NamedEntityDefinitionMetric&& value) { SetMetric(std::move(value)); return *this;}
108 private:
109
110 Aws::String m_fieldName;
111 bool m_fieldNameHasBeenSet = false;
112
113 Aws::String m_propertyName;
114 bool m_propertyNameHasBeenSet = false;
115
116 PropertyRole m_propertyRole;
117 bool m_propertyRoleHasBeenSet = false;
118
119 PropertyUsage m_propertyUsage;
120 bool m_propertyUsageHasBeenSet = false;
121
123 bool m_metricHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace QuickSight
128} // namespace Aws
AWS_QUICKSIGHT_API NamedEntityDefinition(Aws::Utils::Json::JsonView jsonValue)
NamedEntityDefinition & WithPropertyRole(const PropertyRole &value)
void SetPropertyUsage(const PropertyUsage &value)
NamedEntityDefinition & WithMetric(const NamedEntityDefinitionMetric &value)
NamedEntityDefinition & WithPropertyName(const Aws::String &value)
AWS_QUICKSIGHT_API NamedEntityDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
NamedEntityDefinition & WithPropertyRole(PropertyRole &&value)
NamedEntityDefinition & WithPropertyUsage(const PropertyUsage &value)
NamedEntityDefinition & WithFieldName(const Aws::String &value)
NamedEntityDefinition & WithPropertyName(Aws::String &&value)
NamedEntityDefinition & WithFieldName(Aws::String &&value)
NamedEntityDefinition & WithMetric(NamedEntityDefinitionMetric &&value)
void SetMetric(NamedEntityDefinitionMetric &&value)
NamedEntityDefinition & WithFieldName(const char *value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const NamedEntityDefinitionMetric & GetMetric() const
NamedEntityDefinition & WithPropertyName(const char *value)
void SetMetric(const NamedEntityDefinitionMetric &value)
NamedEntityDefinition & WithPropertyUsage(PropertyUsage &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue