AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
InvokeFlowRequest.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/BedrockAgentRuntimeRequest.h>
9#include <aws/bedrock-agent-runtime/model/InvokeFlowHandler.h>
10#include <aws/core/utils/event/EventStreamDecoder.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/bedrock-agent-runtime/model/ModelPerformanceConfiguration.h>
14#include <aws/bedrock-agent-runtime/model/FlowInput.h>
15#include <utility>
16
17namespace Aws
18{
19namespace BedrockAgentRuntime
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_BEDROCKAGENTRUNTIME_API InvokeFlowRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "InvokeFlow"; }
36
37 inline virtual bool HasEventStreamResponse() const override { return true; }
38 AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override;
39
44
48 inline InvokeFlowHandler& GetEventStreamHandler() { return m_handler; }
49
53 inline void SetEventStreamHandler(const InvokeFlowHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
54
59
60
62
68 inline bool GetEnableTrace() const { return m_enableTrace; }
69 inline bool EnableTraceHasBeenSet() const { return m_enableTraceHasBeenSet; }
70 inline void SetEnableTrace(bool value) { m_enableTraceHasBeenSet = true; m_enableTrace = value; }
71 inline InvokeFlowRequest& WithEnableTrace(bool value) { SetEnableTrace(value); return *this;}
73
75
79 inline const Aws::String& GetExecutionId() const { return m_executionId; }
80 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
81 template<typename ExecutionIdT = Aws::String>
82 void SetExecutionId(ExecutionIdT&& value) { m_executionIdHasBeenSet = true; m_executionId = std::forward<ExecutionIdT>(value); }
83 template<typename ExecutionIdT = Aws::String>
84 InvokeFlowRequest& WithExecutionId(ExecutionIdT&& value) { SetExecutionId(std::forward<ExecutionIdT>(value)); return *this;}
86
88
91 inline const Aws::String& GetFlowAliasIdentifier() const { return m_flowAliasIdentifier; }
92 inline bool FlowAliasIdentifierHasBeenSet() const { return m_flowAliasIdentifierHasBeenSet; }
93 template<typename FlowAliasIdentifierT = Aws::String>
94 void SetFlowAliasIdentifier(FlowAliasIdentifierT&& value) { m_flowAliasIdentifierHasBeenSet = true; m_flowAliasIdentifier = std::forward<FlowAliasIdentifierT>(value); }
95 template<typename FlowAliasIdentifierT = Aws::String>
96 InvokeFlowRequest& WithFlowAliasIdentifier(FlowAliasIdentifierT&& value) { SetFlowAliasIdentifier(std::forward<FlowAliasIdentifierT>(value)); return *this;}
98
100
103 inline const Aws::String& GetFlowIdentifier() const { return m_flowIdentifier; }
104 inline bool FlowIdentifierHasBeenSet() const { return m_flowIdentifierHasBeenSet; }
105 template<typename FlowIdentifierT = Aws::String>
106 void SetFlowIdentifier(FlowIdentifierT&& value) { m_flowIdentifierHasBeenSet = true; m_flowIdentifier = std::forward<FlowIdentifierT>(value); }
107 template<typename FlowIdentifierT = Aws::String>
108 InvokeFlowRequest& WithFlowIdentifier(FlowIdentifierT&& value) { SetFlowIdentifier(std::forward<FlowIdentifierT>(value)); return *this;}
110
112
116 inline const Aws::Vector<FlowInput>& GetInputs() const { return m_inputs; }
117 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
118 template<typename InputsT = Aws::Vector<FlowInput>>
119 void SetInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs = std::forward<InputsT>(value); }
120 template<typename InputsT = Aws::Vector<FlowInput>>
121 InvokeFlowRequest& WithInputs(InputsT&& value) { SetInputs(std::forward<InputsT>(value)); return *this;}
122 template<typename InputsT = FlowInput>
123 InvokeFlowRequest& AddInputs(InputsT&& value) { m_inputsHasBeenSet = true; m_inputs.emplace_back(std::forward<InputsT>(value)); return *this; }
125
127
130 inline const ModelPerformanceConfiguration& GetModelPerformanceConfiguration() const { return m_modelPerformanceConfiguration; }
131 inline bool ModelPerformanceConfigurationHasBeenSet() const { return m_modelPerformanceConfigurationHasBeenSet; }
132 template<typename ModelPerformanceConfigurationT = ModelPerformanceConfiguration>
133 void SetModelPerformanceConfiguration(ModelPerformanceConfigurationT&& value) { m_modelPerformanceConfigurationHasBeenSet = true; m_modelPerformanceConfiguration = std::forward<ModelPerformanceConfigurationT>(value); }
134 template<typename ModelPerformanceConfigurationT = ModelPerformanceConfiguration>
135 InvokeFlowRequest& WithModelPerformanceConfiguration(ModelPerformanceConfigurationT&& value) { SetModelPerformanceConfiguration(std::forward<ModelPerformanceConfigurationT>(value)); return *this;}
137 private:
138
139 bool m_enableTrace{false};
140 bool m_enableTraceHasBeenSet = false;
141
142 Aws::String m_executionId;
143 bool m_executionIdHasBeenSet = false;
144
145 Aws::String m_flowAliasIdentifier;
146 bool m_flowAliasIdentifierHasBeenSet = false;
147
148 Aws::String m_flowIdentifier;
149 bool m_flowIdentifierHasBeenSet = false;
150
151 Aws::Vector<FlowInput> m_inputs;
152 bool m_inputsHasBeenSet = false;
153
154 ModelPerformanceConfiguration m_modelPerformanceConfiguration;
155 bool m_modelPerformanceConfigurationHasBeenSet = false;
156 InvokeFlowHandler m_handler;
158
159 };
160
161} // namespace Model
162} // namespace BedrockAgentRuntime
163} // namespace Aws
InvokeFlowRequest & WithExecutionId(ExecutionIdT &&value)
InvokeFlowRequest & AddInputs(InputsT &&value)
const Aws::Vector< FlowInput > & GetInputs() const
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
InvokeFlowRequest & WithInputs(InputsT &&value)
void SetModelPerformanceConfiguration(ModelPerformanceConfigurationT &&value)
AWS_BEDROCKAGENTRUNTIME_API InvokeFlowRequest()=default
InvokeFlowRequest & WithModelPerformanceConfiguration(ModelPerformanceConfigurationT &&value)
InvokeFlowRequest & WithFlowAliasIdentifier(FlowAliasIdentifierT &&value)
void SetFlowAliasIdentifier(FlowAliasIdentifierT &&value)
InvokeFlowRequest & WithFlowIdentifier(FlowIdentifierT &&value)
const ModelPerformanceConfiguration & GetModelPerformanceConfiguration() const
Aws::Utils::Event::EventStreamDecoder & GetEventStreamDecoder()
virtual const char * GetServiceRequestName() const override
InvokeFlowRequest & WithEventStreamHandler(const InvokeFlowHandler &value)
void SetEventStreamHandler(const InvokeFlowHandler &value)
void ResetEventStreamHandler(EventStreamHandler *handler)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector