AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RerankingMetadataSelectiveModeConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-agent-runtime/model/FieldForReranking.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 BedrockAgentRuntime
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_BEDROCKAGENTRUNTIME_API RerankingMetadataSelectiveModeConfiguration() = default;
43 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::Vector<FieldForReranking>& GetFieldsToExclude() const { return m_fieldsToExclude; }
52 inline bool FieldsToExcludeHasBeenSet() const { return m_fieldsToExcludeHasBeenSet; }
53 template<typename FieldsToExcludeT = Aws::Vector<FieldForReranking>>
54 void SetFieldsToExclude(FieldsToExcludeT&& value) { m_fieldsToExcludeHasBeenSet = true; m_fieldsToExclude = std::forward<FieldsToExcludeT>(value); }
55 template<typename FieldsToExcludeT = Aws::Vector<FieldForReranking>>
56 RerankingMetadataSelectiveModeConfiguration& WithFieldsToExclude(FieldsToExcludeT&& value) { SetFieldsToExclude(std::forward<FieldsToExcludeT>(value)); return *this;}
57 template<typename FieldsToExcludeT = FieldForReranking>
58 RerankingMetadataSelectiveModeConfiguration& AddFieldsToExclude(FieldsToExcludeT&& value) { m_fieldsToExcludeHasBeenSet = true; m_fieldsToExclude.emplace_back(std::forward<FieldsToExcludeT>(value)); return *this; }
60
62
66 inline const Aws::Vector<FieldForReranking>& GetFieldsToInclude() const { return m_fieldsToInclude; }
67 inline bool FieldsToIncludeHasBeenSet() const { return m_fieldsToIncludeHasBeenSet; }
68 template<typename FieldsToIncludeT = Aws::Vector<FieldForReranking>>
69 void SetFieldsToInclude(FieldsToIncludeT&& value) { m_fieldsToIncludeHasBeenSet = true; m_fieldsToInclude = std::forward<FieldsToIncludeT>(value); }
70 template<typename FieldsToIncludeT = Aws::Vector<FieldForReranking>>
71 RerankingMetadataSelectiveModeConfiguration& WithFieldsToInclude(FieldsToIncludeT&& value) { SetFieldsToInclude(std::forward<FieldsToIncludeT>(value)); return *this;}
72 template<typename FieldsToIncludeT = FieldForReranking>
73 RerankingMetadataSelectiveModeConfiguration& AddFieldsToInclude(FieldsToIncludeT&& value) { m_fieldsToIncludeHasBeenSet = true; m_fieldsToInclude.emplace_back(std::forward<FieldsToIncludeT>(value)); return *this; }
75 private:
76
77 Aws::Vector<FieldForReranking> m_fieldsToExclude;
78 bool m_fieldsToExcludeHasBeenSet = false;
79
80 Aws::Vector<FieldForReranking> m_fieldsToInclude;
81 bool m_fieldsToIncludeHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace BedrockAgentRuntime
86} // namespace Aws
RerankingMetadataSelectiveModeConfiguration & AddFieldsToExclude(FieldsToExcludeT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API RerankingMetadataSelectiveModeConfiguration(Aws::Utils::Json::JsonView jsonValue)
RerankingMetadataSelectiveModeConfiguration & AddFieldsToInclude(FieldsToIncludeT &&value)
AWS_BEDROCKAGENTRUNTIME_API RerankingMetadataSelectiveModeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API RerankingMetadataSelectiveModeConfiguration()=default
RerankingMetadataSelectiveModeConfiguration & WithFieldsToExclude(FieldsToExcludeT &&value)
RerankingMetadataSelectiveModeConfiguration & WithFieldsToInclude(FieldsToIncludeT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue