AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SlotSortBy.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/SlotSortAttribute.h>
9#include <aws/lexv2-models/model/SortOrder.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 LexModelsV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LEXMODELSV2_API SlotSortBy();
37 AWS_LEXMODELSV2_API SlotSortBy(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXMODELSV2_API SlotSortBy& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const SlotSortAttribute& GetAttribute() const{ return m_attribute; }
47 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
48 inline void SetAttribute(const SlotSortAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; }
49 inline void SetAttribute(SlotSortAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
50 inline SlotSortBy& WithAttribute(const SlotSortAttribute& value) { SetAttribute(value); return *this;}
51 inline SlotSortBy& WithAttribute(SlotSortAttribute&& value) { SetAttribute(std::move(value)); return *this;}
53
55
58 inline const SortOrder& GetOrder() const{ return m_order; }
59 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
60 inline void SetOrder(const SortOrder& value) { m_orderHasBeenSet = true; m_order = value; }
61 inline void SetOrder(SortOrder&& value) { m_orderHasBeenSet = true; m_order = std::move(value); }
62 inline SlotSortBy& WithOrder(const SortOrder& value) { SetOrder(value); return *this;}
63 inline SlotSortBy& WithOrder(SortOrder&& value) { SetOrder(std::move(value)); return *this;}
65 private:
66
67 SlotSortAttribute m_attribute;
68 bool m_attributeHasBeenSet = false;
69
70 SortOrder m_order;
71 bool m_orderHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace LexModelsV2
76} // namespace Aws
AWS_LEXMODELSV2_API SlotSortBy & operator=(Aws::Utils::Json::JsonView jsonValue)
SlotSortBy & WithOrder(SortOrder &&value)
Definition SlotSortBy.h:63
const SlotSortAttribute & GetAttribute() const
Definition SlotSortBy.h:46
SlotSortBy & WithAttribute(const SlotSortAttribute &value)
Definition SlotSortBy.h:50
void SetAttribute(const SlotSortAttribute &value)
Definition SlotSortBy.h:48
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELSV2_API SlotSortBy(Aws::Utils::Json::JsonView jsonValue)
void SetAttribute(SlotSortAttribute &&value)
Definition SlotSortBy.h:49
SlotSortBy & WithAttribute(SlotSortAttribute &&value)
Definition SlotSortBy.h:51
const SortOrder & GetOrder() const
Definition SlotSortBy.h:58
SlotSortBy & WithOrder(const SortOrder &value)
Definition SlotSortBy.h:62
AWS_LEXMODELSV2_API SlotSortBy()
void SetOrder(SortOrder &&value)
Definition SlotSortBy.h:61
void SetOrder(const SortOrder &value)
Definition SlotSortBy.h:60
Aws::Utils::Json::JsonValue JsonValue