AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TracePart.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/bedrock-agent-runtime/model/Trace.h>
12#include <aws/bedrock-agent-runtime/model/Caller.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BedrockAgentRuntime
26{
27namespace Model
28{
29
42 {
43 public:
44 AWS_BEDROCKAGENTRUNTIME_API TracePart() = default;
45 AWS_BEDROCKAGENTRUNTIME_API TracePart(Aws::Utils::Json::JsonView jsonValue);
46 AWS_BEDROCKAGENTRUNTIME_API TracePart& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::String& GetAgentAliasId() const { return m_agentAliasId; }
55 inline bool AgentAliasIdHasBeenSet() const { return m_agentAliasIdHasBeenSet; }
56 template<typename AgentAliasIdT = Aws::String>
57 void SetAgentAliasId(AgentAliasIdT&& value) { m_agentAliasIdHasBeenSet = true; m_agentAliasId = std::forward<AgentAliasIdT>(value); }
58 template<typename AgentAliasIdT = Aws::String>
59 TracePart& WithAgentAliasId(AgentAliasIdT&& value) { SetAgentAliasId(std::forward<AgentAliasIdT>(value)); return *this;}
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) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
70 template<typename AgentIdT = Aws::String>
71 TracePart& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
73
75
78 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
79 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
80 template<typename AgentVersionT = Aws::String>
81 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
82 template<typename AgentVersionT = Aws::String>
83 TracePart& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
85
87
90 inline const Aws::Vector<Caller>& GetCallerChain() const { return m_callerChain; }
91 inline bool CallerChainHasBeenSet() const { return m_callerChainHasBeenSet; }
92 template<typename CallerChainT = Aws::Vector<Caller>>
93 void SetCallerChain(CallerChainT&& value) { m_callerChainHasBeenSet = true; m_callerChain = std::forward<CallerChainT>(value); }
94 template<typename CallerChainT = Aws::Vector<Caller>>
95 TracePart& WithCallerChain(CallerChainT&& value) { SetCallerChain(std::forward<CallerChainT>(value)); return *this;}
96 template<typename CallerChainT = Caller>
97 TracePart& AddCallerChain(CallerChainT&& value) { m_callerChainHasBeenSet = true; m_callerChain.emplace_back(std::forward<CallerChainT>(value)); return *this; }
99
101
104 inline const Aws::String& GetCollaboratorName() const { return m_collaboratorName; }
105 inline bool CollaboratorNameHasBeenSet() const { return m_collaboratorNameHasBeenSet; }
106 template<typename CollaboratorNameT = Aws::String>
107 void SetCollaboratorName(CollaboratorNameT&& value) { m_collaboratorNameHasBeenSet = true; m_collaboratorName = std::forward<CollaboratorNameT>(value); }
108 template<typename CollaboratorNameT = Aws::String>
109 TracePart& WithCollaboratorName(CollaboratorNameT&& value) { SetCollaboratorName(std::forward<CollaboratorNameT>(value)); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
117 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
118 template<typename EventTimeT = Aws::Utils::DateTime>
119 void SetEventTime(EventTimeT&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::forward<EventTimeT>(value); }
120 template<typename EventTimeT = Aws::Utils::DateTime>
121 TracePart& WithEventTime(EventTimeT&& value) { SetEventTime(std::forward<EventTimeT>(value)); return *this;}
123
125
128 inline const Aws::String& GetSessionId() const { return m_sessionId; }
129 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
130 template<typename SessionIdT = Aws::String>
131 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
132 template<typename SessionIdT = Aws::String>
133 TracePart& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
135
137
145 inline const Trace& GetTrace() const { return m_trace; }
146 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
147 template<typename TraceT = Trace>
148 void SetTrace(TraceT&& value) { m_traceHasBeenSet = true; m_trace = std::forward<TraceT>(value); }
149 template<typename TraceT = Trace>
150 TracePart& WithTrace(TraceT&& value) { SetTrace(std::forward<TraceT>(value)); return *this;}
152 private:
153
154 Aws::String m_agentAliasId;
155 bool m_agentAliasIdHasBeenSet = false;
156
157 Aws::String m_agentId;
158 bool m_agentIdHasBeenSet = false;
159
160 Aws::String m_agentVersion;
161 bool m_agentVersionHasBeenSet = false;
162
163 Aws::Vector<Caller> m_callerChain;
164 bool m_callerChainHasBeenSet = false;
165
166 Aws::String m_collaboratorName;
167 bool m_collaboratorNameHasBeenSet = false;
168
169 Aws::Utils::DateTime m_eventTime{};
170 bool m_eventTimeHasBeenSet = false;
171
172 Aws::String m_sessionId;
173 bool m_sessionIdHasBeenSet = false;
174
175 Trace m_trace;
176 bool m_traceHasBeenSet = false;
177 };
178
179} // namespace Model
180} // namespace BedrockAgentRuntime
181} // namespace Aws
const Aws::String & GetAgentAliasId() const
Definition TracePart.h:54
TracePart & WithCollaboratorName(CollaboratorNameT &&value)
Definition TracePart.h:109
const Aws::Vector< Caller > & GetCallerChain() const
Definition TracePart.h:90
const Aws::String & GetSessionId() const
Definition TracePart.h:128
const Aws::Utils::DateTime & GetEventTime() const
Definition TracePart.h:116
const Aws::String & GetAgentVersion() const
Definition TracePart.h:78
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSessionId(SessionIdT &&value)
Definition TracePart.h:131
void SetAgentAliasId(AgentAliasIdT &&value)
Definition TracePart.h:57
AWS_BEDROCKAGENTRUNTIME_API TracePart & operator=(Aws::Utils::Json::JsonView jsonValue)
TracePart & WithTrace(TraceT &&value)
Definition TracePart.h:150
void SetEventTime(EventTimeT &&value)
Definition TracePart.h:119
TracePart & AddCallerChain(CallerChainT &&value)
Definition TracePart.h:97
TracePart & WithEventTime(EventTimeT &&value)
Definition TracePart.h:121
AWS_BEDROCKAGENTRUNTIME_API TracePart(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCollaboratorName() const
Definition TracePart.h:104
void SetCollaboratorName(CollaboratorNameT &&value)
Definition TracePart.h:107
TracePart & WithSessionId(SessionIdT &&value)
Definition TracePart.h:133
TracePart & WithAgentAliasId(AgentAliasIdT &&value)
Definition TracePart.h:59
void SetCallerChain(CallerChainT &&value)
Definition TracePart.h:93
TracePart & WithAgentId(AgentIdT &&value)
Definition TracePart.h:71
const Aws::String & GetAgentId() const
Definition TracePart.h:66
void SetAgentVersion(AgentVersionT &&value)
Definition TracePart.h:81
AWS_BEDROCKAGENTRUNTIME_API TracePart()=default
TracePart & WithAgentVersion(AgentVersionT &&value)
Definition TracePart.h:83
TracePart & WithCallerChain(CallerChainT &&value)
Definition TracePart.h:95
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue