AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SortingConfiguration.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kendra/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 kendra
23{
24namespace Model
25{
26
40 {
41 public:
42 AWS_KENDRA_API SortingConfiguration() = default;
45 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
56 inline const Aws::String& GetDocumentAttributeKey() const { return m_documentAttributeKey; }
57 inline bool DocumentAttributeKeyHasBeenSet() const { return m_documentAttributeKeyHasBeenSet; }
58 template<typename DocumentAttributeKeyT = Aws::String>
59 void SetDocumentAttributeKey(DocumentAttributeKeyT&& value) { m_documentAttributeKeyHasBeenSet = true; m_documentAttributeKey = std::forward<DocumentAttributeKeyT>(value); }
60 template<typename DocumentAttributeKeyT = Aws::String>
61 SortingConfiguration& WithDocumentAttributeKey(DocumentAttributeKeyT&& value) { SetDocumentAttributeKey(std::forward<DocumentAttributeKeyT>(value)); return *this;}
63
65
70 inline SortOrder GetSortOrder() const { return m_sortOrder; }
71 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
72 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
73 inline SortingConfiguration& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
75 private:
76
77 Aws::String m_documentAttributeKey;
78 bool m_documentAttributeKeyHasBeenSet = false;
79
80 SortOrder m_sortOrder{SortOrder::NOT_SET};
81 bool m_sortOrderHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace kendra
86} // 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