AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
InlineAgentTracePart.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
38 public:
39 AWS_BEDROCKAGENTRUNTIME_API InlineAgentTracePart() = default;
42 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::Vector<Caller>& GetCallerChain() const { return m_callerChain; }
49 inline bool CallerChainHasBeenSet() const { return m_callerChainHasBeenSet; }
50 template <typename CallerChainT = Aws::Vector<Caller>>
52 m_callerChainHasBeenSet = true;
53 m_callerChain = std::forward<CallerChainT>(value);
54 }
55 template <typename CallerChainT = Aws::Vector<Caller>>
57 SetCallerChain(std::forward<CallerChainT>(value));
58 return *this;
59 }
60 template <typename CallerChainT = Caller>
62 m_callerChainHasBeenSet = true;
63 m_callerChain.emplace_back(std::forward<CallerChainT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetCollaboratorName() const { return m_collaboratorName; }
73 inline bool CollaboratorNameHasBeenSet() const { return m_collaboratorNameHasBeenSet; }
74 template <typename CollaboratorNameT = Aws::String>
76 m_collaboratorNameHasBeenSet = true;
77 m_collaboratorName = std::forward<CollaboratorNameT>(value);
78 }
79 template <typename CollaboratorNameT = Aws::String>
81 SetCollaboratorName(std::forward<CollaboratorNameT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
91 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
92 template <typename EventTimeT = Aws::Utils::DateTime>
93 void SetEventTime(EventTimeT&& value) {
94 m_eventTimeHasBeenSet = true;
95 m_eventTime = std::forward<EventTimeT>(value);
96 }
97 template <typename EventTimeT = Aws::Utils::DateTime>
99 SetEventTime(std::forward<EventTimeT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetSessionId() const { return m_sessionId; }
109 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
110 template <typename SessionIdT = Aws::String>
111 void SetSessionId(SessionIdT&& value) {
112 m_sessionIdHasBeenSet = true;
113 m_sessionId = std::forward<SessionIdT>(value);
114 }
115 template <typename SessionIdT = Aws::String>
117 SetSessionId(std::forward<SessionIdT>(value));
118 return *this;
119 }
121
123
131 inline const Trace& GetTrace() const { return m_trace; }
132 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
133 template <typename TraceT = Trace>
134 void SetTrace(TraceT&& value) {
135 m_traceHasBeenSet = true;
136 m_trace = std::forward<TraceT>(value);
137 }
138 template <typename TraceT = Trace>
140 SetTrace(std::forward<TraceT>(value));
141 return *this;
142 }
144 private:
145 Aws::Vector<Caller> m_callerChain;
146
147 Aws::String m_collaboratorName;
148
149 Aws::Utils::DateTime m_eventTime{};
150
151 Aws::String m_sessionId;
152
153 Trace m_trace;
154 bool m_callerChainHasBeenSet = false;
155 bool m_collaboratorNameHasBeenSet = false;
156 bool m_eventTimeHasBeenSet = false;
157 bool m_sessionIdHasBeenSet = false;
158 bool m_traceHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace BedrockAgentRuntime
163} // namespace Aws
const Aws::Vector< Caller > & GetCallerChain() const
InlineAgentTracePart & WithCollaboratorName(CollaboratorNameT &&value)
InlineAgentTracePart & WithCallerChain(CallerChainT &&value)
InlineAgentTracePart & WithEventTime(EventTimeT &&value)
InlineAgentTracePart & AddCallerChain(CallerChainT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API InlineAgentTracePart(Aws::Utils::Json::JsonView jsonValue)
InlineAgentTracePart & WithSessionId(SessionIdT &&value)
AWS_BEDROCKAGENTRUNTIME_API InlineAgentTracePart()=default
AWS_BEDROCKAGENTRUNTIME_API InlineAgentTracePart & operator=(Aws::Utils::Json::JsonView jsonValue)
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