7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/SpanAttributes.h>
11#include <aws/qconnect/model/SpanStatus.h>
12#include <aws/qconnect/model/SpanType.h>
34 AWS_QCONNECT_API
Span() =
default;
45 template <
typename SpanIdT = Aws::String>
47 m_spanIdHasBeenSet =
true;
48 m_spanId = std::forward<SpanIdT>(value);
50 template <
typename SpanIdT = Aws::String>
63 template <
typename AssistantIdT = Aws::String>
65 m_assistantIdHasBeenSet =
true;
66 m_assistantId = std::forward<AssistantIdT>(value);
68 template <
typename AssistantIdT = Aws::String>
81 template <
typename SessionIdT = Aws::String>
83 m_sessionIdHasBeenSet =
true;
84 m_sessionId = std::forward<SessionIdT>(value);
86 template <
typename SessionIdT = Aws::String>
99 template <
typename ParentSpanIdT = Aws::String>
101 m_parentSpanIdHasBeenSet =
true;
102 m_parentSpanId = std::forward<ParentSpanIdT>(value);
104 template <
typename ParentSpanIdT = Aws::String>
117 template <
typename SpanNameT = Aws::String>
119 m_spanNameHasBeenSet =
true;
120 m_spanName = std::forward<SpanNameT>(value);
122 template <
typename SpanNameT = Aws::String>
136 m_spanTypeHasBeenSet =
true;
151 template <
typename StartTimestampT = Aws::Utils::DateTime>
153 m_startTimestampHasBeenSet =
true;
154 m_startTimestamp = std::forward<StartTimestampT>(value);
156 template <
typename StartTimestampT = Aws::Utils::DateTime>
169 template <
typename EndTimestampT = Aws::Utils::DateTime>
171 m_endTimestampHasBeenSet =
true;
172 m_endTimestamp = std::forward<EndTimestampT>(value);
174 template <
typename EndTimestampT = Aws::Utils::DateTime>
188 m_statusHasBeenSet =
true;
203 template <
typename RequestIdT = Aws::String>
205 m_requestIdHasBeenSet =
true;
206 m_requestId = std::forward<RequestIdT>(value);
208 template <
typename RequestIdT = Aws::String>
221 template <
typename AttributesT = SpanAttributes>
223 m_attributesHasBeenSet =
true;
224 m_attributes = std::forward<AttributesT>(value);
226 template <
typename AttributesT = SpanAttributes>
253 SpanAttributes m_attributes;
254 bool m_spanIdHasBeenSet =
false;
255 bool m_assistantIdHasBeenSet =
false;
256 bool m_sessionIdHasBeenSet =
false;
257 bool m_parentSpanIdHasBeenSet =
false;
258 bool m_spanNameHasBeenSet =
false;
259 bool m_spanTypeHasBeenSet =
false;
260 bool m_startTimestampHasBeenSet =
false;
261 bool m_endTimestampHasBeenSet =
false;
262 bool m_statusHasBeenSet =
false;
263 bool m_requestIdHasBeenSet =
false;
264 bool m_attributesHasBeenSet =
false;
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
bool EndTimestampHasBeenSet() const
void SetRequestId(RequestIdT &&value)
void SetSpanId(SpanIdT &&value)
SpanStatus GetStatus() const
bool AssistantIdHasBeenSet() const
void SetSpanType(SpanType value)
void SetSpanName(SpanNameT &&value)
bool RequestIdHasBeenSet() const
AWS_QCONNECT_API Span & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEndTimestamp(EndTimestampT &&value)
const Aws::Utils::DateTime & GetEndTimestamp() const
AWS_QCONNECT_API Span(Aws::Utils::Json::JsonView jsonValue)
bool StatusHasBeenSet() const
Span & WithStatus(SpanStatus value)
const Aws::Utils::DateTime & GetStartTimestamp() const
bool ParentSpanIdHasBeenSet() const
AWS_QCONNECT_API Span()=default
Span & WithEndTimestamp(EndTimestampT &&value)
void SetAttributes(AttributesT &&value)
void SetStartTimestamp(StartTimestampT &&value)
Span & WithSpanName(SpanNameT &&value)
Span & WithRequestId(RequestIdT &&value)
SpanType GetSpanType() const
bool SpanIdHasBeenSet() const
const Aws::String & GetParentSpanId() const
Span & WithSessionId(SessionIdT &&value)
const Aws::String & GetSessionId() const
const Aws::String & GetSpanName() const
const Aws::String & GetRequestId() const
bool SpanNameHasBeenSet() const
bool StartTimestampHasBeenSet() const
void SetParentSpanId(ParentSpanIdT &&value)
Span & WithSpanType(SpanType value)
void SetAssistantId(AssistantIdT &&value)
bool SpanTypeHasBeenSet() const
const SpanAttributes & GetAttributes() const
bool SessionIdHasBeenSet() const
Span & WithAssistantId(AssistantIdT &&value)
Span & WithSpanId(SpanIdT &&value)
Span & WithStartTimestamp(StartTimestampT &&value)
Span & WithParentSpanId(ParentSpanIdT &&value)
const Aws::String & GetAssistantId() const
void SetSessionId(SessionIdT &&value)
bool AttributesHasBeenSet() const
Span & WithAttributes(AttributesT &&value)
const Aws::String & GetSpanId() const
void SetStatus(SpanStatus value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue