AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
BedrockRerankingModelConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/Document.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentRuntime {
22namespace Model {
23
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API BedrockRerankingModelConfiguration() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 return m_additionalModelRequestFields;
43 }
44 inline bool AdditionalModelRequestFieldsHasBeenSet() const { return m_additionalModelRequestFieldsHasBeenSet; }
45 template <typename AdditionalModelRequestFieldsT = Aws::Map<Aws::String, Aws::Utils::Document>>
47 m_additionalModelRequestFieldsHasBeenSet = true;
48 m_additionalModelRequestFields = std::forward<AdditionalModelRequestFieldsT>(value);
49 }
50 template <typename AdditionalModelRequestFieldsT = Aws::Map<Aws::String, Aws::Utils::Document>>
52 SetAdditionalModelRequestFields(std::forward<AdditionalModelRequestFieldsT>(value));
53 return *this;
54 }
55 template <typename AdditionalModelRequestFieldsKeyT = Aws::String, typename AdditionalModelRequestFieldsValueT = Aws::Utils::Document>
58 m_additionalModelRequestFieldsHasBeenSet = true;
59 m_additionalModelRequestFields.emplace(std::forward<AdditionalModelRequestFieldsKeyT>(key),
60 std::forward<AdditionalModelRequestFieldsValueT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetModelArn() const { return m_modelArn; }
70 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
71 template <typename ModelArnT = Aws::String>
72 void SetModelArn(ModelArnT&& value) {
73 m_modelArnHasBeenSet = true;
74 m_modelArn = std::forward<ModelArnT>(value);
75 }
76 template <typename ModelArnT = Aws::String>
78 SetModelArn(std::forward<ModelArnT>(value));
79 return *this;
80 }
82 private:
83 Aws::Map<Aws::String, Aws::Utils::Document> m_additionalModelRequestFields;
84
85 Aws::String m_modelArn;
86 bool m_additionalModelRequestFieldsHasBeenSet = false;
87 bool m_modelArnHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace BedrockAgentRuntime
92} // namespace Aws
BedrockRerankingModelConfiguration & AddAdditionalModelRequestFields(AdditionalModelRequestFieldsKeyT &&key, AdditionalModelRequestFieldsValueT &&value)
BedrockRerankingModelConfiguration & WithAdditionalModelRequestFields(AdditionalModelRequestFieldsT &&value)
AWS_BEDROCKAGENTRUNTIME_API BedrockRerankingModelConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API BedrockRerankingModelConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API BedrockRerankingModelConfiguration()=default
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::Utils::Document > & GetAdditionalModelRequestFields() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue