AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
OrchestrationTrace.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/InvocationInput.h>
9#include <aws/bedrock-agent-runtime/model/ModelInvocationInput.h>
10#include <aws/bedrock-agent-runtime/model/Observation.h>
11#include <aws/bedrock-agent-runtime/model/OrchestrationModelInvocationOutput.h>
12#include <aws/bedrock-agent-runtime/model/Rationale.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentRuntime {
24namespace Model {
25
34 public:
35 AWS_BEDROCKAGENTRUNTIME_API OrchestrationTrace() = default;
38 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const InvocationInput& GetInvocationInput() const { return m_invocationInput; }
46 inline bool InvocationInputHasBeenSet() const { return m_invocationInputHasBeenSet; }
47 template <typename InvocationInputT = InvocationInput>
49 m_invocationInputHasBeenSet = true;
50 m_invocationInput = std::forward<InvocationInputT>(value);
51 }
52 template <typename InvocationInputT = InvocationInput>
54 SetInvocationInput(std::forward<InvocationInputT>(value));
55 return *this;
56 }
58
60
69 inline const ModelInvocationInput& GetModelInvocationInput() const { return m_modelInvocationInput; }
70 inline bool ModelInvocationInputHasBeenSet() const { return m_modelInvocationInputHasBeenSet; }
71 template <typename ModelInvocationInputT = ModelInvocationInput>
73 m_modelInvocationInputHasBeenSet = true;
74 m_modelInvocationInput = std::forward<ModelInvocationInputT>(value);
75 }
76 template <typename ModelInvocationInputT = ModelInvocationInput>
78 SetModelInvocationInput(std::forward<ModelInvocationInputT>(value));
79 return *this;
80 }
82
84
88 inline const OrchestrationModelInvocationOutput& GetModelInvocationOutput() const { return m_modelInvocationOutput; }
89 inline bool ModelInvocationOutputHasBeenSet() const { return m_modelInvocationOutputHasBeenSet; }
90 template <typename ModelInvocationOutputT = OrchestrationModelInvocationOutput>
92 m_modelInvocationOutputHasBeenSet = true;
93 m_modelInvocationOutput = std::forward<ModelInvocationOutputT>(value);
94 }
95 template <typename ModelInvocationOutputT = OrchestrationModelInvocationOutput>
97 SetModelInvocationOutput(std::forward<ModelInvocationOutputT>(value));
98 return *this;
99 }
101
103
107 inline const Observation& GetObservation() const { return m_observation; }
108 inline bool ObservationHasBeenSet() const { return m_observationHasBeenSet; }
109 template <typename ObservationT = Observation>
111 m_observationHasBeenSet = true;
112 m_observation = std::forward<ObservationT>(value);
113 }
114 template <typename ObservationT = Observation>
116 SetObservation(std::forward<ObservationT>(value));
117 return *this;
118 }
120
122
127 inline const Rationale& GetRationale() const { return m_rationale; }
128 inline bool RationaleHasBeenSet() const { return m_rationaleHasBeenSet; }
129 template <typename RationaleT = Rationale>
130 void SetRationale(RationaleT&& value) {
131 m_rationaleHasBeenSet = true;
132 m_rationale = std::forward<RationaleT>(value);
133 }
134 template <typename RationaleT = Rationale>
136 SetRationale(std::forward<RationaleT>(value));
137 return *this;
138 }
140 private:
141 InvocationInput m_invocationInput;
142
143 ModelInvocationInput m_modelInvocationInput;
144
145 OrchestrationModelInvocationOutput m_modelInvocationOutput;
146
147 Observation m_observation;
148
149 Rationale m_rationale;
150 bool m_invocationInputHasBeenSet = false;
151 bool m_modelInvocationInputHasBeenSet = false;
152 bool m_modelInvocationOutputHasBeenSet = false;
153 bool m_observationHasBeenSet = false;
154 bool m_rationaleHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace BedrockAgentRuntime
159} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const OrchestrationModelInvocationOutput & GetModelInvocationOutput() const
const ModelInvocationInput & GetModelInvocationInput() const
AWS_BEDROCKAGENTRUNTIME_API OrchestrationTrace(Aws::Utils::Json::JsonView jsonValue)
OrchestrationTrace & WithModelInvocationOutput(ModelInvocationOutputT &&value)
void SetModelInvocationOutput(ModelInvocationOutputT &&value)
OrchestrationTrace & WithInvocationInput(InvocationInputT &&value)
AWS_BEDROCKAGENTRUNTIME_API OrchestrationTrace & operator=(Aws::Utils::Json::JsonView jsonValue)
OrchestrationTrace & WithRationale(RationaleT &&value)
AWS_BEDROCKAGENTRUNTIME_API OrchestrationTrace()=default
void SetModelInvocationInput(ModelInvocationInputT &&value)
OrchestrationTrace & WithObservation(ObservationT &&value)
OrchestrationTrace & WithModelInvocationInput(ModelInvocationInputT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue