AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Sort.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/SortableFieldName.h>
9#include <aws/connect/model/SortOrder.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 Connect
23{
24namespace Model
25{
26
33 class Sort
34 {
35 public:
36 AWS_CONNECT_API Sort() = default;
37 AWS_CONNECT_API Sort(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECT_API Sort& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline SortableFieldName GetFieldName() const { return m_fieldName; }
47 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
48 inline void SetFieldName(SortableFieldName value) { m_fieldNameHasBeenSet = true; m_fieldName = value; }
49 inline Sort& WithFieldName(SortableFieldName value) { SetFieldName(value); return *this;}
51
53
56 inline SortOrder GetOrder() const { return m_order; }
57 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
58 inline void SetOrder(SortOrder value) { m_orderHasBeenSet = true; m_order = value; }
59 inline Sort& WithOrder(SortOrder value) { SetOrder(value); return *this;}
61 private:
62
64 bool m_fieldNameHasBeenSet = false;
65
67 bool m_orderHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace Connect
72} // namespace Aws
AWS_CONNECT_API Sort()=default
void SetOrder(SortOrder value)
Definition Sort.h:58
SortableFieldName GetFieldName() const
Definition Sort.h:46
SortOrder GetOrder() const
Definition Sort.h:56
Sort & WithFieldName(SortableFieldName value)
Definition Sort.h:49
Sort & WithOrder(SortOrder value)
Definition Sort.h:59
AWS_CONNECT_API Sort & operator=(Aws::Utils::Json::JsonView jsonValue)
bool FieldNameHasBeenSet() const
Definition Sort.h:47
bool OrderHasBeenSet() const
Definition Sort.h:57
void SetFieldName(SortableFieldName value)
Definition Sort.h:48
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API Sort(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue