AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ColumnSort.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/AggregationFunction.h>
9#include <aws/quicksight/model/ColumnIdentifier.h>
10#include <aws/quicksight/model/SortDirection.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight {
22namespace Model {
23
31 public:
32 AWS_QUICKSIGHT_API ColumnSort() = default;
33 AWS_QUICKSIGHT_API ColumnSort(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API ColumnSort& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const ColumnIdentifier& GetSortBy() const { return m_sortBy; }
40 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
41 template <typename SortByT = ColumnIdentifier>
42 void SetSortBy(SortByT&& value) {
43 m_sortByHasBeenSet = true;
44 m_sortBy = std::forward<SortByT>(value);
45 }
46 template <typename SortByT = ColumnIdentifier>
47 ColumnSort& WithSortBy(SortByT&& value) {
48 SetSortBy(std::forward<SortByT>(value));
49 return *this;
50 }
52
54
57 inline SortDirection GetDirection() const { return m_direction; }
58 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
59 inline void SetDirection(SortDirection value) {
60 m_directionHasBeenSet = true;
61 m_direction = value;
62 }
64 SetDirection(value);
65 return *this;
66 }
68
70
73 inline const AggregationFunction& GetAggregationFunction() const { return m_aggregationFunction; }
74 inline bool AggregationFunctionHasBeenSet() const { return m_aggregationFunctionHasBeenSet; }
75 template <typename AggregationFunctionT = AggregationFunction>
76 void SetAggregationFunction(AggregationFunctionT&& value) {
77 m_aggregationFunctionHasBeenSet = true;
78 m_aggregationFunction = std::forward<AggregationFunctionT>(value);
79 }
80 template <typename AggregationFunctionT = AggregationFunction>
81 ColumnSort& WithAggregationFunction(AggregationFunctionT&& value) {
82 SetAggregationFunction(std::forward<AggregationFunctionT>(value));
83 return *this;
84 }
86 private:
87 ColumnIdentifier m_sortBy;
88
90
91 AggregationFunction m_aggregationFunction;
92 bool m_sortByHasBeenSet = false;
93 bool m_directionHasBeenSet = false;
94 bool m_aggregationFunctionHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace QuickSight
99} // namespace Aws
AWS_QUICKSIGHT_API ColumnSort & operator=(Aws::Utils::Json::JsonView jsonValue)
const ColumnIdentifier & GetSortBy() const
Definition ColumnSort.h:39
void SetDirection(SortDirection value)
Definition ColumnSort.h:59
ColumnSort & WithDirection(SortDirection value)
Definition ColumnSort.h:63
SortDirection GetDirection() const
Definition ColumnSort.h:57
AWS_QUICKSIGHT_API ColumnSort(Aws::Utils::Json::JsonView jsonValue)
void SetAggregationFunction(AggregationFunctionT &&value)
Definition ColumnSort.h:76
AWS_QUICKSIGHT_API ColumnSort()=default
const AggregationFunction & GetAggregationFunction() const
Definition ColumnSort.h:73
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
ColumnSort & WithSortBy(SortByT &&value)
Definition ColumnSort.h:47
ColumnSort & WithAggregationFunction(AggregationFunctionT &&value)
Definition ColumnSort.h:81
void SetSortBy(SortByT &&value)
Definition ColumnSort.h:42
Aws::Utils::Json::JsonValue JsonValue