AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSortBy(const ColumnIdentifier& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
48 inline void SetSortBy(ColumnIdentifier&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
49 inline ColumnSort& WithSortBy(const ColumnIdentifier& value) { SetSortBy(value); return *this;}
50 inline ColumnSort& WithSortBy(ColumnIdentifier&& value) { SetSortBy(std::move(value)); return *this;}
52
54
57 inline const SortDirection& GetDirection() const{ return m_direction; }
58 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
59 inline void SetDirection(const SortDirection& value) { m_directionHasBeenSet = true; m_direction = value; }
60 inline void SetDirection(SortDirection&& value) { m_directionHasBeenSet = true; m_direction = std::move(value); }
61 inline ColumnSort& WithDirection(const SortDirection& value) { SetDirection(value); return *this;}
62 inline ColumnSort& WithDirection(SortDirection&& value) { SetDirection(std::move(value)); return *this;}
64
66
69 inline const AggregationFunction& GetAggregationFunction() const{ return m_aggregationFunction; }
70 inline bool AggregationFunctionHasBeenSet() const { return m_aggregationFunctionHasBeenSet; }
71 inline void SetAggregationFunction(const AggregationFunction& value) { m_aggregationFunctionHasBeenSet = true; m_aggregationFunction = value; }
72 inline void SetAggregationFunction(AggregationFunction&& value) { m_aggregationFunctionHasBeenSet = true; m_aggregationFunction = std::move(value); }
74 inline ColumnSort& WithAggregationFunction(AggregationFunction&& value) { SetAggregationFunction(std::move(value)); return *this;}
76 private:
77
78 ColumnIdentifier m_sortBy;
79 bool m_sortByHasBeenSet = false;
80
81 SortDirection m_direction;
82 bool m_directionHasBeenSet = false;
83
84 AggregationFunction m_aggregationFunction;
85 bool m_aggregationFunctionHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace QuickSight
90} // namespace Aws
AWS_QUICKSIGHT_API ColumnSort & operator=(Aws::Utils::Json::JsonView jsonValue)
ColumnSort & WithDirection(SortDirection &&value)
Definition ColumnSort.h:62
const ColumnIdentifier & GetSortBy() const
Definition ColumnSort.h:45
ColumnSort & WithAggregationFunction(AggregationFunction &&value)
Definition ColumnSort.h:74
void SetDirection(SortDirection &&value)
Definition ColumnSort.h:60
ColumnSort & WithDirection(const SortDirection &value)
Definition ColumnSort.h:61
ColumnSort & WithSortBy(const ColumnIdentifier &value)
Definition ColumnSort.h:49
ColumnSort & WithAggregationFunction(const AggregationFunction &value)
Definition ColumnSort.h:73
AWS_QUICKSIGHT_API ColumnSort()
AWS_QUICKSIGHT_API ColumnSort(Aws::Utils::Json::JsonView jsonValue)
void SetAggregationFunction(const AggregationFunction &value)
Definition ColumnSort.h:71
ColumnSort & WithSortBy(ColumnIdentifier &&value)
Definition ColumnSort.h:50
void SetSortBy(const ColumnIdentifier &value)
Definition ColumnSort.h:47
void SetDirection(const SortDirection &value)
Definition ColumnSort.h:59
void SetSortBy(ColumnIdentifier &&value)
Definition ColumnSort.h:48
const AggregationFunction & GetAggregationFunction() const
Definition ColumnSort.h:69
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAggregationFunction(AggregationFunction &&value)
Definition ColumnSort.h:72
const SortDirection & GetDirection() const
Definition ColumnSort.h:57
Aws::Utils::Json::JsonValue JsonValue