AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TelemetryRecord.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/xray/XRay_EXPORTS.h>
9#include <aws/xray/model/BackendConnectionErrors.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace XRay {
21namespace Model {
22
29 public:
30 AWS_XRAY_API TelemetryRecord() = default;
34
36
39 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
40 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
41 template <typename TimestampT = Aws::Utils::DateTime>
42 void SetTimestamp(TimestampT&& value) {
43 m_timestampHasBeenSet = true;
44 m_timestamp = std::forward<TimestampT>(value);
45 }
46 template <typename TimestampT = Aws::Utils::DateTime>
47 TelemetryRecord& WithTimestamp(TimestampT&& value) {
48 SetTimestamp(std::forward<TimestampT>(value));
49 return *this;
50 }
52
54
57 inline int GetSegmentsReceivedCount() const { return m_segmentsReceivedCount; }
58 inline bool SegmentsReceivedCountHasBeenSet() const { return m_segmentsReceivedCountHasBeenSet; }
59 inline void SetSegmentsReceivedCount(int value) {
60 m_segmentsReceivedCountHasBeenSet = true;
61 m_segmentsReceivedCount = value;
62 }
65 return *this;
66 }
68
70
73 inline int GetSegmentsSentCount() const { return m_segmentsSentCount; }
74 inline bool SegmentsSentCountHasBeenSet() const { return m_segmentsSentCountHasBeenSet; }
75 inline void SetSegmentsSentCount(int value) {
76 m_segmentsSentCountHasBeenSet = true;
77 m_segmentsSentCount = value;
78 }
81 return *this;
82 }
84
86
89 inline int GetSegmentsSpilloverCount() const { return m_segmentsSpilloverCount; }
90 inline bool SegmentsSpilloverCountHasBeenSet() const { return m_segmentsSpilloverCountHasBeenSet; }
91 inline void SetSegmentsSpilloverCount(int value) {
92 m_segmentsSpilloverCountHasBeenSet = true;
93 m_segmentsSpilloverCount = value;
94 }
97 return *this;
98 }
100
102
105 inline int GetSegmentsRejectedCount() const { return m_segmentsRejectedCount; }
106 inline bool SegmentsRejectedCountHasBeenSet() const { return m_segmentsRejectedCountHasBeenSet; }
107 inline void SetSegmentsRejectedCount(int value) {
108 m_segmentsRejectedCountHasBeenSet = true;
109 m_segmentsRejectedCount = value;
110 }
113 return *this;
114 }
116
118
121 inline const BackendConnectionErrors& GetBackendConnectionErrors() const { return m_backendConnectionErrors; }
122 inline bool BackendConnectionErrorsHasBeenSet() const { return m_backendConnectionErrorsHasBeenSet; }
123 template <typename BackendConnectionErrorsT = BackendConnectionErrors>
124 void SetBackendConnectionErrors(BackendConnectionErrorsT&& value) {
125 m_backendConnectionErrorsHasBeenSet = true;
126 m_backendConnectionErrors = std::forward<BackendConnectionErrorsT>(value);
127 }
128 template <typename BackendConnectionErrorsT = BackendConnectionErrors>
129 TelemetryRecord& WithBackendConnectionErrors(BackendConnectionErrorsT&& value) {
130 SetBackendConnectionErrors(std::forward<BackendConnectionErrorsT>(value));
131 return *this;
132 }
134 private:
135 Aws::Utils::DateTime m_timestamp{};
136
137 int m_segmentsReceivedCount{0};
138
139 int m_segmentsSentCount{0};
140
141 int m_segmentsSpilloverCount{0};
142
143 int m_segmentsRejectedCount{0};
144
145 BackendConnectionErrors m_backendConnectionErrors;
146 bool m_timestampHasBeenSet = false;
147 bool m_segmentsReceivedCountHasBeenSet = false;
148 bool m_segmentsSentCountHasBeenSet = false;
149 bool m_segmentsSpilloverCountHasBeenSet = false;
150 bool m_segmentsRejectedCountHasBeenSet = false;
151 bool m_backendConnectionErrorsHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace XRay
156} // namespace Aws
AWS_XRAY_API TelemetryRecord()=default
AWS_XRAY_API TelemetryRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
TelemetryRecord & WithSegmentsRejectedCount(int value)
TelemetryRecord & WithTimestamp(TimestampT &&value)
TelemetryRecord & WithSegmentsSpilloverCount(int value)
void SetTimestamp(TimestampT &&value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
TelemetryRecord & WithSegmentsReceivedCount(int value)
const Aws::Utils::DateTime & GetTimestamp() const
TelemetryRecord & WithSegmentsSentCount(int value)
const BackendConnectionErrors & GetBackendConnectionErrors() const
AWS_XRAY_API TelemetryRecord(Aws::Utils::Json::JsonView jsonValue)
TelemetryRecord & WithBackendConnectionErrors(BackendConnectionErrorsT &&value)
void SetBackendConnectionErrors(BackendConnectionErrorsT &&value)
Aws::Utils::Json::JsonValue JsonValue