AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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