AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
Span.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace BedrockAgentRuntime {
17namespace Model {
18
31class Span {
32 public:
33 AWS_BEDROCKAGENTRUNTIME_API Span() = default;
34 AWS_BEDROCKAGENTRUNTIME_API Span(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BEDROCKAGENTRUNTIME_API Span& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline int GetEnd() const { return m_end; }
43 inline bool EndHasBeenSet() const { return m_endHasBeenSet; }
44 inline void SetEnd(int value) {
45 m_endHasBeenSet = true;
46 m_end = value;
47 }
48 inline Span& WithEnd(int value) {
49 SetEnd(value);
50 return *this;
51 }
53
55
58 inline int GetStart() const { return m_start; }
59 inline bool StartHasBeenSet() const { return m_startHasBeenSet; }
60 inline void SetStart(int value) {
61 m_startHasBeenSet = true;
62 m_start = value;
63 }
64 inline Span& WithStart(int value) {
65 SetStart(value);
66 return *this;
67 }
69 private:
70 int m_end{0};
71
72 int m_start{0};
73 bool m_endHasBeenSet = false;
74 bool m_startHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace BedrockAgentRuntime
79} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
Span & WithStart(int value)
Definition Span.h:64
AWS_BEDROCKAGENTRUNTIME_API Span(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Span()=default
AWS_BEDROCKAGENTRUNTIME_API Span & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue