AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SortCriterion.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/Sort.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 SortCriterion() = default;
34
36
39 inline const Aws::String& GetFieldName() const { return m_fieldName; }
40 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
41 template <typename FieldNameT = Aws::String>
42 void SetFieldName(FieldNameT&& value) {
43 m_fieldNameHasBeenSet = true;
44 m_fieldName = std::forward<FieldNameT>(value);
45 }
46 template <typename FieldNameT = Aws::String>
47 SortCriterion& WithFieldName(FieldNameT&& value) {
48 SetFieldName(std::forward<FieldNameT>(value));
49 return *this;
50 }
52
54
57 inline Sort GetSort() const { return m_sort; }
58 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
59 inline void SetSort(Sort value) {
60 m_sortHasBeenSet = true;
61 m_sort = value;
62 }
63 inline SortCriterion& WithSort(Sort value) {
64 SetSort(value);
65 return *this;
66 }
68 private:
69 Aws::String m_fieldName;
70
71 Sort m_sort{Sort::NOT_SET};
72 bool m_fieldNameHasBeenSet = false;
73 bool m_sortHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Glue
78} // namespace Aws
AWS_GLUE_API SortCriterion(Aws::Utils::Json::JsonView jsonValue)
SortCriterion & WithSort(Sort value)
SortCriterion & WithFieldName(FieldNameT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API SortCriterion()=default
void SetFieldName(FieldNameT &&value)
AWS_GLUE_API SortCriterion & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFieldName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue