AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/FlowInput.h>
14#include <utility>
15
16namespace Aws
17{
18namespace BedrockAgentRuntime
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BEDROCKAGENTRUNTIME_API InvokeFlowRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "InvokeFlow"; }
35
36 AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override;
37
42
46 inline const InvokeFlowHandler& GetEventStreamHandler() const { return m_handler; }
47
51 inline void SetEventStreamHandler(const InvokeFlowHandler& value) { m_handler = value; m_decoder.ResetEventStreamHandler(&m_handler); }
52
57
58
60
63 inline const Aws::String& GetFlowAliasIdentifier() const{ return m_flowAliasIdentifier; }
64 inline bool FlowAliasIdentifierHasBeenSet() const { return m_flowAliasIdentifierHasBeenSet; }
65 inline void SetFlowAliasIdentifier(const Aws::String& value) { m_flowAliasIdentifierHasBeenSet = true; m_flowAliasIdentifier = value; }
66 inline void SetFlowAliasIdentifier(Aws::String&& value) { m_flowAliasIdentifierHasBeenSet = true; m_flowAliasIdentifier = std::move(value); }
67 inline void SetFlowAliasIdentifier(const char* value) { m_flowAliasIdentifierHasBeenSet = true; m_flowAliasIdentifier.assign(value); }
68 inline InvokeFlowRequest& WithFlowAliasIdentifier(const Aws::String& value) { SetFlowAliasIdentifier(value); return *this;}
69 inline InvokeFlowRequest& WithFlowAliasIdentifier(Aws::String&& value) { SetFlowAliasIdentifier(std::move(value)); return *this;}
70 inline InvokeFlowRequest& WithFlowAliasIdentifier(const char* value) { SetFlowAliasIdentifier(value); return *this;}
72
74
77 inline const Aws::String& GetFlowIdentifier() const{ return m_flowIdentifier; }
78 inline bool FlowIdentifierHasBeenSet() const { return m_flowIdentifierHasBeenSet; }
79 inline void SetFlowIdentifier(const Aws::String& value) { m_flowIdentifierHasBeenSet = true; m_flowIdentifier = value; }
80 inline void SetFlowIdentifier(Aws::String&& value) { m_flowIdentifierHasBeenSet = true; m_flowIdentifier = std::move(value); }
81 inline void SetFlowIdentifier(const char* value) { m_flowIdentifierHasBeenSet = true; m_flowIdentifier.assign(value); }
82 inline InvokeFlowRequest& WithFlowIdentifier(const Aws::String& value) { SetFlowIdentifier(value); return *this;}
83 inline InvokeFlowRequest& WithFlowIdentifier(Aws::String&& value) { SetFlowIdentifier(std::move(value)); return *this;}
84 inline InvokeFlowRequest& WithFlowIdentifier(const char* value) { SetFlowIdentifier(value); return *this;}
86
88
92 inline const Aws::Vector<FlowInput>& GetInputs() const{ return m_inputs; }
93 inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
94 inline void SetInputs(const Aws::Vector<FlowInput>& value) { m_inputsHasBeenSet = true; m_inputs = value; }
95 inline void SetInputs(Aws::Vector<FlowInput>&& value) { m_inputsHasBeenSet = true; m_inputs = std::move(value); }
96 inline InvokeFlowRequest& WithInputs(const Aws::Vector<FlowInput>& value) { SetInputs(value); return *this;}
97 inline InvokeFlowRequest& WithInputs(Aws::Vector<FlowInput>&& value) { SetInputs(std::move(value)); return *this;}
98 inline InvokeFlowRequest& AddInputs(const FlowInput& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
99 inline InvokeFlowRequest& AddInputs(FlowInput&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; }
101 private:
102
103 Aws::String m_flowAliasIdentifier;
104 bool m_flowAliasIdentifierHasBeenSet = false;
105
106 Aws::String m_flowIdentifier;
107 bool m_flowIdentifierHasBeenSet = false;
108
109 Aws::Vector<FlowInput> m_inputs;
110 bool m_inputsHasBeenSet = false;
111 InvokeFlowHandler m_handler;
113
114 };
115
116} // namespace Model
117} // namespace BedrockAgentRuntime
118} // namespace Aws
InvokeFlowRequest & AddInputs(const FlowInput &value)
InvokeFlowRequest & WithInputs(Aws::Vector< FlowInput > &&value)
void SetFlowAliasIdentifier(const Aws::String &value)
const InvokeFlowHandler & GetEventStreamHandler() const
InvokeFlowRequest & WithFlowAliasIdentifier(const char *value)
void SetInputs(Aws::Vector< FlowInput > &&value)
InvokeFlowRequest & WithInputs(const Aws::Vector< FlowInput > &value)
InvokeFlowRequest & WithFlowIdentifier(const char *value)
const Aws::Vector< FlowInput > & GetInputs() const
AWS_BEDROCKAGENTRUNTIME_API InvokeFlowRequest()
AWS_BEDROCKAGENTRUNTIME_API Aws::String SerializePayload() const override
InvokeFlowRequest & AddInputs(FlowInput &&value)
InvokeFlowRequest & WithFlowIdentifier(Aws::String &&value)
void SetInputs(const Aws::Vector< FlowInput > &value)
InvokeFlowRequest & WithFlowAliasIdentifier(const Aws::String &value)
InvokeFlowRequest & WithFlowAliasIdentifier(Aws::String &&value)
Aws::Utils::Event::EventStreamDecoder & GetEventStreamDecoder()
InvokeFlowRequest & WithFlowIdentifier(const Aws::String &value)
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