/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace XRay { namespace Model { /** *

See Also:

AWS * API Reference

*/ class TelemetryRecord { public: AWS_XRAY_API TelemetryRecord(); AWS_XRAY_API TelemetryRecord(Aws::Utils::Json::JsonView jsonValue); AWS_XRAY_API TelemetryRecord& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } /** *

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

*/ inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

*/ inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

*/ inline TelemetryRecord& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} /** *

*/ inline TelemetryRecord& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} /** *

*/ inline int GetSegmentsReceivedCount() const{ return m_segmentsReceivedCount; } /** *

*/ inline bool SegmentsReceivedCountHasBeenSet() const { return m_segmentsReceivedCountHasBeenSet; } /** *

*/ inline void SetSegmentsReceivedCount(int value) { m_segmentsReceivedCountHasBeenSet = true; m_segmentsReceivedCount = value; } /** *

*/ inline TelemetryRecord& WithSegmentsReceivedCount(int value) { SetSegmentsReceivedCount(value); return *this;} /** *

*/ inline int GetSegmentsSentCount() const{ return m_segmentsSentCount; } /** *

*/ inline bool SegmentsSentCountHasBeenSet() const { return m_segmentsSentCountHasBeenSet; } /** *

*/ inline void SetSegmentsSentCount(int value) { m_segmentsSentCountHasBeenSet = true; m_segmentsSentCount = value; } /** *

*/ inline TelemetryRecord& WithSegmentsSentCount(int value) { SetSegmentsSentCount(value); return *this;} /** *

*/ inline int GetSegmentsSpilloverCount() const{ return m_segmentsSpilloverCount; } /** *

*/ inline bool SegmentsSpilloverCountHasBeenSet() const { return m_segmentsSpilloverCountHasBeenSet; } /** *

*/ inline void SetSegmentsSpilloverCount(int value) { m_segmentsSpilloverCountHasBeenSet = true; m_segmentsSpilloverCount = value; } /** *

*/ inline TelemetryRecord& WithSegmentsSpilloverCount(int value) { SetSegmentsSpilloverCount(value); return *this;} /** *

*/ inline int GetSegmentsRejectedCount() const{ return m_segmentsRejectedCount; } /** *

*/ inline bool SegmentsRejectedCountHasBeenSet() const { return m_segmentsRejectedCountHasBeenSet; } /** *

*/ inline void SetSegmentsRejectedCount(int value) { m_segmentsRejectedCountHasBeenSet = true; m_segmentsRejectedCount = value; } /** *

*/ inline TelemetryRecord& WithSegmentsRejectedCount(int value) { SetSegmentsRejectedCount(value); return *this;} /** *

*/ inline const BackendConnectionErrors& GetBackendConnectionErrors() const{ return m_backendConnectionErrors; } /** *

*/ inline bool BackendConnectionErrorsHasBeenSet() const { return m_backendConnectionErrorsHasBeenSet; } /** *

*/ inline void SetBackendConnectionErrors(const BackendConnectionErrors& value) { m_backendConnectionErrorsHasBeenSet = true; m_backendConnectionErrors = value; } /** *

*/ inline void SetBackendConnectionErrors(BackendConnectionErrors&& value) { m_backendConnectionErrorsHasBeenSet = true; m_backendConnectionErrors = std::move(value); } /** *

*/ inline TelemetryRecord& WithBackendConnectionErrors(const BackendConnectionErrors& value) { SetBackendConnectionErrors(value); return *this;} /** *

*/ inline TelemetryRecord& WithBackendConnectionErrors(BackendConnectionErrors&& value) { SetBackendConnectionErrors(std::move(value)); return *this;} private: Aws::Utils::DateTime m_timestamp; bool m_timestampHasBeenSet = false; int m_segmentsReceivedCount; bool m_segmentsReceivedCountHasBeenSet = false; int m_segmentsSentCount; bool m_segmentsSentCountHasBeenSet = false; int m_segmentsSpilloverCount; bool m_segmentsSpilloverCountHasBeenSet = false; int m_segmentsRejectedCount; bool m_segmentsRejectedCountHasBeenSet = false; BackendConnectionErrors m_backendConnectionErrors; bool m_backendConnectionErrorsHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws