AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SortObject.h
1
6#pragma once
7#include <aws/partnercentral-selling/PartnerCentralSelling_EXPORTS.h>
8#include <aws/partnercentral-selling/model/SortBy.h>
9#include <aws/partnercentral-selling/model/SortOrder.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PartnerCentralSelling {
21namespace Model {
22
31 public:
32 AWS_PARTNERCENTRALSELLING_API SortObject() = default;
33 AWS_PARTNERCENTRALSELLING_API SortObject(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PARTNERCENTRALSELLING_API SortObject& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline SortBy GetSortBy() const { return m_sortBy; }
42 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
43 inline void SetSortBy(SortBy value) {
44 m_sortByHasBeenSet = true;
45 m_sortBy = value;
46 }
47 inline SortObject& WithSortBy(SortBy value) {
48 SetSortBy(value);
49 return *this;
50 }
52
54
57 inline SortOrder GetSortOrder() const { return m_sortOrder; }
58 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
59 inline void SetSortOrder(SortOrder value) {
60 m_sortOrderHasBeenSet = true;
61 m_sortOrder = value;
62 }
64 SetSortOrder(value);
65 return *this;
66 }
68 private:
69 SortBy m_sortBy{SortBy::NOT_SET};
70
71 SortOrder m_sortOrder{SortOrder::NOT_SET};
72 bool m_sortByHasBeenSet = false;
73 bool m_sortOrderHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace PartnerCentralSelling
78} // namespace Aws
SortObject & WithSortBy(SortBy value)
Definition SortObject.h:47
AWS_PARTNERCENTRALSELLING_API SortObject(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALSELLING_API SortObject()=default
AWS_PARTNERCENTRALSELLING_API SortObject & operator=(Aws::Utils::Json::JsonView jsonValue)
SortObject & WithSortOrder(SortOrder value)
Definition SortObject.h:63
AWS_PARTNERCENTRALSELLING_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue