AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
TopicIRGroupBy.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/DisplayFormat.h>
9#include <aws/quicksight/model/DisplayFormatOptions.h>
10#include <aws/quicksight/model/Identifier.h>
11#include <aws/quicksight/model/NamedEntityRef.h>
12#include <aws/quicksight/model/TopicSortClause.h>
13#include <aws/quicksight/model/TopicTimeGranularity.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace QuickSight {
25namespace Model {
26
34 public:
35 AWS_QUICKSIGHT_API TopicIRGroupBy() = default;
36 AWS_QUICKSIGHT_API TopicIRGroupBy(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QUICKSIGHT_API TopicIRGroupBy& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Identifier& GetFieldName() const { return m_fieldName; }
45 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
46 template <typename FieldNameT = Identifier>
47 void SetFieldName(FieldNameT&& value) {
48 m_fieldNameHasBeenSet = true;
49 m_fieldName = std::forward<FieldNameT>(value);
50 }
51 template <typename FieldNameT = Identifier>
52 TopicIRGroupBy& WithFieldName(FieldNameT&& value) {
53 SetFieldName(std::forward<FieldNameT>(value));
54 return *this;
55 }
57
59
62 inline TopicTimeGranularity GetTimeGranularity() const { return m_timeGranularity; }
63 inline bool TimeGranularityHasBeenSet() const { return m_timeGranularityHasBeenSet; }
65 m_timeGranularityHasBeenSet = true;
66 m_timeGranularity = value;
67 }
69 SetTimeGranularity(value);
70 return *this;
71 }
73
75
78 inline const TopicSortClause& GetSort() const { return m_sort; }
79 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
80 template <typename SortT = TopicSortClause>
81 void SetSort(SortT&& value) {
82 m_sortHasBeenSet = true;
83 m_sort = std::forward<SortT>(value);
84 }
85 template <typename SortT = TopicSortClause>
86 TopicIRGroupBy& WithSort(SortT&& value) {
87 SetSort(std::forward<SortT>(value));
88 return *this;
89 }
91
93
96 inline DisplayFormat GetDisplayFormat() const { return m_displayFormat; }
97 inline bool DisplayFormatHasBeenSet() const { return m_displayFormatHasBeenSet; }
98 inline void SetDisplayFormat(DisplayFormat value) {
99 m_displayFormatHasBeenSet = true;
100 m_displayFormat = value;
101 }
103 SetDisplayFormat(value);
104 return *this;
105 }
107
109
110 inline const DisplayFormatOptions& GetDisplayFormatOptions() const { return m_displayFormatOptions; }
111 inline bool DisplayFormatOptionsHasBeenSet() const { return m_displayFormatOptionsHasBeenSet; }
112 template <typename DisplayFormatOptionsT = DisplayFormatOptions>
113 void SetDisplayFormatOptions(DisplayFormatOptionsT&& value) {
114 m_displayFormatOptionsHasBeenSet = true;
115 m_displayFormatOptions = std::forward<DisplayFormatOptionsT>(value);
116 }
117 template <typename DisplayFormatOptionsT = DisplayFormatOptions>
118 TopicIRGroupBy& WithDisplayFormatOptions(DisplayFormatOptionsT&& value) {
119 SetDisplayFormatOptions(std::forward<DisplayFormatOptionsT>(value));
120 return *this;
121 }
123
125
128 inline const NamedEntityRef& GetNamedEntity() const { return m_namedEntity; }
129 inline bool NamedEntityHasBeenSet() const { return m_namedEntityHasBeenSet; }
130 template <typename NamedEntityT = NamedEntityRef>
131 void SetNamedEntity(NamedEntityT&& value) {
132 m_namedEntityHasBeenSet = true;
133 m_namedEntity = std::forward<NamedEntityT>(value);
134 }
135 template <typename NamedEntityT = NamedEntityRef>
136 TopicIRGroupBy& WithNamedEntity(NamedEntityT&& value) {
137 SetNamedEntity(std::forward<NamedEntityT>(value));
138 return *this;
139 }
141 private:
142 Identifier m_fieldName;
143
145
146 TopicSortClause m_sort;
147
148 DisplayFormat m_displayFormat{DisplayFormat::NOT_SET};
149
150 DisplayFormatOptions m_displayFormatOptions;
151
152 NamedEntityRef m_namedEntity;
153 bool m_fieldNameHasBeenSet = false;
154 bool m_timeGranularityHasBeenSet = false;
155 bool m_sortHasBeenSet = false;
156 bool m_displayFormatHasBeenSet = false;
157 bool m_displayFormatOptionsHasBeenSet = false;
158 bool m_namedEntityHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace QuickSight
163} // namespace Aws
TopicIRGroupBy & WithTimeGranularity(TopicTimeGranularity value)
TopicIRGroupBy & WithDisplayFormatOptions(DisplayFormatOptionsT &&value)
void SetDisplayFormatOptions(DisplayFormatOptionsT &&value)
void SetDisplayFormat(DisplayFormat value)
TopicIRGroupBy & WithDisplayFormat(DisplayFormat value)
AWS_QUICKSIGHT_API TopicIRGroupBy()=default
const TopicSortClause & GetSort() const
TopicIRGroupBy & WithFieldName(FieldNameT &&value)
const Identifier & GetFieldName() const
TopicIRGroupBy & WithNamedEntity(NamedEntityT &&value)
void SetFieldName(FieldNameT &&value)
void SetNamedEntity(NamedEntityT &&value)
TopicTimeGranularity GetTimeGranularity() const
TopicIRGroupBy & WithSort(SortT &&value)
const NamedEntityRef & GetNamedEntity() const
const DisplayFormatOptions & GetDisplayFormatOptions() const
AWS_QUICKSIGHT_API TopicIRGroupBy(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimeGranularity(TopicTimeGranularity value)
AWS_QUICKSIGHT_API TopicIRGroupBy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue