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/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/SortField.h>
9#include <aws/inspector2/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 Inspector2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_INSPECTOR2_API SortCriteria();
37 AWS_INSPECTOR2_API SortCriteria(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API SortCriteria& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const SortField& GetField() const{ return m_field; }
47 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
48 inline void SetField(const SortField& value) { m_fieldHasBeenSet = true; m_field = value; }
49 inline void SetField(SortField&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
50 inline SortCriteria& WithField(const SortField& value) { SetField(value); return *this;}
51 inline SortCriteria& WithField(SortField&& 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 SortField m_field;
68 bool m_fieldHasBeenSet = false;
69
70 SortOrder m_sortOrder;
71 bool m_sortOrderHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Inspector2
76} // namespace Aws
const SortField & GetField() const
void SetField(SortField &&value)
const SortOrder & GetSortOrder() const
AWS_INSPECTOR2_API SortCriteria(Aws::Utils::Json::JsonView jsonValue)
SortCriteria & WithSortOrder(const SortOrder &value)
AWS_INSPECTOR2_API SortCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetField(const SortField &value)
SortCriteria & WithSortOrder(SortOrder &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
SortCriteria & WithField(SortField &&value)
SortCriteria & WithField(const SortField &value)
void SetSortOrder(const SortOrder &value)
void SetSortOrder(SortOrder &&value)
Aws::Utils::Json::JsonValue JsonValue