AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CollapseConfiguration.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kendra/model/MissingAttributeKeyStrategy.h>
11#include <aws/kendra/model/ExpandConfiguration.h>
12#include <aws/kendra/model/SortingConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace kendra
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_KENDRA_API CollapseConfiguration() = default;
43 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
53 inline const Aws::String& GetDocumentAttributeKey() const { return m_documentAttributeKey; }
54 inline bool DocumentAttributeKeyHasBeenSet() const { return m_documentAttributeKeyHasBeenSet; }
55 template<typename DocumentAttributeKeyT = Aws::String>
56 void SetDocumentAttributeKey(DocumentAttributeKeyT&& value) { m_documentAttributeKeyHasBeenSet = true; m_documentAttributeKey = std::forward<DocumentAttributeKeyT>(value); }
57 template<typename DocumentAttributeKeyT = Aws::String>
58 CollapseConfiguration& WithDocumentAttributeKey(DocumentAttributeKeyT&& value) { SetDocumentAttributeKey(std::forward<DocumentAttributeKeyT>(value)); return *this;}
60
62
66 inline const Aws::Vector<SortingConfiguration>& GetSortingConfigurations() const { return m_sortingConfigurations; }
67 inline bool SortingConfigurationsHasBeenSet() const { return m_sortingConfigurationsHasBeenSet; }
68 template<typename SortingConfigurationsT = Aws::Vector<SortingConfiguration>>
69 void SetSortingConfigurations(SortingConfigurationsT&& value) { m_sortingConfigurationsHasBeenSet = true; m_sortingConfigurations = std::forward<SortingConfigurationsT>(value); }
70 template<typename SortingConfigurationsT = Aws::Vector<SortingConfiguration>>
71 CollapseConfiguration& WithSortingConfigurations(SortingConfigurationsT&& value) { SetSortingConfigurations(std::forward<SortingConfigurationsT>(value)); return *this;}
72 template<typename SortingConfigurationsT = SortingConfiguration>
73 CollapseConfiguration& AddSortingConfigurations(SortingConfigurationsT&& value) { m_sortingConfigurationsHasBeenSet = true; m_sortingConfigurations.emplace_back(std::forward<SortingConfigurationsT>(value)); return *this; }
75
77
87 inline MissingAttributeKeyStrategy GetMissingAttributeKeyStrategy() const { return m_missingAttributeKeyStrategy; }
88 inline bool MissingAttributeKeyStrategyHasBeenSet() const { return m_missingAttributeKeyStrategyHasBeenSet; }
89 inline void SetMissingAttributeKeyStrategy(MissingAttributeKeyStrategy value) { m_missingAttributeKeyStrategyHasBeenSet = true; m_missingAttributeKeyStrategy = value; }
92
94
97 inline bool GetExpand() const { return m_expand; }
98 inline bool ExpandHasBeenSet() const { return m_expandHasBeenSet; }
99 inline void SetExpand(bool value) { m_expandHasBeenSet = true; m_expand = value; }
100 inline CollapseConfiguration& WithExpand(bool value) { SetExpand(value); return *this;}
102
104
108 inline const ExpandConfiguration& GetExpandConfiguration() const { return m_expandConfiguration; }
109 inline bool ExpandConfigurationHasBeenSet() const { return m_expandConfigurationHasBeenSet; }
110 template<typename ExpandConfigurationT = ExpandConfiguration>
111 void SetExpandConfiguration(ExpandConfigurationT&& value) { m_expandConfigurationHasBeenSet = true; m_expandConfiguration = std::forward<ExpandConfigurationT>(value); }
112 template<typename ExpandConfigurationT = ExpandConfiguration>
113 CollapseConfiguration& WithExpandConfiguration(ExpandConfigurationT&& value) { SetExpandConfiguration(std::forward<ExpandConfigurationT>(value)); return *this;}
115 private:
116
117 Aws::String m_documentAttributeKey;
118 bool m_documentAttributeKeyHasBeenSet = false;
119
120 Aws::Vector<SortingConfiguration> m_sortingConfigurations;
121 bool m_sortingConfigurationsHasBeenSet = false;
122
124 bool m_missingAttributeKeyStrategyHasBeenSet = false;
125
126 bool m_expand{false};
127 bool m_expandHasBeenSet = false;
128
129 ExpandConfiguration m_expandConfiguration;
130 bool m_expandConfigurationHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace kendra
135} // namespace Aws
CollapseConfiguration & WithMissingAttributeKeyStrategy(MissingAttributeKeyStrategy value)
const Aws::Vector< SortingConfiguration > & GetSortingConfigurations() const
CollapseConfiguration & WithExpandConfiguration(ExpandConfigurationT &&value)
CollapseConfiguration & WithSortingConfigurations(SortingConfigurationsT &&value)
CollapseConfiguration & AddSortingConfigurations(SortingConfigurationsT &&value)
void SetDocumentAttributeKey(DocumentAttributeKeyT &&value)
AWS_KENDRA_API CollapseConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
CollapseConfiguration & WithExpand(bool value)
AWS_KENDRA_API CollapseConfiguration()=default
AWS_KENDRA_API CollapseConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSortingConfigurations(SortingConfigurationsT &&value)
void SetMissingAttributeKeyStrategy(MissingAttributeKeyStrategy value)
const Aws::String & GetDocumentAttributeKey() const
MissingAttributeKeyStrategy GetMissingAttributeKeyStrategy() const
CollapseConfiguration & WithDocumentAttributeKey(DocumentAttributeKeyT &&value)
void SetExpandConfiguration(ExpandConfigurationT &&value)
const ExpandConfiguration & GetExpandConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue