AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
RerankingMetadataSelectiveModeConfiguration.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock/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 Bedrock
23{
24namespace Model
25{
26
35 {
36 public:
40 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Vector<FieldForReranking>& GetFieldsToInclude() const { return m_fieldsToInclude; }
50 inline bool FieldsToIncludeHasBeenSet() const { return m_fieldsToIncludeHasBeenSet; }
51 template<typename FieldsToIncludeT = Aws::Vector<FieldForReranking>>
52 void SetFieldsToInclude(FieldsToIncludeT&& value) { m_fieldsToIncludeHasBeenSet = true; m_fieldsToInclude = std::forward<FieldsToIncludeT>(value); }
53 template<typename FieldsToIncludeT = Aws::Vector<FieldForReranking>>
54 RerankingMetadataSelectiveModeConfiguration& WithFieldsToInclude(FieldsToIncludeT&& value) { SetFieldsToInclude(std::forward<FieldsToIncludeT>(value)); return *this;}
55 template<typename FieldsToIncludeT = FieldForReranking>
56 RerankingMetadataSelectiveModeConfiguration& AddFieldsToInclude(FieldsToIncludeT&& value) { m_fieldsToIncludeHasBeenSet = true; m_fieldsToInclude.emplace_back(std::forward<FieldsToIncludeT>(value)); return *this; }
58
60
65 inline const Aws::Vector<FieldForReranking>& GetFieldsToExclude() const { return m_fieldsToExclude; }
66 inline bool FieldsToExcludeHasBeenSet() const { return m_fieldsToExcludeHasBeenSet; }
67 template<typename FieldsToExcludeT = Aws::Vector<FieldForReranking>>
68 void SetFieldsToExclude(FieldsToExcludeT&& value) { m_fieldsToExcludeHasBeenSet = true; m_fieldsToExclude = std::forward<FieldsToExcludeT>(value); }
69 template<typename FieldsToExcludeT = Aws::Vector<FieldForReranking>>
70 RerankingMetadataSelectiveModeConfiguration& WithFieldsToExclude(FieldsToExcludeT&& value) { SetFieldsToExclude(std::forward<FieldsToExcludeT>(value)); return *this;}
71 template<typename FieldsToExcludeT = FieldForReranking>
72 RerankingMetadataSelectiveModeConfiguration& AddFieldsToExclude(FieldsToExcludeT&& value) { m_fieldsToExcludeHasBeenSet = true; m_fieldsToExclude.emplace_back(std::forward<FieldsToExcludeT>(value)); return *this; }
74 private:
75
76 Aws::Vector<FieldForReranking> m_fieldsToInclude;
77 bool m_fieldsToIncludeHasBeenSet = false;
78
79 Aws::Vector<FieldForReranking> m_fieldsToExclude;
80 bool m_fieldsToExcludeHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace Bedrock
85} // 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::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue