AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetFlowExecutionResult.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/FlowExecutionError.h>
9#include <aws/bedrock-agent-runtime/model/FlowExecutionStatus.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace BedrockAgentRuntime {
27namespace Model {
29 public:
30 AWS_BEDROCKAGENTRUNTIME_API GetFlowExecutionResult() = default;
33
35
39 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
40 template <typename EndedAtT = Aws::Utils::DateTime>
41 void SetEndedAt(EndedAtT&& value) {
42 m_endedAtHasBeenSet = true;
43 m_endedAt = std::forward<EndedAtT>(value);
44 }
45 template <typename EndedAtT = Aws::Utils::DateTime>
47 SetEndedAt(std::forward<EndedAtT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::Vector<FlowExecutionError>& GetErrors() const { return m_errors; }
59 template <typename ErrorsT = Aws::Vector<FlowExecutionError>>
60 void SetErrors(ErrorsT&& value) {
61 m_errorsHasBeenSet = true;
62 m_errors = std::forward<ErrorsT>(value);
63 }
64 template <typename ErrorsT = Aws::Vector<FlowExecutionError>>
66 SetErrors(std::forward<ErrorsT>(value));
67 return *this;
68 }
69 template <typename ErrorsT = FlowExecutionError>
71 m_errorsHasBeenSet = true;
72 m_errors.emplace_back(std::forward<ErrorsT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetExecutionArn() const { return m_executionArn; }
83 template <typename ExecutionArnT = Aws::String>
85 m_executionArnHasBeenSet = true;
86 m_executionArn = std::forward<ExecutionArnT>(value);
87 }
88 template <typename ExecutionArnT = Aws::String>
90 SetExecutionArn(std::forward<ExecutionArnT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetFlowAliasIdentifier() const { return m_flowAliasIdentifier; }
100 template <typename FlowAliasIdentifierT = Aws::String>
102 m_flowAliasIdentifierHasBeenSet = true;
103 m_flowAliasIdentifier = std::forward<FlowAliasIdentifierT>(value);
104 }
105 template <typename FlowAliasIdentifierT = Aws::String>
107 SetFlowAliasIdentifier(std::forward<FlowAliasIdentifierT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetFlowIdentifier() const { return m_flowIdentifier; }
117 template <typename FlowIdentifierT = Aws::String>
119 m_flowIdentifierHasBeenSet = true;
120 m_flowIdentifier = std::forward<FlowIdentifierT>(value);
121 }
122 template <typename FlowIdentifierT = Aws::String>
124 SetFlowIdentifier(std::forward<FlowIdentifierT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetFlowVersion() const { return m_flowVersion; }
134 template <typename FlowVersionT = Aws::String>
136 m_flowVersionHasBeenSet = true;
137 m_flowVersion = std::forward<FlowVersionT>(value);
138 }
139 template <typename FlowVersionT = Aws::String>
141 SetFlowVersion(std::forward<FlowVersionT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
151 template <typename StartedAtT = Aws::Utils::DateTime>
152 void SetStartedAt(StartedAtT&& value) {
153 m_startedAtHasBeenSet = true;
154 m_startedAt = std::forward<StartedAtT>(value);
155 }
156 template <typename StartedAtT = Aws::Utils::DateTime>
158 SetStartedAt(std::forward<StartedAtT>(value));
159 return *this;
160 }
162
164
168 inline FlowExecutionStatus GetStatus() const { return m_status; }
169 inline void SetStatus(FlowExecutionStatus value) {
170 m_statusHasBeenSet = true;
171 m_status = value;
172 }
174 SetStatus(value);
175 return *this;
176 }
178
180
181 inline const Aws::String& GetRequestId() const { return m_requestId; }
182 template <typename RequestIdT = Aws::String>
183 void SetRequestId(RequestIdT&& value) {
184 m_requestIdHasBeenSet = true;
185 m_requestId = std::forward<RequestIdT>(value);
186 }
187 template <typename RequestIdT = Aws::String>
189 SetRequestId(std::forward<RequestIdT>(value));
190 return *this;
191 }
193 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
194
195 private:
196 Aws::Utils::DateTime m_endedAt{};
197
199
200 Aws::String m_executionArn;
201
202 Aws::String m_flowAliasIdentifier;
203
204 Aws::String m_flowIdentifier;
205
206 Aws::String m_flowVersion;
207
208 Aws::Utils::DateTime m_startedAt{};
209
211
212 Aws::String m_requestId;
213 Aws::Http::HttpResponseCode m_HttpResponseCode;
214 bool m_endedAtHasBeenSet = false;
215 bool m_errorsHasBeenSet = false;
216 bool m_executionArnHasBeenSet = false;
217 bool m_flowAliasIdentifierHasBeenSet = false;
218 bool m_flowIdentifierHasBeenSet = false;
219 bool m_flowVersionHasBeenSet = false;
220 bool m_startedAtHasBeenSet = false;
221 bool m_statusHasBeenSet = false;
222 bool m_requestIdHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace BedrockAgentRuntime
227} // namespace Aws
GetFlowExecutionResult & WithExecutionArn(ExecutionArnT &&value)
GetFlowExecutionResult & WithFlowIdentifier(FlowIdentifierT &&value)
GetFlowExecutionResult & AddErrors(ErrorsT &&value)
GetFlowExecutionResult & WithStatus(FlowExecutionStatus value)
GetFlowExecutionResult & WithStartedAt(StartedAtT &&value)
GetFlowExecutionResult & WithFlowVersion(FlowVersionT &&value)
AWS_BEDROCKAGENTRUNTIME_API GetFlowExecutionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BEDROCKAGENTRUNTIME_API GetFlowExecutionResult()=default
GetFlowExecutionResult & WithFlowAliasIdentifier(FlowAliasIdentifierT &&value)
AWS_BEDROCKAGENTRUNTIME_API GetFlowExecutionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFlowExecutionResult & WithRequestId(RequestIdT &&value)
GetFlowExecutionResult & WithEndedAt(EndedAtT &&value)
const Aws::Vector< FlowExecutionError > & GetErrors() const
GetFlowExecutionResult & WithErrors(ErrorsT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue