AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
13
14namespace Aws
15{
16namespace BedrockRuntime
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_BEDROCKRUNTIME_API InvokeModelRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "InvokeModel"; }
33
34 AWS_BEDROCKRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
42 inline const Aws::String& GetAccept() const{ return m_accept; }
43 inline bool AcceptHasBeenSet() const { return m_acceptHasBeenSet; }
44 inline void SetAccept(const Aws::String& value) { m_acceptHasBeenSet = true; m_accept = value; }
45 inline void SetAccept(Aws::String&& value) { m_acceptHasBeenSet = true; m_accept = std::move(value); }
46 inline void SetAccept(const char* value) { m_acceptHasBeenSet = true; m_accept.assign(value); }
47 inline InvokeModelRequest& WithAccept(const Aws::String& value) { SetAccept(value); return *this;}
48 inline InvokeModelRequest& WithAccept(Aws::String&& value) { SetAccept(std::move(value)); return *this;}
49 inline InvokeModelRequest& WithAccept(const char* value) { SetAccept(value); return *this;}
51
53
76 inline const Aws::String& GetModelId() const{ return m_modelId; }
77 inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; }
78 inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; }
79 inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); }
80 inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); }
81 inline InvokeModelRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;}
82 inline InvokeModelRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;}
83 inline InvokeModelRequest& WithModelId(const char* value) { SetModelId(value); return *this;}
85
87
91 inline const Trace& GetTrace() const{ return m_trace; }
92 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
93 inline void SetTrace(const Trace& value) { m_traceHasBeenSet = true; m_trace = value; }
94 inline void SetTrace(Trace&& value) { m_traceHasBeenSet = true; m_trace = std::move(value); }
95 inline InvokeModelRequest& WithTrace(const Trace& value) { SetTrace(value); return *this;}
96 inline InvokeModelRequest& WithTrace(Trace&& value) { SetTrace(std::move(value)); return *this;}
98
100
110 inline const Aws::String& GetGuardrailIdentifier() const{ return m_guardrailIdentifier; }
111 inline bool GuardrailIdentifierHasBeenSet() const { return m_guardrailIdentifierHasBeenSet; }
112 inline void SetGuardrailIdentifier(const Aws::String& value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier = value; }
113 inline void SetGuardrailIdentifier(Aws::String&& value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier = std::move(value); }
114 inline void SetGuardrailIdentifier(const char* value) { m_guardrailIdentifierHasBeenSet = true; m_guardrailIdentifier.assign(value); }
116 inline InvokeModelRequest& WithGuardrailIdentifier(Aws::String&& value) { SetGuardrailIdentifier(std::move(value)); return *this;}
117 inline InvokeModelRequest& WithGuardrailIdentifier(const char* value) { SetGuardrailIdentifier(value); return *this;}
119
121
125 inline const Aws::String& GetGuardrailVersion() const{ return m_guardrailVersion; }
126 inline bool GuardrailVersionHasBeenSet() const { return m_guardrailVersionHasBeenSet; }
127 inline void SetGuardrailVersion(const Aws::String& value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion = value; }
128 inline void SetGuardrailVersion(Aws::String&& value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion = std::move(value); }
129 inline void SetGuardrailVersion(const char* value) { m_guardrailVersionHasBeenSet = true; m_guardrailVersion.assign(value); }
130 inline InvokeModelRequest& WithGuardrailVersion(const Aws::String& value) { SetGuardrailVersion(value); return *this;}
131 inline InvokeModelRequest& WithGuardrailVersion(Aws::String&& value) { SetGuardrailVersion(std::move(value)); return *this;}
132 inline InvokeModelRequest& WithGuardrailVersion(const char* value) { SetGuardrailVersion(value); return *this;}
134 private:
135
136
137 Aws::String m_accept;
138 bool m_acceptHasBeenSet = false;
139
140 Aws::String m_modelId;
141 bool m_modelIdHasBeenSet = false;
142
143 Trace m_trace;
144 bool m_traceHasBeenSet = false;
145
146 Aws::String m_guardrailIdentifier;
147 bool m_guardrailIdentifierHasBeenSet = false;
148
149 Aws::String m_guardrailVersion;
150 bool m_guardrailVersionHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace BedrockRuntime
155} // namespace Aws
InvokeModelRequest & WithGuardrailVersion(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetGuardrailIdentifier(const Aws::String &value)
InvokeModelRequest & WithGuardrailIdentifier(const Aws::String &value)
InvokeModelRequest & WithGuardrailIdentifier(Aws::String &&value)
InvokeModelRequest & WithGuardrailVersion(const char *value)
InvokeModelRequest & WithAccept(const Aws::String &value)
InvokeModelRequest & WithAccept(const char *value)
InvokeModelRequest & WithGuardrailVersion(Aws::String &&value)
InvokeModelRequest & WithModelId(Aws::String &&value)
InvokeModelRequest & WithGuardrailIdentifier(const char *value)
InvokeModelRequest & WithAccept(Aws::String &&value)
InvokeModelRequest & WithTrace(const Trace &value)
void SetGuardrailVersion(const Aws::String &value)
AWS_BEDROCKRUNTIME_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
InvokeModelRequest & WithModelId(const char *value)
InvokeModelRequest & WithModelId(const Aws::String &value)
InvokeModelRequest & WithTrace(Trace &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String