AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
RerankingMetadataSelectiveModeConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/FieldForReranking.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgent {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENT_API RerankingMetadataSelectiveModeConfiguration() = default;
34 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<FieldForReranking>& GetFieldsToInclude() const { return m_fieldsToInclude; }
41 inline bool FieldsToIncludeHasBeenSet() const { return m_fieldsToIncludeHasBeenSet; }
42 template <typename FieldsToIncludeT = Aws::Vector<FieldForReranking>>
44 m_fieldsToIncludeHasBeenSet = true;
45 m_fieldsToInclude = std::forward<FieldsToIncludeT>(value);
46 }
47 template <typename FieldsToIncludeT = Aws::Vector<FieldForReranking>>
49 SetFieldsToInclude(std::forward<FieldsToIncludeT>(value));
50 return *this;
51 }
52 template <typename FieldsToIncludeT = FieldForReranking>
54 m_fieldsToIncludeHasBeenSet = true;
55 m_fieldsToInclude.emplace_back(std::forward<FieldsToIncludeT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<FieldForReranking>& GetFieldsToExclude() const { return m_fieldsToExclude; }
65 inline bool FieldsToExcludeHasBeenSet() const { return m_fieldsToExcludeHasBeenSet; }
66 template <typename FieldsToExcludeT = Aws::Vector<FieldForReranking>>
68 m_fieldsToExcludeHasBeenSet = true;
69 m_fieldsToExclude = std::forward<FieldsToExcludeT>(value);
70 }
71 template <typename FieldsToExcludeT = Aws::Vector<FieldForReranking>>
73 SetFieldsToExclude(std::forward<FieldsToExcludeT>(value));
74 return *this;
75 }
76 template <typename FieldsToExcludeT = FieldForReranking>
78 m_fieldsToExcludeHasBeenSet = true;
79 m_fieldsToExclude.emplace_back(std::forward<FieldsToExcludeT>(value));
80 return *this;
81 }
83 private:
84 Aws::Vector<FieldForReranking> m_fieldsToInclude;
85
86 Aws::Vector<FieldForReranking> m_fieldsToExclude;
87 bool m_fieldsToIncludeHasBeenSet = false;
88 bool m_fieldsToExcludeHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace BedrockAgent
93} // namespace Aws
AWS_BEDROCKAGENT_API RerankingMetadataSelectiveModeConfiguration(Aws::Utils::Json::JsonView jsonValue)
RerankingMetadataSelectiveModeConfiguration & AddFieldsToExclude(FieldsToExcludeT &&value)
RerankingMetadataSelectiveModeConfiguration & WithFieldsToInclude(FieldsToIncludeT &&value)
RerankingMetadataSelectiveModeConfiguration & WithFieldsToExclude(FieldsToExcludeT &&value)
AWS_BEDROCKAGENT_API RerankingMetadataSelectiveModeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
RerankingMetadataSelectiveModeConfiguration & AddFieldsToInclude(FieldsToIncludeT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue