AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
Sort.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ResilienceHub {
20namespace Model {
21
28class Sort {
29 public:
30 AWS_RESILIENCEHUB_API Sort() = default;
31 AWS_RESILIENCEHUB_API Sort(Aws::Utils::Json::JsonView jsonValue);
32 AWS_RESILIENCEHUB_API Sort& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline bool GetAscending() const { return m_ascending; }
41 inline bool AscendingHasBeenSet() const { return m_ascendingHasBeenSet; }
42 inline void SetAscending(bool value) {
43 m_ascendingHasBeenSet = true;
44 m_ascending = value;
45 }
46 inline Sort& WithAscending(bool value) {
47 SetAscending(value);
48 return *this;
49 }
51
53
58 inline const Aws::String& GetField() const { return m_field; }
59 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
60 template <typename FieldT = Aws::String>
61 void SetField(FieldT&& value) {
62 m_fieldHasBeenSet = true;
63 m_field = std::forward<FieldT>(value);
64 }
65 template <typename FieldT = Aws::String>
66 Sort& WithField(FieldT&& value) {
67 SetField(std::forward<FieldT>(value));
68 return *this;
69 }
71 private:
72 bool m_ascending{false};
73
74 Aws::String m_field;
75 bool m_ascendingHasBeenSet = false;
76 bool m_fieldHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace ResilienceHub
81} // namespace Aws
Sort & WithAscending(bool value)
Definition Sort.h:46
const Aws::String & GetField() const
Definition Sort.h:58
bool AscendingHasBeenSet() const
Definition Sort.h:41
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
bool GetAscending() const
Definition Sort.h:40
AWS_RESILIENCEHUB_API Sort(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUB_API Sort()=default
bool FieldHasBeenSet() const
Definition Sort.h:59
void SetField(FieldT &&value)
Definition Sort.h:61
AWS_RESILIENCEHUB_API Sort & operator=(Aws::Utils::Json::JsonView jsonValue)
Sort & WithField(FieldT &&value)
Definition Sort.h:66
void SetAscending(bool value)
Definition Sort.h:42
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue