AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ColumnSort.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 ColumnSort() = default;
38 AWS_QUICKSIGHT_API ColumnSort(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API ColumnSort& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
45 inline const ColumnIdentifier& GetSortBy() const { return m_sortBy; }
46 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
47 template<typename SortByT = ColumnIdentifier>
48 void SetSortBy(SortByT&& value) { m_sortByHasBeenSet = true; m_sortBy = std::forward<SortByT>(value); }
49 template<typename SortByT = ColumnIdentifier>
50 ColumnSort& WithSortBy(SortByT&& value) { SetSortBy(std::forward<SortByT>(value)); return *this;}
52
54
57 inline SortDirection GetDirection() const { return m_direction; }
58 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
59 inline void SetDirection(SortDirection value) { m_directionHasBeenSet = true; m_direction = value; }
60 inline ColumnSort& WithDirection(SortDirection value) { SetDirection(value); return *this;}
62
64
67 inline const AggregationFunction& GetAggregationFunction() const { return m_aggregationFunction; }
68 inline bool AggregationFunctionHasBeenSet() const { return m_aggregationFunctionHasBeenSet; }
69 template<typename AggregationFunctionT = AggregationFunction>
70 void SetAggregationFunction(AggregationFunctionT&& value) { m_aggregationFunctionHasBeenSet = true; m_aggregationFunction = std::forward<AggregationFunctionT>(value); }
71 template<typename AggregationFunctionT = AggregationFunction>
72 ColumnSort& WithAggregationFunction(AggregationFunctionT&& value) { SetAggregationFunction(std::forward<AggregationFunctionT>(value)); return *this;}
74 private:
75
76 ColumnIdentifier m_sortBy;
77 bool m_sortByHasBeenSet = false;
78
80 bool m_directionHasBeenSet = false;
81
82 AggregationFunction m_aggregationFunction;
83 bool m_aggregationFunctionHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace QuickSight
88} // namespace Aws
AWS_QUICKSIGHT_API ColumnSort & operator=(Aws::Utils::Json::JsonView jsonValue)
const ColumnIdentifier & GetSortBy() const
Definition ColumnSort.h:45
void SetDirection(SortDirection value)
Definition ColumnSort.h:59
ColumnSort & WithDirection(SortDirection value)
Definition ColumnSort.h:60
SortDirection GetDirection() const
Definition ColumnSort.h:57
AWS_QUICKSIGHT_API ColumnSort(Aws::Utils::Json::JsonView jsonValue)
void SetAggregationFunction(AggregationFunctionT &&value)
Definition ColumnSort.h:70
AWS_QUICKSIGHT_API ColumnSort()=default
const AggregationFunction & GetAggregationFunction() const
Definition ColumnSort.h:67
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
ColumnSort & WithSortBy(SortByT &&value)
Definition ColumnSort.h:50
ColumnSort & WithAggregationFunction(AggregationFunctionT &&value)
Definition ColumnSort.h:72
void SetSortBy(SortByT &&value)
Definition ColumnSort.h:48
Aws::Utils::Json::JsonValue JsonValue