AWS SDK for C++

AWS SDK for C++ Version 1.11.838

Loading...
Searching...
No Matches
SearchSort.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/SearchSortOrder.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
29 public:
30 AWS_GLUE_API SearchSort() = default;
31 AWS_GLUE_API SearchSort(Aws::Utils::Json::JsonView jsonValue);
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
58 inline SearchSortOrder GetOrder() const { return m_order; }
59 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
60 inline void SetOrder(SearchSortOrder value) {
61 m_orderHasBeenSet = true;
62 m_order = value;
63 }
65 SetOrder(value);
66 return *this;
67 }
69 private:
70 Aws::String m_attribute;
71
73 bool m_attributeHasBeenSet = false;
74 bool m_orderHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Glue
79} // namespace Aws
AWS_GLUE_API SearchSort()=default
bool AttributeHasBeenSet() const
Definition SearchSort.h:40
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOrder(SearchSortOrder value)
Definition SearchSort.h:60
SearchSort & WithOrder(SearchSortOrder value)
Definition SearchSort.h:64
const Aws::String & GetAttribute() const
Definition SearchSort.h:39
SearchSortOrder GetOrder() const
Definition SearchSort.h:58
SearchSort & WithAttribute(AttributeT &&value)
Definition SearchSort.h:47
AWS_GLUE_API SearchSort & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAttribute(AttributeT &&value)
Definition SearchSort.h:42
AWS_GLUE_API SearchSort(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue