AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GenerationSortBy.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/GenerationSortByAttribute.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 GenerationSortBy();
37 AWS_LEXMODELSV2_API GenerationSortBy(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXMODELSV2_API GenerationSortBy& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
50 inline const GenerationSortByAttribute& GetAttribute() const{ return m_attribute; }
51 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
52 inline void SetAttribute(const GenerationSortByAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; }
53 inline void SetAttribute(GenerationSortByAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
54 inline GenerationSortBy& WithAttribute(const GenerationSortByAttribute& value) { SetAttribute(value); return *this;}
55 inline GenerationSortBy& WithAttribute(GenerationSortByAttribute&& value) { SetAttribute(std::move(value)); return *this;}
57
59
62 inline const SortOrder& GetOrder() const{ return m_order; }
63 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
64 inline void SetOrder(const SortOrder& value) { m_orderHasBeenSet = true; m_order = value; }
65 inline void SetOrder(SortOrder&& value) { m_orderHasBeenSet = true; m_order = std::move(value); }
66 inline GenerationSortBy& WithOrder(const SortOrder& value) { SetOrder(value); return *this;}
67 inline GenerationSortBy& WithOrder(SortOrder&& value) { SetOrder(std::move(value)); return *this;}
69 private:
70
71 GenerationSortByAttribute m_attribute;
72 bool m_attributeHasBeenSet = false;
73
74 SortOrder m_order;
75 bool m_orderHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace LexModelsV2
80} // namespace Aws
void SetAttribute(const GenerationSortByAttribute &value)
GenerationSortBy & WithOrder(SortOrder &&value)
AWS_LEXMODELSV2_API GenerationSortBy(Aws::Utils::Json::JsonView jsonValue)
void SetOrder(const SortOrder &value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
GenerationSortBy & WithAttribute(const GenerationSortByAttribute &value)
void SetAttribute(GenerationSortByAttribute &&value)
const GenerationSortByAttribute & GetAttribute() const
GenerationSortBy & WithOrder(const SortOrder &value)
AWS_LEXMODELSV2_API GenerationSortBy & operator=(Aws::Utils::Json::JsonView jsonValue)
GenerationSortBy & WithAttribute(GenerationSortByAttribute &&value)
Aws::Utils::Json::JsonValue JsonValue