AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SortCriteria.h
1
6#pragma once
7#include <aws/detective/Detective_EXPORTS.h>
8#include <aws/detective/model/Field.h>
9#include <aws/detective/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 Detective
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DETECTIVE_API SortCriteria();
37 AWS_DETECTIVE_API SortCriteria(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DETECTIVE_API SortCriteria& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Field& GetField() const{ return m_field; }
47 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
48 inline void SetField(const Field& value) { m_fieldHasBeenSet = true; m_field = value; }
49 inline void SetField(Field&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
50 inline SortCriteria& WithField(const Field& value) { SetField(value); return *this;}
51 inline SortCriteria& WithField(Field&& value) { SetField(std::move(value)); return *this;}
53
55
58 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
59 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
60 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
61 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
62 inline SortCriteria& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
63 inline SortCriteria& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
65 private:
66
67 Field m_field;
68 bool m_fieldHasBeenSet = false;
69
70 SortOrder m_sortOrder;
71 bool m_sortOrderHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Detective
76} // namespace Aws
SortCriteria & WithSortOrder(const SortOrder &value)
SortCriteria & WithField(Field &&value)
void SetField(const Field &value)
AWS_DETECTIVE_API SortCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DETECTIVE_API SortCriteria(Aws::Utils::Json::JsonView jsonValue)
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const
const SortOrder & GetSortOrder() const
void SetSortOrder(const SortOrder &value)
SortCriteria & WithSortOrder(SortOrder &&value)
void SetSortOrder(SortOrder &&value)
SortCriteria & WithField(const Field &value)
Aws::Utils::Json::JsonValue JsonValue