AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
Sort.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/SortOrder.h>
9#include <aws/connect/model/SortableFieldName.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
29class Sort {
30 public:
31 AWS_CONNECT_API Sort() = default;
32 AWS_CONNECT_API Sort(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECT_API Sort& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline SortableFieldName GetFieldName() const { return m_fieldName; }
41 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
42 inline void SetFieldName(SortableFieldName value) {
43 m_fieldNameHasBeenSet = true;
44 m_fieldName = value;
45 }
47 SetFieldName(value);
48 return *this;
49 }
51
53
56 inline SortOrder GetOrder() const { return m_order; }
57 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
58 inline void SetOrder(SortOrder value) {
59 m_orderHasBeenSet = true;
60 m_order = value;
61 }
62 inline Sort& WithOrder(SortOrder value) {
63 SetOrder(value);
64 return *this;
65 }
67 private:
69
71 bool m_fieldNameHasBeenSet = false;
72 bool m_orderHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace Connect
77} // namespace Aws
AWS_CONNECT_API Sort()=default
void SetOrder(SortOrder value)
Definition Sort.h:58
SortableFieldName GetFieldName() const
Definition Sort.h:40
SortOrder GetOrder() const
Definition Sort.h:56
Sort & WithFieldName(SortableFieldName value)
Definition Sort.h:46
Sort & WithOrder(SortOrder value)
Definition Sort.h:62
AWS_CONNECT_API Sort & operator=(Aws::Utils::Json::JsonView jsonValue)
bool FieldNameHasBeenSet() const
Definition Sort.h:41
bool OrderHasBeenSet() const
Definition Sort.h:57
void SetFieldName(SortableFieldName value)
Definition Sort.h:42
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API Sort(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue