AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
PivotOperation.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/PivotConfiguration.h>
11#include <aws/quicksight/model/TransformOperationSource.h>
12#include <aws/quicksight/model/ValueColumnConfiguration.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QuickSight {
24namespace Model {
25
33 public:
34 AWS_QUICKSIGHT_API PivotOperation() = default;
35 AWS_QUICKSIGHT_API PivotOperation(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QUICKSIGHT_API PivotOperation& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAlias() const { return m_alias; }
44 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
45 template <typename AliasT = Aws::String>
46 void SetAlias(AliasT&& value) {
47 m_aliasHasBeenSet = true;
48 m_alias = std::forward<AliasT>(value);
49 }
50 template <typename AliasT = Aws::String>
51 PivotOperation& WithAlias(AliasT&& value) {
52 SetAlias(std::forward<AliasT>(value));
53 return *this;
54 }
56
58
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 PivotOperation& WithSource(SourceT&& value) {
70 SetSource(std::forward<SourceT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<Aws::String>& GetGroupByColumnNames() const { return m_groupByColumnNames; }
80 inline bool GroupByColumnNamesHasBeenSet() const { return m_groupByColumnNamesHasBeenSet; }
81 template <typename GroupByColumnNamesT = Aws::Vector<Aws::String>>
82 void SetGroupByColumnNames(GroupByColumnNamesT&& value) {
83 m_groupByColumnNamesHasBeenSet = true;
84 m_groupByColumnNames = std::forward<GroupByColumnNamesT>(value);
85 }
86 template <typename GroupByColumnNamesT = Aws::Vector<Aws::String>>
87 PivotOperation& WithGroupByColumnNames(GroupByColumnNamesT&& value) {
88 SetGroupByColumnNames(std::forward<GroupByColumnNamesT>(value));
89 return *this;
90 }
91 template <typename GroupByColumnNamesT = Aws::String>
92 PivotOperation& AddGroupByColumnNames(GroupByColumnNamesT&& value) {
93 m_groupByColumnNamesHasBeenSet = true;
94 m_groupByColumnNames.emplace_back(std::forward<GroupByColumnNamesT>(value));
95 return *this;
96 }
98
100
104 inline const ValueColumnConfiguration& GetValueColumnConfiguration() const { return m_valueColumnConfiguration; }
105 inline bool ValueColumnConfigurationHasBeenSet() const { return m_valueColumnConfigurationHasBeenSet; }
106 template <typename ValueColumnConfigurationT = ValueColumnConfiguration>
107 void SetValueColumnConfiguration(ValueColumnConfigurationT&& value) {
108 m_valueColumnConfigurationHasBeenSet = true;
109 m_valueColumnConfiguration = std::forward<ValueColumnConfigurationT>(value);
110 }
111 template <typename ValueColumnConfigurationT = ValueColumnConfiguration>
112 PivotOperation& WithValueColumnConfiguration(ValueColumnConfigurationT&& value) {
113 SetValueColumnConfiguration(std::forward<ValueColumnConfigurationT>(value));
114 return *this;
115 }
117
119
123 inline const PivotConfiguration& GetPivotConfiguration() const { return m_pivotConfiguration; }
124 inline bool PivotConfigurationHasBeenSet() const { return m_pivotConfigurationHasBeenSet; }
125 template <typename PivotConfigurationT = PivotConfiguration>
126 void SetPivotConfiguration(PivotConfigurationT&& value) {
127 m_pivotConfigurationHasBeenSet = true;
128 m_pivotConfiguration = std::forward<PivotConfigurationT>(value);
129 }
130 template <typename PivotConfigurationT = PivotConfiguration>
131 PivotOperation& WithPivotConfiguration(PivotConfigurationT&& value) {
132 SetPivotConfiguration(std::forward<PivotConfigurationT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_alias;
138
140
141 Aws::Vector<Aws::String> m_groupByColumnNames;
142
143 ValueColumnConfiguration m_valueColumnConfiguration;
144
145 PivotConfiguration m_pivotConfiguration;
146 bool m_aliasHasBeenSet = false;
147 bool m_sourceHasBeenSet = false;
148 bool m_groupByColumnNamesHasBeenSet = false;
149 bool m_valueColumnConfigurationHasBeenSet = false;
150 bool m_pivotConfigurationHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace QuickSight
155} // namespace Aws
const PivotConfiguration & GetPivotConfiguration() const
AWS_QUICKSIGHT_API PivotOperation(Aws::Utils::Json::JsonView jsonValue)
PivotOperation & WithValueColumnConfiguration(ValueColumnConfigurationT &&value)
const ValueColumnConfiguration & GetValueColumnConfiguration() const
PivotOperation & WithPivotConfiguration(PivotConfigurationT &&value)
const Aws::String & GetAlias() const
PivotOperation & WithSource(SourceT &&value)
AWS_QUICKSIGHT_API PivotOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValueColumnConfiguration(ValueColumnConfigurationT &&value)
AWS_QUICKSIGHT_API PivotOperation()=default
void SetGroupByColumnNames(GroupByColumnNamesT &&value)
PivotOperation & WithAlias(AliasT &&value)
PivotOperation & AddGroupByColumnNames(GroupByColumnNamesT &&value)
const Aws::Vector< Aws::String > & GetGroupByColumnNames() const
const TransformOperationSource & GetSource() const
PivotOperation & WithGroupByColumnNames(GroupByColumnNamesT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPivotConfiguration(PivotConfigurationT &&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