AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AggregationSortConfiguration.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/ColumnIdentifier.h>
9#include <aws/quicksight/model/SortDirection.h>
10#include <aws/quicksight/model/AggregationFunction.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QuickSight
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QUICKSIGHT_API AggregationSortConfiguration() = default;
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const ColumnIdentifier& GetColumn() const { return m_column; }
48 inline bool ColumnHasBeenSet() const { return m_columnHasBeenSet; }
49 template<typename ColumnT = ColumnIdentifier>
50 void SetColumn(ColumnT&& value) { m_columnHasBeenSet = true; m_column = std::forward<ColumnT>(value); }
51 template<typename ColumnT = ColumnIdentifier>
52 AggregationSortConfiguration& WithColumn(ColumnT&& value) { SetColumn(std::forward<ColumnT>(value)); return *this;}
54
56
61 inline SortDirection GetSortDirection() const { return m_sortDirection; }
62 inline bool SortDirectionHasBeenSet() const { return m_sortDirectionHasBeenSet; }
63 inline void SetSortDirection(SortDirection value) { m_sortDirectionHasBeenSet = true; m_sortDirection = value; }
66
68
71 inline const AggregationFunction& GetAggregationFunction() const { return m_aggregationFunction; }
72 inline bool AggregationFunctionHasBeenSet() const { return m_aggregationFunctionHasBeenSet; }
73 template<typename AggregationFunctionT = AggregationFunction>
74 void SetAggregationFunction(AggregationFunctionT&& value) { m_aggregationFunctionHasBeenSet = true; m_aggregationFunction = std::forward<AggregationFunctionT>(value); }
75 template<typename AggregationFunctionT = AggregationFunction>
76 AggregationSortConfiguration& WithAggregationFunction(AggregationFunctionT&& value) { SetAggregationFunction(std::forward<AggregationFunctionT>(value)); return *this;}
78 private:
79
80 ColumnIdentifier m_column;
81 bool m_columnHasBeenSet = false;
82
84 bool m_sortDirectionHasBeenSet = false;
85
86 AggregationFunction m_aggregationFunction;
87 bool m_aggregationFunctionHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace QuickSight
92} // namespace Aws
AWS_QUICKSIGHT_API AggregationSortConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API AggregationSortConfiguration()=default
AWS_QUICKSIGHT_API AggregationSortConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AggregationSortConfiguration & WithColumn(ColumnT &&value)
AggregationSortConfiguration & WithAggregationFunction(AggregationFunctionT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AggregationSortConfiguration & WithSortDirection(SortDirection value)
Aws::Utils::Json::JsonValue JsonValue