AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DataPathSort.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/quicksight/model/SortDirection.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/model/DataPathValue.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 DataPathSort() = default;
38 AWS_QUICKSIGHT_API DataPathSort(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API DataPathSort& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline SortDirection GetDirection() const { return m_direction; }
48 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
49 inline void SetDirection(SortDirection value) { m_directionHasBeenSet = true; m_direction = value; }
50 inline DataPathSort& WithDirection(SortDirection value) { SetDirection(value); return *this;}
52
54
57 inline const Aws::Vector<DataPathValue>& GetSortPaths() const { return m_sortPaths; }
58 inline bool SortPathsHasBeenSet() const { return m_sortPathsHasBeenSet; }
59 template<typename SortPathsT = Aws::Vector<DataPathValue>>
60 void SetSortPaths(SortPathsT&& value) { m_sortPathsHasBeenSet = true; m_sortPaths = std::forward<SortPathsT>(value); }
61 template<typename SortPathsT = Aws::Vector<DataPathValue>>
62 DataPathSort& WithSortPaths(SortPathsT&& value) { SetSortPaths(std::forward<SortPathsT>(value)); return *this;}
63 template<typename SortPathsT = DataPathValue>
64 DataPathSort& AddSortPaths(SortPathsT&& value) { m_sortPathsHasBeenSet = true; m_sortPaths.emplace_back(std::forward<SortPathsT>(value)); return *this; }
66 private:
67
69 bool m_directionHasBeenSet = false;
70
72 bool m_sortPathsHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace QuickSight
77} // namespace Aws
DataPathSort & WithSortPaths(SortPathsT &&value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSortPaths(SortPathsT &&value)
AWS_QUICKSIGHT_API DataPathSort()=default
DataPathSort & WithDirection(SortDirection value)
const Aws::Vector< DataPathValue > & GetSortPaths() const
AWS_QUICKSIGHT_API DataPathSort(Aws::Utils::Json::JsonView jsonValue)
DataPathSort & AddSortPaths(SortPathsT &&value)
SortDirection GetDirection() const
void SetDirection(SortDirection value)
AWS_QUICKSIGHT_API DataPathSort & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue