AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
SortingConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kendra/Kendra_EXPORTS.h>
9#include <aws/kendra/model/SortOrder.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace kendra {
21namespace Model {
22
36 public:
37 AWS_KENDRA_API SortingConfiguration() = default;
40 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
50 inline const Aws::String& GetDocumentAttributeKey() const { return m_documentAttributeKey; }
51 inline bool DocumentAttributeKeyHasBeenSet() const { return m_documentAttributeKeyHasBeenSet; }
52 template <typename DocumentAttributeKeyT = Aws::String>
53 void SetDocumentAttributeKey(DocumentAttributeKeyT&& value) {
54 m_documentAttributeKeyHasBeenSet = true;
55 m_documentAttributeKey = std::forward<DocumentAttributeKeyT>(value);
56 }
57 template <typename DocumentAttributeKeyT = Aws::String>
58 SortingConfiguration& WithDocumentAttributeKey(DocumentAttributeKeyT&& value) {
59 SetDocumentAttributeKey(std::forward<DocumentAttributeKeyT>(value));
60 return *this;
61 }
63
65
70 inline SortOrder GetSortOrder() const { return m_sortOrder; }
71 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
72 inline void SetSortOrder(SortOrder value) {
73 m_sortOrderHasBeenSet = true;
74 m_sortOrder = value;
75 }
77 SetSortOrder(value);
78 return *this;
79 }
81 private:
82 Aws::String m_documentAttributeKey;
83
84 SortOrder m_sortOrder{SortOrder::NOT_SET};
85 bool m_documentAttributeKeyHasBeenSet = false;
86 bool m_sortOrderHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace kendra
91} // namespace Aws
void SetDocumentAttributeKey(DocumentAttributeKeyT &&value)
AWS_KENDRA_API SortingConfiguration(Aws::Utils::Json::JsonView jsonValue)
SortingConfiguration & WithSortOrder(SortOrder value)
AWS_KENDRA_API SortingConfiguration()=default
SortingConfiguration & WithDocumentAttributeKey(DocumentAttributeKeyT &&value)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KENDRA_API SortingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDocumentAttributeKey() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue