AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
SearchSort.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9#include <aws/datazone/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 DataZone {
21namespace Model {
22
29 public:
30 AWS_DATAZONE_API SearchSort() = default;
31 AWS_DATAZONE_API SearchSort(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DATAZONE_API SearchSort& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAttribute() const { return m_attribute; }
40 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
41 template <typename AttributeT = Aws::String>
42 void SetAttribute(AttributeT&& value) {
43 m_attributeHasBeenSet = true;
44 m_attribute = std::forward<AttributeT>(value);
45 }
46 template <typename AttributeT = Aws::String>
47 SearchSort& WithAttribute(AttributeT&& value) {
48 SetAttribute(std::forward<AttributeT>(value));
49 return *this;
50 }
52
54
57 inline SortOrder GetOrder() const { return m_order; }
58 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
59 inline void SetOrder(SortOrder value) {
60 m_orderHasBeenSet = true;
61 m_order = value;
62 }
64 SetOrder(value);
65 return *this;
66 }
68 private:
69 Aws::String m_attribute;
70 bool m_attributeHasBeenSet = false;
71
73 bool m_orderHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace DataZone
78} // namespace Aws
SearchSort & WithAttribute(AttributeT &&value)
Definition SearchSort.h:47
const Aws::String & GetAttribute() const
Definition SearchSort.h:39
void SetAttribute(AttributeT &&value)
Definition SearchSort.h:42
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:63
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