AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FieldSort.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/quicksight/model/SortDirection.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace QuickSight
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_QUICKSIGHT_API FieldSort() = default;
37 AWS_QUICKSIGHT_API FieldSort(Aws::Utils::Json::JsonView jsonValue);
38 AWS_QUICKSIGHT_API FieldSort& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetFieldId() const { return m_fieldId; }
47 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
48 template<typename FieldIdT = Aws::String>
49 void SetFieldId(FieldIdT&& value) { m_fieldIdHasBeenSet = true; m_fieldId = std::forward<FieldIdT>(value); }
50 template<typename FieldIdT = Aws::String>
51 FieldSort& WithFieldId(FieldIdT&& value) { SetFieldId(std::forward<FieldIdT>(value)); return *this;}
53
55
60 inline SortDirection GetDirection() const { return m_direction; }
61 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
62 inline void SetDirection(SortDirection value) { m_directionHasBeenSet = true; m_direction = value; }
63 inline FieldSort& WithDirection(SortDirection value) { SetDirection(value); return *this;}
65 private:
66
67 Aws::String m_fieldId;
68 bool m_fieldIdHasBeenSet = false;
69
71 bool m_directionHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace QuickSight
76} // namespace Aws
SortDirection GetDirection() const
Definition FieldSort.h:60
AWS_QUICKSIGHT_API FieldSort()=default
const Aws::String & GetFieldId() const
Definition FieldSort.h:46
FieldSort & WithDirection(SortDirection value)
Definition FieldSort.h:63
void SetFieldId(FieldIdT &&value)
Definition FieldSort.h:49
FieldSort & WithFieldId(FieldIdT &&value)
Definition FieldSort.h:51
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API FieldSort(Aws::Utils::Json::JsonView jsonValue)
void SetDirection(SortDirection value)
Definition FieldSort.h:62
AWS_QUICKSIGHT_API FieldSort & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue