AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const SortableFieldName& GetFieldName() const{ return m_fieldName; }
47 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
48 inline void SetFieldName(const SortableFieldName& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; }
49 inline void SetFieldName(SortableFieldName&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::move(value); }
50 inline Sort& WithFieldName(const SortableFieldName& value) { SetFieldName(value); return *this;}
51 inline Sort& WithFieldName(SortableFieldName&& value) { SetFieldName(std::move(value)); return *this;}
53
55
58 inline const SortOrder& GetOrder() const{ return m_order; }
59 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
60 inline void SetOrder(const SortOrder& value) { m_orderHasBeenSet = true; m_order = value; }
61 inline void SetOrder(SortOrder&& value) { m_orderHasBeenSet = true; m_order = std::move(value); }
62 inline Sort& WithOrder(const SortOrder& value) { SetOrder(value); return *this;}
63 inline Sort& WithOrder(SortOrder&& value) { SetOrder(std::move(value)); return *this;}
65 private:
66
67 SortableFieldName m_fieldName;
68 bool m_fieldNameHasBeenSet = false;
69
70 SortOrder m_order;
71 bool m_orderHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Connect
76} // namespace Aws
AWS_CONNECT_API Sort()
void SetOrder(SortOrder &&value)
Definition Sort.h:61
Sort & WithOrder(const SortOrder &value)
Definition Sort.h:62
void SetOrder(const SortOrder &value)
Definition Sort.h:60
void SetFieldName(const SortableFieldName &value)
Definition Sort.h:48
const SortOrder & GetOrder() const
Definition Sort.h:58
AWS_CONNECT_API Sort & operator=(Aws::Utils::Json::JsonView jsonValue)
bool FieldNameHasBeenSet() const
Definition Sort.h:47
Sort & WithOrder(SortOrder &&value)
Definition Sort.h:63
bool OrderHasBeenSet() const
Definition Sort.h:59
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Sort & WithFieldName(const SortableFieldName &value)
Definition Sort.h:50
void SetFieldName(SortableFieldName &&value)
Definition Sort.h:49
Sort & WithFieldName(SortableFieldName &&value)
Definition Sort.h:51
const SortableFieldName & GetFieldName() const
Definition Sort.h:46
AWS_CONNECT_API Sort(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue