AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TelemetryRecord.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/xray/model/BackendConnectionErrors.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace XRay
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_XRAY_API TelemetryRecord() = default;
39
40
42
45 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
46 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
47 template<typename TimestampT = Aws::Utils::DateTime>
48 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
49 template<typename TimestampT = Aws::Utils::DateTime>
50 TelemetryRecord& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
52
54
57 inline int GetSegmentsReceivedCount() const { return m_segmentsReceivedCount; }
58 inline bool SegmentsReceivedCountHasBeenSet() const { return m_segmentsReceivedCountHasBeenSet; }
59 inline void SetSegmentsReceivedCount(int value) { m_segmentsReceivedCountHasBeenSet = true; m_segmentsReceivedCount = value; }
60 inline TelemetryRecord& WithSegmentsReceivedCount(int value) { SetSegmentsReceivedCount(value); return *this;}
62
64
67 inline int GetSegmentsSentCount() const { return m_segmentsSentCount; }
68 inline bool SegmentsSentCountHasBeenSet() const { return m_segmentsSentCountHasBeenSet; }
69 inline void SetSegmentsSentCount(int value) { m_segmentsSentCountHasBeenSet = true; m_segmentsSentCount = value; }
70 inline TelemetryRecord& WithSegmentsSentCount(int value) { SetSegmentsSentCount(value); return *this;}
72
74
77 inline int GetSegmentsSpilloverCount() const { return m_segmentsSpilloverCount; }
78 inline bool SegmentsSpilloverCountHasBeenSet() const { return m_segmentsSpilloverCountHasBeenSet; }
79 inline void SetSegmentsSpilloverCount(int value) { m_segmentsSpilloverCountHasBeenSet = true; m_segmentsSpilloverCount = value; }
80 inline TelemetryRecord& WithSegmentsSpilloverCount(int value) { SetSegmentsSpilloverCount(value); return *this;}
82
84
87 inline int GetSegmentsRejectedCount() const { return m_segmentsRejectedCount; }
88 inline bool SegmentsRejectedCountHasBeenSet() const { return m_segmentsRejectedCountHasBeenSet; }
89 inline void SetSegmentsRejectedCount(int value) { m_segmentsRejectedCountHasBeenSet = true; m_segmentsRejectedCount = value; }
90 inline TelemetryRecord& WithSegmentsRejectedCount(int value) { SetSegmentsRejectedCount(value); return *this;}
92
94
97 inline const BackendConnectionErrors& GetBackendConnectionErrors() const { return m_backendConnectionErrors; }
98 inline bool BackendConnectionErrorsHasBeenSet() const { return m_backendConnectionErrorsHasBeenSet; }
99 template<typename BackendConnectionErrorsT = BackendConnectionErrors>
100 void SetBackendConnectionErrors(BackendConnectionErrorsT&& value) { m_backendConnectionErrorsHasBeenSet = true; m_backendConnectionErrors = std::forward<BackendConnectionErrorsT>(value); }
101 template<typename BackendConnectionErrorsT = BackendConnectionErrors>
102 TelemetryRecord& WithBackendConnectionErrors(BackendConnectionErrorsT&& value) { SetBackendConnectionErrors(std::forward<BackendConnectionErrorsT>(value)); return *this;}
104 private:
105
106 Aws::Utils::DateTime m_timestamp{};
107 bool m_timestampHasBeenSet = false;
108
109 int m_segmentsReceivedCount{0};
110 bool m_segmentsReceivedCountHasBeenSet = false;
111
112 int m_segmentsSentCount{0};
113 bool m_segmentsSentCountHasBeenSet = false;
114
115 int m_segmentsSpilloverCount{0};
116 bool m_segmentsSpilloverCountHasBeenSet = false;
117
118 int m_segmentsRejectedCount{0};
119 bool m_segmentsRejectedCountHasBeenSet = false;
120
121 BackendConnectionErrors m_backendConnectionErrors;
122 bool m_backendConnectionErrorsHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace XRay
127} // 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