AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
AggregateOperation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/Aggregation.h>
11#include <aws/quicksight/model/TransformOperationSource.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
32 public:
33 AWS_QUICKSIGHT_API AggregateOperation() = default;
34 AWS_QUICKSIGHT_API AggregateOperation(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAlias() const { return m_alias; }
43 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
44 template <typename AliasT = Aws::String>
45 void SetAlias(AliasT&& value) {
46 m_aliasHasBeenSet = true;
47 m_alias = std::forward<AliasT>(value);
48 }
49 template <typename AliasT = Aws::String>
50 AggregateOperation& WithAlias(AliasT&& value) {
51 SetAlias(std::forward<AliasT>(value));
52 return *this;
53 }
55
57
61 inline const TransformOperationSource& GetSource() const { return m_source; }
62 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
63 template <typename SourceT = TransformOperationSource>
64 void SetSource(SourceT&& value) {
65 m_sourceHasBeenSet = true;
66 m_source = std::forward<SourceT>(value);
67 }
68 template <typename SourceT = TransformOperationSource>
69 AggregateOperation& WithSource(SourceT&& value) {
70 SetSource(std::forward<SourceT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Vector<Aws::String>& GetGroupByColumnNames() const { return m_groupByColumnNames; }
81 inline bool GroupByColumnNamesHasBeenSet() const { return m_groupByColumnNamesHasBeenSet; }
82 template <typename GroupByColumnNamesT = Aws::Vector<Aws::String>>
83 void SetGroupByColumnNames(GroupByColumnNamesT&& value) {
84 m_groupByColumnNamesHasBeenSet = true;
85 m_groupByColumnNames = std::forward<GroupByColumnNamesT>(value);
86 }
87 template <typename GroupByColumnNamesT = Aws::Vector<Aws::String>>
88 AggregateOperation& WithGroupByColumnNames(GroupByColumnNamesT&& value) {
89 SetGroupByColumnNames(std::forward<GroupByColumnNamesT>(value));
90 return *this;
91 }
92 template <typename GroupByColumnNamesT = Aws::String>
93 AggregateOperation& AddGroupByColumnNames(GroupByColumnNamesT&& value) {
94 m_groupByColumnNamesHasBeenSet = true;
95 m_groupByColumnNames.emplace_back(std::forward<GroupByColumnNamesT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::Vector<Aggregation>& GetAggregations() const { return m_aggregations; }
106 inline bool AggregationsHasBeenSet() const { return m_aggregationsHasBeenSet; }
107 template <typename AggregationsT = Aws::Vector<Aggregation>>
108 void SetAggregations(AggregationsT&& value) {
109 m_aggregationsHasBeenSet = true;
110 m_aggregations = std::forward<AggregationsT>(value);
111 }
112 template <typename AggregationsT = Aws::Vector<Aggregation>>
113 AggregateOperation& WithAggregations(AggregationsT&& value) {
114 SetAggregations(std::forward<AggregationsT>(value));
115 return *this;
116 }
117 template <typename AggregationsT = Aggregation>
118 AggregateOperation& AddAggregations(AggregationsT&& value) {
119 m_aggregationsHasBeenSet = true;
120 m_aggregations.emplace_back(std::forward<AggregationsT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_alias;
126
128
129 Aws::Vector<Aws::String> m_groupByColumnNames;
130
131 Aws::Vector<Aggregation> m_aggregations;
132 bool m_aliasHasBeenSet = false;
133 bool m_sourceHasBeenSet = false;
134 bool m_groupByColumnNamesHasBeenSet = false;
135 bool m_aggregationsHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace QuickSight
140} // namespace Aws
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AggregateOperation & AddAggregations(AggregationsT &&value)
AWS_QUICKSIGHT_API AggregateOperation()=default
AggregateOperation & WithAggregations(AggregationsT &&value)
AggregateOperation & WithAlias(AliasT &&value)
AggregateOperation & AddGroupByColumnNames(GroupByColumnNamesT &&value)
const TransformOperationSource & GetSource() const
const Aws::Vector< Aws::String > & GetGroupByColumnNames() const
AWS_QUICKSIGHT_API AggregateOperation(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API AggregateOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aggregation > & GetAggregations() const
AggregateOperation & WithSource(SourceT &&value)
void SetGroupByColumnNames(GroupByColumnNamesT &&value)
AggregateOperation & WithGroupByColumnNames(GroupByColumnNamesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue