AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
Sort.h
1
6#pragma once
7#include <aws/medical-imaging/MedicalImaging_EXPORTS.h>
8#include <aws/medical-imaging/model/SortField.h>
9#include <aws/medical-imaging/model/SortOrder.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MedicalImaging {
21namespace Model {
22
28class Sort {
29 public:
30 AWS_MEDICALIMAGING_API Sort() = default;
31 AWS_MEDICALIMAGING_API Sort(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MEDICALIMAGING_API Sort& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MEDICALIMAGING_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline SortOrder GetSortOrder() const { return m_sortOrder; }
40 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
41 inline void SetSortOrder(SortOrder value) {
42 m_sortOrderHasBeenSet = true;
43 m_sortOrder = value;
44 }
45 inline Sort& WithSortOrder(SortOrder value) {
46 SetSortOrder(value);
47 return *this;
48 }
50
52
55 inline SortField GetSortField() const { return m_sortField; }
56 inline bool SortFieldHasBeenSet() const { return m_sortFieldHasBeenSet; }
57 inline void SetSortField(SortField value) {
58 m_sortFieldHasBeenSet = true;
59 m_sortField = value;
60 }
61 inline Sort& WithSortField(SortField value) {
62 SetSortField(value);
63 return *this;
64 }
66 private:
67 SortOrder m_sortOrder{SortOrder::NOT_SET};
68
69 SortField m_sortField{SortField::NOT_SET};
70 bool m_sortOrderHasBeenSet = false;
71 bool m_sortFieldHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace MedicalImaging
76} // namespace Aws
AWS_MEDICALIMAGING_API Sort & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SortOrderHasBeenSet() const
Definition Sort.h:40
AWS_MEDICALIMAGING_API Sort(Aws::Utils::Json::JsonView jsonValue)
void SetSortOrder(SortOrder value)
Definition Sort.h:41
void SetSortField(SortField value)
Definition Sort.h:57
SortField GetSortField() const
Definition Sort.h:55
AWS_MEDICALIMAGING_API Aws::Utils::Json::JsonValue Jsonize() const
Sort & WithSortOrder(SortOrder value)
Definition Sort.h:45
bool SortFieldHasBeenSet() const
Definition Sort.h:56
AWS_MEDICALIMAGING_API Sort()=default
SortOrder GetSortOrder() const
Definition Sort.h:39
Sort & WithSortField(SortField value)
Definition Sort.h:61
Aws::Utils::Json::JsonValue JsonValue