AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Sort.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connectcases/model/Order.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 ConnectCases
23{
24namespace Model
25{
26
32 class Sort
33 {
34 public:
35 AWS_CONNECTCASES_API Sort();
36 AWS_CONNECTCASES_API Sort(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTCASES_API Sort& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetFieldId() const{ return m_fieldId; }
46 inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; }
47 inline void SetFieldId(const Aws::String& value) { m_fieldIdHasBeenSet = true; m_fieldId = value; }
48 inline void SetFieldId(Aws::String&& value) { m_fieldIdHasBeenSet = true; m_fieldId = std::move(value); }
49 inline void SetFieldId(const char* value) { m_fieldIdHasBeenSet = true; m_fieldId.assign(value); }
50 inline Sort& WithFieldId(const Aws::String& value) { SetFieldId(value); return *this;}
51 inline Sort& WithFieldId(Aws::String&& value) { SetFieldId(std::move(value)); return *this;}
52 inline Sort& WithFieldId(const char* value) { SetFieldId(value); return *this;}
54
56
59 inline const Order& GetSortOrder() const{ return m_sortOrder; }
60 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
61 inline void SetSortOrder(const Order& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
62 inline void SetSortOrder(Order&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
63 inline Sort& WithSortOrder(const Order& value) { SetSortOrder(value); return *this;}
64 inline Sort& WithSortOrder(Order&& value) { SetSortOrder(std::move(value)); return *this;}
66 private:
67
68 Aws::String m_fieldId;
69 bool m_fieldIdHasBeenSet = false;
70
71 Order m_sortOrder;
72 bool m_sortOrderHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace ConnectCases
77} // namespace Aws
void SetFieldId(const char *value)
Definition Sort.h:49
Sort & WithSortOrder(Order &&value)
Definition Sort.h:64
void SetSortOrder(Order &&value)
Definition Sort.h:62
bool FieldIdHasBeenSet() const
Definition Sort.h:46
Sort & WithFieldId(const Aws::String &value)
Definition Sort.h:50
AWS_CONNECTCASES_API Sort(Aws::Utils::Json::JsonView jsonValue)
void SetSortOrder(const Order &value)
Definition Sort.h:61
const Aws::String & GetFieldId() const
Definition Sort.h:45
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTCASES_API Sort()
Sort & WithFieldId(Aws::String &&value)
Definition Sort.h:51
void SetFieldId(Aws::String &&value)
Definition Sort.h:48
bool SortOrderHasBeenSet() const
Definition Sort.h:60
Sort & WithFieldId(const char *value)
Definition Sort.h:52
AWS_CONNECTCASES_API Sort & operator=(Aws::Utils::Json::JsonView jsonValue)
Sort & WithSortOrder(const Order &value)
Definition Sort.h:63
const Order & GetSortOrder() const
Definition Sort.h:59
void SetFieldId(const Aws::String &value)
Definition Sort.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue