AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RerankingMetadataSelectiveModeConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-agent/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 BedrockAgent
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BEDROCKAGENT_API RerankingMetadataSelectiveModeConfiguration() = default;
39 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<FieldForReranking>& GetFieldsToExclude() const { return m_fieldsToExclude; }
47 inline bool FieldsToExcludeHasBeenSet() const { return m_fieldsToExcludeHasBeenSet; }
48 template<typename FieldsToExcludeT = Aws::Vector<FieldForReranking>>
49 void SetFieldsToExclude(FieldsToExcludeT&& value) { m_fieldsToExcludeHasBeenSet = true; m_fieldsToExclude = std::forward<FieldsToExcludeT>(value); }
50 template<typename FieldsToExcludeT = Aws::Vector<FieldForReranking>>
51 RerankingMetadataSelectiveModeConfiguration& WithFieldsToExclude(FieldsToExcludeT&& value) { SetFieldsToExclude(std::forward<FieldsToExcludeT>(value)); return *this;}
52 template<typename FieldsToExcludeT = FieldForReranking>
53 RerankingMetadataSelectiveModeConfiguration& AddFieldsToExclude(FieldsToExcludeT&& value) { m_fieldsToExcludeHasBeenSet = true; m_fieldsToExclude.emplace_back(std::forward<FieldsToExcludeT>(value)); return *this; }
55
57
60 inline const Aws::Vector<FieldForReranking>& GetFieldsToInclude() const { return m_fieldsToInclude; }
61 inline bool FieldsToIncludeHasBeenSet() const { return m_fieldsToIncludeHasBeenSet; }
62 template<typename FieldsToIncludeT = Aws::Vector<FieldForReranking>>
63 void SetFieldsToInclude(FieldsToIncludeT&& value) { m_fieldsToIncludeHasBeenSet = true; m_fieldsToInclude = std::forward<FieldsToIncludeT>(value); }
64 template<typename FieldsToIncludeT = Aws::Vector<FieldForReranking>>
65 RerankingMetadataSelectiveModeConfiguration& WithFieldsToInclude(FieldsToIncludeT&& value) { SetFieldsToInclude(std::forward<FieldsToIncludeT>(value)); return *this;}
66 template<typename FieldsToIncludeT = FieldForReranking>
67 RerankingMetadataSelectiveModeConfiguration& AddFieldsToInclude(FieldsToIncludeT&& value) { m_fieldsToIncludeHasBeenSet = true; m_fieldsToInclude.emplace_back(std::forward<FieldsToIncludeT>(value)); return *this; }
69 private:
70
71 Aws::Vector<FieldForReranking> m_fieldsToExclude;
72 bool m_fieldsToExcludeHasBeenSet = false;
73
74 Aws::Vector<FieldForReranking> m_fieldsToInclude;
75 bool m_fieldsToIncludeHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace BedrockAgent
80} // 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::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue