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/marketplace-agreement/AgreementService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/marketplace-agreement/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 AgreementService
23{
24namespace Model
25{
26
33 class Sort
34 {
35 public:
36 AWS_AGREEMENTSERVICE_API Sort();
37 AWS_AGREEMENTSERVICE_API Sort(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AGREEMENTSERVICE_API Sort& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::String& GetSortBy() const{ return m_sortBy; }
49 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
50 inline void SetSortBy(const Aws::String& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
51 inline void SetSortBy(Aws::String&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
52 inline void SetSortBy(const char* value) { m_sortByHasBeenSet = true; m_sortBy.assign(value); }
53 inline Sort& WithSortBy(const Aws::String& value) { SetSortBy(value); return *this;}
54 inline Sort& WithSortBy(Aws::String&& value) { SetSortBy(std::move(value)); return *this;}
55 inline Sort& WithSortBy(const char* value) { SetSortBy(value); return *this;}
57
59
63 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
64 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
65 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
66 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
67 inline Sort& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
68 inline Sort& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
70 private:
71
72 Aws::String m_sortBy;
73 bool m_sortByHasBeenSet = false;
74
75 SortOrder m_sortOrder;
76 bool m_sortOrderHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace AgreementService
81} // namespace Aws
AWS_AGREEMENTSERVICE_API Sort(Aws::Utils::Json::JsonView jsonValue)
Sort & WithSortBy(const char *value)
Definition Sort.h:55
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AGREEMENTSERVICE_API Sort & operator=(Aws::Utils::Json::JsonView jsonValue)
const SortOrder & GetSortOrder() const
Definition Sort.h:63
Sort & WithSortBy(Aws::String &&value)
Definition Sort.h:54
Sort & WithSortBy(const Aws::String &value)
Definition Sort.h:53
AWS_AGREEMENTSERVICE_API Sort()
void SetSortBy(Aws::String &&value)
Definition Sort.h:51
void SetSortOrder(SortOrder &&value)
Definition Sort.h:66
void SetSortOrder(const SortOrder &value)
Definition Sort.h:65
Sort & WithSortOrder(const SortOrder &value)
Definition Sort.h:67
bool SortOrderHasBeenSet() const
Definition Sort.h:64
void SetSortBy(const Aws::String &value)
Definition Sort.h:50
const Aws::String & GetSortBy() const
Definition Sort.h:48
Sort & WithSortOrder(SortOrder &&value)
Definition Sort.h:68
void SetSortBy(const char *value)
Definition Sort.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue