AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
TracePart.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/Caller.h>
9#include <aws/bedrock-agent-runtime/model/Trace.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.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
37class TracePart {
38 public:
39 AWS_BEDROCKAGENTRUNTIME_API TracePart() = default;
40 AWS_BEDROCKAGENTRUNTIME_API TracePart(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetAgentAliasId() const { return m_agentAliasId; }
49 inline bool AgentAliasIdHasBeenSet() const { return m_agentAliasIdHasBeenSet; }
50 template <typename AgentAliasIdT = Aws::String>
52 m_agentAliasIdHasBeenSet = true;
53 m_agentAliasId = std::forward<AgentAliasIdT>(value);
54 }
55 template <typename AgentAliasIdT = Aws::String>
57 SetAgentAliasId(std::forward<AgentAliasIdT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetAgentId() const { return m_agentId; }
67 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
68 template <typename AgentIdT = Aws::String>
69 void SetAgentId(AgentIdT&& value) {
70 m_agentIdHasBeenSet = true;
71 m_agentId = std::forward<AgentIdT>(value);
72 }
73 template <typename AgentIdT = Aws::String>
75 SetAgentId(std::forward<AgentIdT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
85 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
86 template <typename AgentVersionT = Aws::String>
88 m_agentVersionHasBeenSet = true;
89 m_agentVersion = std::forward<AgentVersionT>(value);
90 }
91 template <typename AgentVersionT = Aws::String>
93 SetAgentVersion(std::forward<AgentVersionT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Vector<Caller>& GetCallerChain() const { return m_callerChain; }
103 inline bool CallerChainHasBeenSet() const { return m_callerChainHasBeenSet; }
104 template <typename CallerChainT = Aws::Vector<Caller>>
106 m_callerChainHasBeenSet = true;
107 m_callerChain = std::forward<CallerChainT>(value);
108 }
109 template <typename CallerChainT = Aws::Vector<Caller>>
111 SetCallerChain(std::forward<CallerChainT>(value));
112 return *this;
113 }
114 template <typename CallerChainT = Caller>
116 m_callerChainHasBeenSet = true;
117 m_callerChain.emplace_back(std::forward<CallerChainT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetCollaboratorName() const { return m_collaboratorName; }
127 inline bool CollaboratorNameHasBeenSet() const { return m_collaboratorNameHasBeenSet; }
128 template <typename CollaboratorNameT = Aws::String>
130 m_collaboratorNameHasBeenSet = true;
131 m_collaboratorName = std::forward<CollaboratorNameT>(value);
132 }
133 template <typename CollaboratorNameT = Aws::String>
135 SetCollaboratorName(std::forward<CollaboratorNameT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
145 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
146 template <typename EventTimeT = Aws::Utils::DateTime>
147 void SetEventTime(EventTimeT&& value) {
148 m_eventTimeHasBeenSet = true;
149 m_eventTime = std::forward<EventTimeT>(value);
150 }
151 template <typename EventTimeT = Aws::Utils::DateTime>
153 SetEventTime(std::forward<EventTimeT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetSessionId() const { return m_sessionId; }
163 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
164 template <typename SessionIdT = Aws::String>
165 void SetSessionId(SessionIdT&& value) {
166 m_sessionIdHasBeenSet = true;
167 m_sessionId = std::forward<SessionIdT>(value);
168 }
169 template <typename SessionIdT = Aws::String>
171 SetSessionId(std::forward<SessionIdT>(value));
172 return *this;
173 }
175
177
185 inline const Trace& GetTrace() const { return m_trace; }
186 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
187 template <typename TraceT = Trace>
188 void SetTrace(TraceT&& value) {
189 m_traceHasBeenSet = true;
190 m_trace = std::forward<TraceT>(value);
191 }
192 template <typename TraceT = Trace>
194 SetTrace(std::forward<TraceT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_agentAliasId;
200
201 Aws::String m_agentId;
202
203 Aws::String m_agentVersion;
204
205 Aws::Vector<Caller> m_callerChain;
206
207 Aws::String m_collaboratorName;
208
209 Aws::Utils::DateTime m_eventTime{};
210
211 Aws::String m_sessionId;
212
213 Trace m_trace;
214 bool m_agentAliasIdHasBeenSet = false;
215 bool m_agentIdHasBeenSet = false;
216 bool m_agentVersionHasBeenSet = false;
217 bool m_callerChainHasBeenSet = false;
218 bool m_collaboratorNameHasBeenSet = false;
219 bool m_eventTimeHasBeenSet = false;
220 bool m_sessionIdHasBeenSet = false;
221 bool m_traceHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace BedrockAgentRuntime
226} // namespace Aws
const Aws::String & GetAgentAliasId() const
Definition TracePart.h:48
TracePart & WithCollaboratorName(CollaboratorNameT &&value)
Definition TracePart.h:134
const Aws::Vector< Caller > & GetCallerChain() const
Definition TracePart.h:102
const Aws::String & GetSessionId() const
Definition TracePart.h:162
const Aws::Utils::DateTime & GetEventTime() const
Definition TracePart.h:144
const Aws::String & GetAgentVersion() const
Definition TracePart.h:84
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSessionId(SessionIdT &&value)
Definition TracePart.h:165
void SetAgentAliasId(AgentAliasIdT &&value)
Definition TracePart.h:51
AWS_BEDROCKAGENTRUNTIME_API TracePart & operator=(Aws::Utils::Json::JsonView jsonValue)
TracePart & WithTrace(TraceT &&value)
Definition TracePart.h:193
void SetEventTime(EventTimeT &&value)
Definition TracePart.h:147
TracePart & AddCallerChain(CallerChainT &&value)
Definition TracePart.h:115
TracePart & WithEventTime(EventTimeT &&value)
Definition TracePart.h:152
AWS_BEDROCKAGENTRUNTIME_API TracePart(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCollaboratorName() const
Definition TracePart.h:126
void SetCollaboratorName(CollaboratorNameT &&value)
Definition TracePart.h:129
TracePart & WithSessionId(SessionIdT &&value)
Definition TracePart.h:170
TracePart & WithAgentAliasId(AgentAliasIdT &&value)
Definition TracePart.h:56
void SetCallerChain(CallerChainT &&value)
Definition TracePart.h:105
TracePart & WithAgentId(AgentIdT &&value)
Definition TracePart.h:74
const Aws::String & GetAgentId() const
Definition TracePart.h:66
void SetAgentVersion(AgentVersionT &&value)
Definition TracePart.h:87
AWS_BEDROCKAGENTRUNTIME_API TracePart()=default
TracePart & WithAgentVersion(AgentVersionT &&value)
Definition TracePart.h:92
TracePart & WithCallerChain(CallerChainT &&value)
Definition TracePart.h:110
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