AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AttributeT = Aws::String>
48 void SetAttribute(AttributeT&& value) { m_attributeHasBeenSet = true; m_attribute = std::forward<AttributeT>(value); }
49 template<typename AttributeT = Aws::String>
50 SearchSort& WithAttribute(AttributeT&& value) { SetAttribute(std::forward<AttributeT>(value)); return *this;}
52
54
57 inline SortOrder GetOrder() const { return m_order; }
58 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
59 inline void SetOrder(SortOrder value) { m_orderHasBeenSet = true; m_order = value; }
60 inline SearchSort& WithOrder(SortOrder value) { SetOrder(value); return *this;}
62 private:
63
64 Aws::String m_attribute;
65 bool m_attributeHasBeenSet = false;
66
68 bool m_orderHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace DataZone
73} // namespace Aws
SearchSort & WithAttribute(AttributeT &&value)
Definition SearchSort.h:50
const Aws::String & GetAttribute() const
Definition SearchSort.h:45
void SetAttribute(AttributeT &&value)
Definition SearchSort.h:48
AWS_DATAZONE_API SearchSort & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API SearchSort()=default
void SetOrder(SortOrder value)
Definition SearchSort.h:59
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
SearchSort & WithOrder(SortOrder value)
Definition SearchSort.h:60
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