AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Sort.h
1
6#pragma once
7#include <aws/medical-imaging/MedicalImaging_EXPORTS.h>
8#include <aws/medical-imaging/model/SortOrder.h>
9#include <aws/medical-imaging/model/SortField.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 MedicalImaging
23{
24namespace Model
25{
26
32 class Sort
33 {
34 public:
35 AWS_MEDICALIMAGING_API Sort() = default;
36 AWS_MEDICALIMAGING_API Sort(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MEDICALIMAGING_API Sort& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MEDICALIMAGING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline SortOrder GetSortOrder() const { return m_sortOrder; }
46 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
47 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
48 inline Sort& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
50
52
55 inline SortField GetSortField() const { return m_sortField; }
56 inline bool SortFieldHasBeenSet() const { return m_sortFieldHasBeenSet; }
57 inline void SetSortField(SortField value) { m_sortFieldHasBeenSet = true; m_sortField = value; }
58 inline Sort& WithSortField(SortField value) { SetSortField(value); return *this;}
60 private:
61
62 SortOrder m_sortOrder{SortOrder::NOT_SET};
63 bool m_sortOrderHasBeenSet = false;
64
65 SortField m_sortField{SortField::NOT_SET};
66 bool m_sortFieldHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace MedicalImaging
71} // namespace Aws
AWS_MEDICALIMAGING_API Sort & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SortOrderHasBeenSet() const
Definition Sort.h:46
AWS_MEDICALIMAGING_API Sort(Aws::Utils::Json::JsonView jsonValue)
void SetSortOrder(SortOrder value)
Definition Sort.h:47
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:48
bool SortFieldHasBeenSet() const
Definition Sort.h:56
AWS_MEDICALIMAGING_API Sort()=default
SortOrder GetSortOrder() const
Definition Sort.h:45
Sort & WithSortField(SortField value)
Definition Sort.h:58
Aws::Utils::Json::JsonValue JsonValue