AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InlineAgentTracePart.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 InlineAgentTracePart() = default;
45 AWS_BEDROCKAGENTRUNTIME_API InlineAgentTracePart(Aws::Utils::Json::JsonView jsonValue);
46 AWS_BEDROCKAGENTRUNTIME_API InlineAgentTracePart& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::Vector<Caller>& GetCallerChain() const { return m_callerChain; }
55 inline bool CallerChainHasBeenSet() const { return m_callerChainHasBeenSet; }
56 template<typename CallerChainT = Aws::Vector<Caller>>
57 void SetCallerChain(CallerChainT&& value) { m_callerChainHasBeenSet = true; m_callerChain = std::forward<CallerChainT>(value); }
58 template<typename CallerChainT = Aws::Vector<Caller>>
59 InlineAgentTracePart& WithCallerChain(CallerChainT&& value) { SetCallerChain(std::forward<CallerChainT>(value)); return *this;}
60 template<typename CallerChainT = Caller>
61 InlineAgentTracePart& AddCallerChain(CallerChainT&& value) { m_callerChainHasBeenSet = true; m_callerChain.emplace_back(std::forward<CallerChainT>(value)); return *this; }
63
65
68 inline const Aws::String& GetCollaboratorName() const { return m_collaboratorName; }
69 inline bool CollaboratorNameHasBeenSet() const { return m_collaboratorNameHasBeenSet; }
70 template<typename CollaboratorNameT = Aws::String>
71 void SetCollaboratorName(CollaboratorNameT&& value) { m_collaboratorNameHasBeenSet = true; m_collaboratorName = std::forward<CollaboratorNameT>(value); }
72 template<typename CollaboratorNameT = Aws::String>
73 InlineAgentTracePart& WithCollaboratorName(CollaboratorNameT&& value) { SetCollaboratorName(std::forward<CollaboratorNameT>(value)); return *this;}
75
77
80 inline const Aws::Utils::DateTime& GetEventTime() const { return m_eventTime; }
81 inline bool EventTimeHasBeenSet() const { return m_eventTimeHasBeenSet; }
82 template<typename EventTimeT = Aws::Utils::DateTime>
83 void SetEventTime(EventTimeT&& value) { m_eventTimeHasBeenSet = true; m_eventTime = std::forward<EventTimeT>(value); }
84 template<typename EventTimeT = Aws::Utils::DateTime>
85 InlineAgentTracePart& WithEventTime(EventTimeT&& value) { SetEventTime(std::forward<EventTimeT>(value)); return *this;}
87
89
92 inline const Aws::String& GetSessionId() const { return m_sessionId; }
93 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
94 template<typename SessionIdT = Aws::String>
95 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
96 template<typename SessionIdT = Aws::String>
97 InlineAgentTracePart& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
99
101
109 inline const Trace& GetTrace() const { return m_trace; }
110 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
111 template<typename TraceT = Trace>
112 void SetTrace(TraceT&& value) { m_traceHasBeenSet = true; m_trace = std::forward<TraceT>(value); }
113 template<typename TraceT = Trace>
114 InlineAgentTracePart& WithTrace(TraceT&& value) { SetTrace(std::forward<TraceT>(value)); return *this;}
116 private:
117
118 Aws::Vector<Caller> m_callerChain;
119 bool m_callerChainHasBeenSet = false;
120
121 Aws::String m_collaboratorName;
122 bool m_collaboratorNameHasBeenSet = false;
123
124 Aws::Utils::DateTime m_eventTime{};
125 bool m_eventTimeHasBeenSet = false;
126
127 Aws::String m_sessionId;
128 bool m_sessionIdHasBeenSet = false;
129
130 Trace m_trace;
131 bool m_traceHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace BedrockAgentRuntime
136} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue