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/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();
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 const SortOrder& GetSortOrder() const{ return m_sortOrder; }
46 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
47 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
48 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
49 inline Sort& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
50 inline Sort& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
52
54
57 inline const SortField& GetSortField() const{ return m_sortField; }
58 inline bool SortFieldHasBeenSet() const { return m_sortFieldHasBeenSet; }
59 inline void SetSortField(const SortField& value) { m_sortFieldHasBeenSet = true; m_sortField = value; }
60 inline void SetSortField(SortField&& value) { m_sortFieldHasBeenSet = true; m_sortField = std::move(value); }
61 inline Sort& WithSortField(const SortField& value) { SetSortField(value); return *this;}
62 inline Sort& WithSortField(SortField&& value) { SetSortField(std::move(value)); return *this;}
64 private:
65
66 SortOrder m_sortOrder;
67 bool m_sortOrderHasBeenSet = false;
68
69 SortField m_sortField;
70 bool m_sortFieldHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace MedicalImaging
75} // namespace Aws
AWS_MEDICALIMAGING_API Sort & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSortOrder(SortOrder &&value)
Definition Sort.h:48
void SetSortField(const SortField &value)
Definition Sort.h:59
bool SortOrderHasBeenSet() const
Definition Sort.h:46
Sort & WithSortOrder(SortOrder &&value)
Definition Sort.h:50
AWS_MEDICALIMAGING_API Sort(Aws::Utils::Json::JsonView jsonValue)
Sort & WithSortField(const SortField &value)
Definition Sort.h:61
void SetSortField(SortField &&value)
Definition Sort.h:60
Sort & WithSortField(SortField &&value)
Definition Sort.h:62
AWS_MEDICALIMAGING_API Aws::Utils::Json::JsonValue Jsonize() const
const SortField & GetSortField() const
Definition Sort.h:57
bool SortFieldHasBeenSet() const
Definition Sort.h:58
const SortOrder & GetSortOrder() const
Definition Sort.h:45
void SetSortOrder(const SortOrder &value)
Definition Sort.h:47
Sort & WithSortOrder(const SortOrder &value)
Definition Sort.h:49
AWS_MEDICALIMAGING_API Sort()
Aws::Utils::Json::JsonValue JsonValue