AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
FieldSort.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9#include <aws/quicksight/model/SortDirection.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QuickSight {
21namespace Model {
22
29class FieldSort {
30 public:
31 AWS_QUICKSIGHT_API FieldSort() = default;
32 AWS_QUICKSIGHT_API FieldSort(Aws::Utils::Json::JsonView jsonValue);
33 AWS_QUICKSIGHT_API FieldSort& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetFieldId() const { return m_fieldId; }
41 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
42 template <typename FieldIdT = Aws::String>
43 void SetFieldId(FieldIdT&& value) {
44 m_fieldIdHasBeenSet = true;
45 m_fieldId = std::forward<FieldIdT>(value);
46 }
47 template <typename FieldIdT = Aws::String>
48 FieldSort& WithFieldId(FieldIdT&& value) {
49 SetFieldId(std::forward<FieldIdT>(value));
50 return *this;
51 }
53
55
60 inline SortDirection GetDirection() const { return m_direction; }
61 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
62 inline void SetDirection(SortDirection value) {
63 m_directionHasBeenSet = true;
64 m_direction = value;
65 }
67 SetDirection(value);
68 return *this;
69 }
71 private:
72 Aws::String m_fieldId;
73
75 bool m_fieldIdHasBeenSet = false;
76 bool m_directionHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace QuickSight
81} // namespace Aws
SortDirection GetDirection() const
Definition FieldSort.h:60
AWS_QUICKSIGHT_API FieldSort()=default
const Aws::String & GetFieldId() const
Definition FieldSort.h:40
FieldSort & WithDirection(SortDirection value)
Definition FieldSort.h:66
void SetFieldId(FieldIdT &&value)
Definition FieldSort.h:43
FieldSort & WithFieldId(FieldIdT &&value)
Definition FieldSort.h:48
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