AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
Aggregation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/DataPrepAggregationFunction.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QuickSight {
21namespace Model {
22
30 public:
31 AWS_QUICKSIGHT_API Aggregation() = default;
32 AWS_QUICKSIGHT_API Aggregation(Aws::Utils::Json::JsonView jsonValue);
33 AWS_QUICKSIGHT_API Aggregation& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const DataPrepAggregationFunction& GetAggregationFunction() const { return m_aggregationFunction; }
43 inline bool AggregationFunctionHasBeenSet() const { return m_aggregationFunctionHasBeenSet; }
44 template <typename AggregationFunctionT = DataPrepAggregationFunction>
45 void SetAggregationFunction(AggregationFunctionT&& value) {
46 m_aggregationFunctionHasBeenSet = true;
47 m_aggregationFunction = std::forward<AggregationFunctionT>(value);
48 }
49 template <typename AggregationFunctionT = DataPrepAggregationFunction>
50 Aggregation& WithAggregationFunction(AggregationFunctionT&& value) {
51 SetAggregationFunction(std::forward<AggregationFunctionT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetNewColumnName() const { return m_newColumnName; }
61 inline bool NewColumnNameHasBeenSet() const { return m_newColumnNameHasBeenSet; }
62 template <typename NewColumnNameT = Aws::String>
63 void SetNewColumnName(NewColumnNameT&& value) {
64 m_newColumnNameHasBeenSet = true;
65 m_newColumnName = std::forward<NewColumnNameT>(value);
66 }
67 template <typename NewColumnNameT = Aws::String>
68 Aggregation& WithNewColumnName(NewColumnNameT&& value) {
69 SetNewColumnName(std::forward<NewColumnNameT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetNewColumnId() const { return m_newColumnId; }
80 inline bool NewColumnIdHasBeenSet() const { return m_newColumnIdHasBeenSet; }
81 template <typename NewColumnIdT = Aws::String>
82 void SetNewColumnId(NewColumnIdT&& value) {
83 m_newColumnIdHasBeenSet = true;
84 m_newColumnId = std::forward<NewColumnIdT>(value);
85 }
86 template <typename NewColumnIdT = Aws::String>
87 Aggregation& WithNewColumnId(NewColumnIdT&& value) {
88 SetNewColumnId(std::forward<NewColumnIdT>(value));
89 return *this;
90 }
92 private:
93 DataPrepAggregationFunction m_aggregationFunction;
94
95 Aws::String m_newColumnName;
96
97 Aws::String m_newColumnId;
98 bool m_aggregationFunctionHasBeenSet = false;
99 bool m_newColumnNameHasBeenSet = false;
100 bool m_newColumnIdHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace QuickSight
105} // namespace Aws
const Aws::String & GetNewColumnName() const
Definition Aggregation.h:60
const DataPrepAggregationFunction & GetAggregationFunction() const
Definition Aggregation.h:42
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
Aggregation & WithNewColumnId(NewColumnIdT &&value)
Definition Aggregation.h:87
void SetNewColumnId(NewColumnIdT &&value)
Definition Aggregation.h:82
AWS_QUICKSIGHT_API Aggregation(Aws::Utils::Json::JsonView jsonValue)
void SetAggregationFunction(AggregationFunctionT &&value)
Definition Aggregation.h:45
Aggregation & WithAggregationFunction(AggregationFunctionT &&value)
Definition Aggregation.h:50
AWS_QUICKSIGHT_API Aggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetNewColumnId() const
Definition Aggregation.h:79
Aggregation & WithNewColumnName(NewColumnNameT &&value)
Definition Aggregation.h:68
void SetNewColumnName(NewColumnNameT &&value)
Definition Aggregation.h:63
AWS_QUICKSIGHT_API Aggregation()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue