AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39
40
42
45 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
46 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
47 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
48 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
49 inline TelemetryRecord& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
50 inline TelemetryRecord& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(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 inline void SetBackendConnectionErrors(const BackendConnectionErrors& value) { m_backendConnectionErrorsHasBeenSet = true; m_backendConnectionErrors = value; }
100 inline void SetBackendConnectionErrors(BackendConnectionErrors&& value) { m_backendConnectionErrorsHasBeenSet = true; m_backendConnectionErrors = std::move(value); }
104 private:
105
106 Aws::Utils::DateTime m_timestamp;
107 bool m_timestampHasBeenSet = false;
108
109 int m_segmentsReceivedCount;
110 bool m_segmentsReceivedCountHasBeenSet = false;
111
112 int m_segmentsSentCount;
113 bool m_segmentsSentCountHasBeenSet = false;
114
115 int m_segmentsSpilloverCount;
116 bool m_segmentsSpilloverCountHasBeenSet = false;
117
118 int m_segmentsRejectedCount;
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
TelemetryRecord & WithTimestamp(const Aws::Utils::DateTime &value)
AWS_XRAY_API TelemetryRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
TelemetryRecord & WithSegmentsRejectedCount(int value)
void SetTimestamp(const Aws::Utils::DateTime &value)
void SetBackendConnectionErrors(const BackendConnectionErrors &value)
TelemetryRecord & WithSegmentsSpilloverCount(int value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
TelemetryRecord & WithSegmentsReceivedCount(int value)
const Aws::Utils::DateTime & GetTimestamp() const
TelemetryRecord & WithSegmentsSentCount(int value)
void SetBackendConnectionErrors(BackendConnectionErrors &&value)
const BackendConnectionErrors & GetBackendConnectionErrors() const
TelemetryRecord & WithBackendConnectionErrors(const BackendConnectionErrors &value)
void SetTimestamp(Aws::Utils::DateTime &&value)
TelemetryRecord & WithTimestamp(Aws::Utils::DateTime &&value)
AWS_XRAY_API TelemetryRecord(Aws::Utils::Json::JsonView jsonValue)
TelemetryRecord & WithBackendConnectionErrors(BackendConnectionErrors &&value)
Aws::Utils::Json::JsonValue JsonValue