AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
RerankingMetadataSelectiveModeConfiguration.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/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 Bedrock {
21namespace Model {
22
31 public:
35 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<FieldForReranking>& GetFieldsToInclude() const { return m_fieldsToInclude; }
44 inline bool FieldsToIncludeHasBeenSet() const { return m_fieldsToIncludeHasBeenSet; }
45 template <typename FieldsToIncludeT = Aws::Vector<FieldForReranking>>
47 m_fieldsToIncludeHasBeenSet = true;
48 m_fieldsToInclude = std::forward<FieldsToIncludeT>(value);
49 }
50 template <typename FieldsToIncludeT = Aws::Vector<FieldForReranking>>
52 SetFieldsToInclude(std::forward<FieldsToIncludeT>(value));
53 return *this;
54 }
55 template <typename FieldsToIncludeT = FieldForReranking>
57 m_fieldsToIncludeHasBeenSet = true;
58 m_fieldsToInclude.emplace_back(std::forward<FieldsToIncludeT>(value));
59 return *this;
60 }
62
64
69 inline const Aws::Vector<FieldForReranking>& GetFieldsToExclude() const { return m_fieldsToExclude; }
70 inline bool FieldsToExcludeHasBeenSet() const { return m_fieldsToExcludeHasBeenSet; }
71 template <typename FieldsToExcludeT = Aws::Vector<FieldForReranking>>
73 m_fieldsToExcludeHasBeenSet = true;
74 m_fieldsToExclude = std::forward<FieldsToExcludeT>(value);
75 }
76 template <typename FieldsToExcludeT = Aws::Vector<FieldForReranking>>
78 SetFieldsToExclude(std::forward<FieldsToExcludeT>(value));
79 return *this;
80 }
81 template <typename FieldsToExcludeT = FieldForReranking>
83 m_fieldsToExcludeHasBeenSet = true;
84 m_fieldsToExclude.emplace_back(std::forward<FieldsToExcludeT>(value));
85 return *this;
86 }
88 private:
89 Aws::Vector<FieldForReranking> m_fieldsToInclude;
90
91 Aws::Vector<FieldForReranking> m_fieldsToExclude;
92 bool m_fieldsToIncludeHasBeenSet = false;
93 bool m_fieldsToExcludeHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Bedrock
98} // namespace Aws
AWS_BEDROCK_API RerankingMetadataSelectiveModeConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
RerankingMetadataSelectiveModeConfiguration & WithFieldsToInclude(FieldsToIncludeT &&value)
AWS_BEDROCK_API RerankingMetadataSelectiveModeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
RerankingMetadataSelectiveModeConfiguration & AddFieldsToInclude(FieldsToIncludeT &&value)
RerankingMetadataSelectiveModeConfiguration & WithFieldsToExclude(FieldsToExcludeT &&value)
RerankingMetadataSelectiveModeConfiguration & AddFieldsToExclude(FieldsToExcludeT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue