AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetField(const Aws::String& value) { m_fieldHasBeenSet = true; m_field = value; }
49 inline void SetField(Aws::String&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
50 inline void SetField(const char* value) { m_fieldHasBeenSet = true; m_field.assign(value); }
51 inline SortProperty& WithField(const Aws::String& value) { SetField(value); return *this;}
52 inline SortProperty& WithField(Aws::String&& value) { SetField(std::move(value)); return *this;}
53 inline SortProperty& WithField(const char* value) { SetField(value); return *this;}
55
57
60 inline const SortDirection& GetDirection() const{ return m_direction; }
61 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
62 inline void SetDirection(const SortDirection& value) { m_directionHasBeenSet = true; m_direction = value; }
63 inline void SetDirection(SortDirection&& value) { m_directionHasBeenSet = true; m_direction = std::move(value); }
64 inline SortProperty& WithDirection(const SortDirection& value) { SetDirection(value); return *this;}
65 inline SortProperty& WithDirection(SortDirection&& value) { SetDirection(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_field;
70 bool m_fieldHasBeenSet = false;
71
72 SortDirection m_direction;
73 bool m_directionHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace AmplifyUIBuilder
78} // namespace Aws
void SetDirection(const SortDirection &value)
AWS_AMPLIFYUIBUILDER_API SortProperty()
SortProperty & WithField(const Aws::String &value)
void SetDirection(SortDirection &&value)
SortProperty & WithField(const char *value)
AWS_AMPLIFYUIBUILDER_API SortProperty(Aws::Utils::Json::JsonView jsonValue)
SortProperty & WithDirection(const SortDirection &value)
const Aws::String & GetField() const
AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYUIBUILDER_API SortProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
SortProperty & WithDirection(SortDirection &&value)
SortProperty & WithField(Aws::String &&value)
void SetField(const Aws::String &value)
const SortDirection & GetDirection() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue