AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchSort.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/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 DataZone
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DATAZONE_API SearchSort();
36 AWS_DATAZONE_API SearchSort(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATAZONE_API SearchSort& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAttribute() const{ return m_attribute; }
46 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
47 inline void SetAttribute(const Aws::String& value) { m_attributeHasBeenSet = true; m_attribute = value; }
48 inline void SetAttribute(Aws::String&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
49 inline void SetAttribute(const char* value) { m_attributeHasBeenSet = true; m_attribute.assign(value); }
50 inline SearchSort& WithAttribute(const Aws::String& value) { SetAttribute(value); return *this;}
51 inline SearchSort& WithAttribute(Aws::String&& value) { SetAttribute(std::move(value)); return *this;}
52 inline SearchSort& WithAttribute(const char* value) { SetAttribute(value); return *this;}
54
56
59 inline const SortOrder& GetOrder() const{ return m_order; }
60 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
61 inline void SetOrder(const SortOrder& value) { m_orderHasBeenSet = true; m_order = value; }
62 inline void SetOrder(SortOrder&& value) { m_orderHasBeenSet = true; m_order = std::move(value); }
63 inline SearchSort& WithOrder(const SortOrder& value) { SetOrder(value); return *this;}
64 inline SearchSort& WithOrder(SortOrder&& value) { SetOrder(std::move(value)); return *this;}
66 private:
67
68 Aws::String m_attribute;
69 bool m_attributeHasBeenSet = false;
70
71 SortOrder m_order;
72 bool m_orderHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace DataZone
77} // namespace Aws
void SetAttribute(const char *value)
Definition SearchSort.h:49
const Aws::String & GetAttribute() const
Definition SearchSort.h:45
SearchSort & WithOrder(const SortOrder &value)
Definition SearchSort.h:63
SearchSort & WithOrder(SortOrder &&value)
Definition SearchSort.h:64
AWS_DATAZONE_API SearchSort & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAttribute(const Aws::String &value)
Definition SearchSort.h:47
const SortOrder & GetOrder() const
Definition SearchSort.h:59
void SetOrder(SortOrder &&value)
Definition SearchSort.h:62
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
SearchSort & WithAttribute(const char *value)
Definition SearchSort.h:52
void SetOrder(const SortOrder &value)
Definition SearchSort.h:61
SearchSort & WithAttribute(const Aws::String &value)
Definition SearchSort.h:50
SearchSort & WithAttribute(Aws::String &&value)
Definition SearchSort.h:51
void SetAttribute(Aws::String &&value)
Definition SearchSort.h:48
AWS_DATAZONE_API SearchSort(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue