AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
InvokeModelRequest.h
1
6#pragma once
7#include <aws/bedrock-runtime/BedrockRuntime_EXPORTS.h>
8#include <aws/bedrock-runtime/BedrockRuntimeRequest.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/bedrock-runtime/model/Trace.h>
12#include <aws/bedrock-runtime/model/PerformanceConfigLatency.h>
13#include <utility>
14
15namespace Aws
16{
17namespace BedrockRuntime
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BEDROCKRUNTIME_API InvokeModelRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "InvokeModel"; }
34
35 AWS_BEDROCKRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetAccept() const { return m_accept; }
44 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
45 template<typename AcceptT = Aws::String>
46 void SetAccept(AcceptT&& value) { m_acceptHasBeenSet = true; m_accept = std::forward<AcceptT>(value); }
47 template<typename AcceptT = Aws::String>
48 InvokeModelRequest& WithAccept(AcceptT&& value) { SetAccept(std::forward<AcceptT>(value)); return *this;}
50
52
79 inline const Aws::String& GetModelId() const { return m_modelId; }
80 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
81 template<typename ModelIdT = Aws::String>
82 void SetModelId(ModelIdT&& value) { m_modelIdHasBeenSet = true; m_modelId = std::forward<ModelIdT>(value); }
83 template<typename ModelIdT = Aws::String>
84 InvokeModelRequest& WithModelId(ModelIdT&& value) { SetModelId(std::forward<ModelIdT>(value)); return *this;}
86
88
92 inline Trace GetTrace() const { return m_trace; }
93 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
94 inline void SetTrace(Trace value) { m_traceHasBeenSet = true; m_trace = value; }
95 inline InvokeModelRequest& WithTrace(Trace value) { SetTrace(value); return *this;}
97
99
109 inline const Aws::String& GetGuardrailIdentifier() const { return m_guardrailIdentifier; }
110 inline bool GuardrailIdentifierHasBeenSet() const { return m_guardrailIdentifierHasBeenSet; }
111 template<typename GuardrailIdentifierT = Aws::String>
112 void SetGuardrailIdentifier(GuardrailIdentifierT&& value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier = std::forward<GuardrailIdentifierT>(value); }
113 template<typename GuardrailIdentifierT = Aws::String>
114 InvokeModelRequest& WithGuardrailIdentifier(GuardrailIdentifierT&& value) { SetGuardrailIdentifier(std::forward<GuardrailIdentifierT>(value)); return *this;}
116
118
122 inline const Aws::String& GetGuardrailVersion() const { return m_guardrailVersion; }
123 inline bool GuardrailVersionHasBeenSet() const { return m_guardrailVersionHasBeenSet; }
124 template<typename GuardrailVersionT = Aws::String>
125 void SetGuardrailVersion(GuardrailVersionT&& value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion = std::forward<GuardrailVersionT>(value); }
126 template<typename GuardrailVersionT = Aws::String>
127 InvokeModelRequest& WithGuardrailVersion(GuardrailVersionT&& value) { SetGuardrailVersion(std::forward<GuardrailVersionT>(value)); return *this;}
129
131
134 inline PerformanceConfigLatency GetPerformanceConfigLatency() const { return m_performanceConfigLatency; }
135 inline bool PerformanceConfigLatencyHasBeenSet() const { return m_performanceConfigLatencyHasBeenSet; }
136 inline void SetPerformanceConfigLatency(PerformanceConfigLatency value) { m_performanceConfigLatencyHasBeenSet = true; m_performanceConfigLatency = value; }
139 private:
140
141
142 Aws::String m_accept;
143 bool m_acceptHasBeenSet = false;
144
145 Aws::String m_modelId;
146 bool m_modelIdHasBeenSet = false;
147
148 Trace m_trace{Trace::NOT_SET};
149 bool m_traceHasBeenSet = false;
150
151 Aws::String m_guardrailIdentifier;
152 bool m_guardrailIdentifierHasBeenSet = false;
153
154 Aws::String m_guardrailVersion;
155 bool m_guardrailVersionHasBeenSet = false;
156
158 bool m_performanceConfigLatencyHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace BedrockRuntime
163} // namespace Aws
InvokeModelRequest & WithGuardrailIdentifier(GuardrailIdentifierT &&value)
virtual const char * GetServiceRequestName() const override
void SetGuardrailVersion(GuardrailVersionT &&value)
InvokeModelRequest & WithModelId(ModelIdT &&value)
InvokeModelRequest & WithTrace(Trace value)
PerformanceConfigLatency GetPerformanceConfigLatency() const
void SetGuardrailIdentifier(GuardrailIdentifierT &&value)
AWS_BEDROCKRUNTIME_API InvokeModelRequest()=default
InvokeModelRequest & WithAccept(AcceptT &&value)
void SetPerformanceConfigLatency(PerformanceConfigLatency value)
InvokeModelRequest & WithPerformanceConfigLatency(PerformanceConfigLatency value)
InvokeModelRequest & WithGuardrailVersion(GuardrailVersionT &&value)
AWS_BEDROCKRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String