AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SortProperty.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/amplifyuibuilder/model/SortDirection.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 AmplifyUIBuilder
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_AMPLIFYUIBUILDER_API SortProperty() = default;
37 AWS_AMPLIFYUIBUILDER_API SortProperty(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AMPLIFYUIBUILDER_API SortProperty& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetField() const { return m_field; }
47 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
48 template<typename FieldT = Aws::String>
49 void SetField(FieldT&& value) { m_fieldHasBeenSet = true; m_field = std::forward<FieldT>(value); }
50 template<typename FieldT = Aws::String>
51 SortProperty& WithField(FieldT&& value) { SetField(std::forward<FieldT>(value)); return *this;}
53
55
58 inline SortDirection GetDirection() const { return m_direction; }
59 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
60 inline void SetDirection(SortDirection value) { m_directionHasBeenSet = true; m_direction = value; }
61 inline SortProperty& WithDirection(SortDirection value) { SetDirection(value); return *this;}
63 private:
64
65 Aws::String m_field;
66 bool m_fieldHasBeenSet = false;
67
69 bool m_directionHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace AmplifyUIBuilder
74} // namespace Aws
SortProperty & WithField(FieldT &&value)
void SetDirection(SortDirection value)
AWS_AMPLIFYUIBUILDER_API SortProperty()=default
SortProperty & WithDirection(SortDirection value)
AWS_AMPLIFYUIBUILDER_API SortProperty(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetField() const
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYUIBUILDER_API SortProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue