AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IntentSortBy.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/IntentSortAttribute.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 IntentSortBy();
37 AWS_LEXMODELSV2_API IntentSortBy(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXMODELSV2_API IntentSortBy& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const IntentSortAttribute& GetAttribute() const{ return m_attribute; }
47 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
48 inline void SetAttribute(const IntentSortAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; }
49 inline void SetAttribute(IntentSortAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
50 inline IntentSortBy& WithAttribute(const IntentSortAttribute& value) { SetAttribute(value); return *this;}
51 inline IntentSortBy& WithAttribute(IntentSortAttribute&& 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 IntentSortBy& WithOrder(const SortOrder& value) { SetOrder(value); return *this;}
63 inline IntentSortBy& WithOrder(SortOrder&& value) { SetOrder(std::move(value)); return *this;}
65 private:
66
67 IntentSortAttribute 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
void SetAttribute(const IntentSortAttribute &value)
AWS_LEXMODELSV2_API IntentSortBy(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API IntentSortBy & operator=(Aws::Utils::Json::JsonView jsonValue)
IntentSortBy & WithOrder(const SortOrder &value)
void SetAttribute(IntentSortAttribute &&value)
AWS_LEXMODELSV2_API IntentSortBy()
void SetOrder(const SortOrder &value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const IntentSortAttribute & GetAttribute() const
IntentSortBy & WithAttribute(IntentSortAttribute &&value)
const SortOrder & GetOrder() const
IntentSortBy & WithOrder(SortOrder &&value)
IntentSortBy & WithAttribute(const IntentSortAttribute &value)
void SetOrder(SortOrder &&value)
Aws::Utils::Json::JsonValue JsonValue