AWS SDK for C++  1.9.159
AWS SDK for C++
SortingConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace kendra
23 {
24 namespace Model
25 {
26 
40  {
41  public:
46 
47 
55  inline const Aws::String& GetDocumentAttributeKey() const{ return m_documentAttributeKey; }
56 
64  inline bool DocumentAttributeKeyHasBeenSet() const { return m_documentAttributeKeyHasBeenSet; }
65 
73  inline void SetDocumentAttributeKey(const Aws::String& value) { m_documentAttributeKeyHasBeenSet = true; m_documentAttributeKey = value; }
74 
82  inline void SetDocumentAttributeKey(Aws::String&& value) { m_documentAttributeKeyHasBeenSet = true; m_documentAttributeKey = std::move(value); }
83 
91  inline void SetDocumentAttributeKey(const char* value) { m_documentAttributeKeyHasBeenSet = true; m_documentAttributeKey.assign(value); }
92 
100  inline SortingConfiguration& WithDocumentAttributeKey(const Aws::String& value) { SetDocumentAttributeKey(value); return *this;}
101 
109  inline SortingConfiguration& WithDocumentAttributeKey(Aws::String&& value) { SetDocumentAttributeKey(std::move(value)); return *this;}
110 
118  inline SortingConfiguration& WithDocumentAttributeKey(const char* value) { SetDocumentAttributeKey(value); return *this;}
119 
120 
126  inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
127 
133  inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
134 
140  inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
141 
147  inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
148 
154  inline SortingConfiguration& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
155 
161  inline SortingConfiguration& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
162 
163  private:
164 
165  Aws::String m_documentAttributeKey;
166  bool m_documentAttributeKeyHasBeenSet;
167 
168  SortOrder m_sortOrder;
169  bool m_sortOrderHasBeenSet;
170  };
171 
172 } // namespace Model
173 } // namespace kendra
174 } // namespace Aws
Aws::kendra::Model::SortingConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::kendra::Model::SortingConfiguration::WithDocumentAttributeKey
SortingConfiguration & WithDocumentAttributeKey(Aws::String &&value)
Definition: SortingConfiguration.h:109
Aws::kendra::Model::SortingConfiguration::SetDocumentAttributeKey
void SetDocumentAttributeKey(Aws::String &&value)
Definition: SortingConfiguration.h:82
Aws::kendra::Model::SortingConfiguration::SortOrderHasBeenSet
bool SortOrderHasBeenSet() const
Definition: SortingConfiguration.h:133
Kendra_EXPORTS.h
Aws::kendra::Model::SortingConfiguration::SetDocumentAttributeKey
void SetDocumentAttributeKey(const Aws::String &value)
Definition: SortingConfiguration.h:73
Aws::kendra::Model::SortingConfiguration::SetSortOrder
void SetSortOrder(SortOrder &&value)
Definition: SortingConfiguration.h:147
Aws::kendra::Model::SortingConfiguration::WithDocumentAttributeKey
SortingConfiguration & WithDocumentAttributeKey(const Aws::String &value)
Definition: SortingConfiguration.h:100
Aws::kendra::Model::SortingConfiguration::WithSortOrder
SortingConfiguration & WithSortOrder(SortOrder &&value)
Definition: SortingConfiguration.h:161
Aws::kendra::Model::SortingConfiguration::operator=
SortingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::kendra::Model::SortingConfiguration
Definition: SortingConfiguration.h:40
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::kendra::Model::SortingConfiguration::WithSortOrder
SortingConfiguration & WithSortOrder(const SortOrder &value)
Definition: SortingConfiguration.h:154
Aws::kendra::Model::SortingConfiguration::SetSortOrder
void SetSortOrder(const SortOrder &value)
Definition: SortingConfiguration.h:140
Aws::kendra::Model::SortOrder
SortOrder
Definition: SortOrder.h:17
Aws::kendra::Model::SortingConfiguration::SetDocumentAttributeKey
void SetDocumentAttributeKey(const char *value)
Definition: SortingConfiguration.h:91
Aws::kendra::Model::SortingConfiguration::GetSortOrder
const SortOrder & GetSortOrder() const
Definition: SortingConfiguration.h:126
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::kendra::Model::SortingConfiguration::GetDocumentAttributeKey
const Aws::String & GetDocumentAttributeKey() const
Definition: SortingConfiguration.h:55
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::kendra::Model::SortingConfiguration::WithDocumentAttributeKey
SortingConfiguration & WithDocumentAttributeKey(const char *value)
Definition: SortingConfiguration.h:118
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28
Aws::kendra::Model::SortingConfiguration::DocumentAttributeKeyHasBeenSet
bool DocumentAttributeKeyHasBeenSet() const
Definition: SortingConfiguration.h:64
Aws::kendra::Model::SortingConfiguration::SortingConfiguration
SortingConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::kendra::Model::SortingConfiguration::SortingConfiguration
SortingConfiguration()
SortOrder.h