AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SortCriterion.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/model/Sort.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 Glue
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GLUE_API SortCriterion() = default;
39
40
42
45 inline const Aws::String& GetFieldName() const { return m_fieldName; }
46 inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; }
47 template<typename FieldNameT = Aws::String>
48 void SetFieldName(FieldNameT&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::forward<FieldNameT>(value); }
49 template<typename FieldNameT = Aws::String>
50 SortCriterion& WithFieldName(FieldNameT&& value) { SetFieldName(std::forward<FieldNameT>(value)); return *this;}
52
54
57 inline Sort GetSort() const { return m_sort; }
58 inline bool SortHasBeenSet() const { return m_sortHasBeenSet; }
59 inline void SetSort(Sort value) { m_sortHasBeenSet = true; m_sort = value; }
60 inline SortCriterion& WithSort(Sort value) { SetSort(value); return *this;}
62 private:
63
64 Aws::String m_fieldName;
65 bool m_fieldNameHasBeenSet = false;
66
67 Sort m_sort{Sort::NOT_SET};
68 bool m_sortHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace Glue
73} // 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