AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
EdgeStatistics.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/xray/model/ErrorStatistics.h>
9#include <aws/xray/model/FaultStatistics.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 EdgeStatistics() = default;
34
36
39 inline long long GetOkCount() const { return m_okCount; }
40 inline bool OkCountHasBeenSet() const { return m_okCountHasBeenSet; }
41 inline void SetOkCount(long long value) {
42 m_okCountHasBeenSet = true;
43 m_okCount = value;
44 }
45 inline EdgeStatistics& WithOkCount(long long value) {
46 SetOkCount(value);
47 return *this;
48 }
50
52
56 inline const ErrorStatistics& GetErrorStatistics() const { return m_errorStatistics; }
57 inline bool ErrorStatisticsHasBeenSet() const { return m_errorStatisticsHasBeenSet; }
58 template <typename ErrorStatisticsT = ErrorStatistics>
59 void SetErrorStatistics(ErrorStatisticsT&& value) {
60 m_errorStatisticsHasBeenSet = true;
61 m_errorStatistics = std::forward<ErrorStatisticsT>(value);
62 }
63 template <typename ErrorStatisticsT = ErrorStatistics>
64 EdgeStatistics& WithErrorStatistics(ErrorStatisticsT&& value) {
65 SetErrorStatistics(std::forward<ErrorStatisticsT>(value));
66 return *this;
67 }
69
71
75 inline const FaultStatistics& GetFaultStatistics() const { return m_faultStatistics; }
76 inline bool FaultStatisticsHasBeenSet() const { return m_faultStatisticsHasBeenSet; }
77 template <typename FaultStatisticsT = FaultStatistics>
78 void SetFaultStatistics(FaultStatisticsT&& value) {
79 m_faultStatisticsHasBeenSet = true;
80 m_faultStatistics = std::forward<FaultStatisticsT>(value);
81 }
82 template <typename FaultStatisticsT = FaultStatistics>
83 EdgeStatistics& WithFaultStatistics(FaultStatisticsT&& value) {
84 SetFaultStatistics(std::forward<FaultStatisticsT>(value));
85 return *this;
86 }
88
90
93 inline long long GetTotalCount() const { return m_totalCount; }
94 inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; }
95 inline void SetTotalCount(long long value) {
96 m_totalCountHasBeenSet = true;
97 m_totalCount = value;
98 }
99 inline EdgeStatistics& WithTotalCount(long long value) {
100 SetTotalCount(value);
101 return *this;
102 }
104
106
109 inline double GetTotalResponseTime() const { return m_totalResponseTime; }
110 inline bool TotalResponseTimeHasBeenSet() const { return m_totalResponseTimeHasBeenSet; }
111 inline void SetTotalResponseTime(double value) {
112 m_totalResponseTimeHasBeenSet = true;
113 m_totalResponseTime = value;
114 }
115 inline EdgeStatistics& WithTotalResponseTime(double value) {
117 return *this;
118 }
120 private:
121 long long m_okCount{0};
122
123 ErrorStatistics m_errorStatistics;
124
125 FaultStatistics m_faultStatistics;
126
127 long long m_totalCount{0};
128
129 double m_totalResponseTime{0.0};
130 bool m_okCountHasBeenSet = false;
131 bool m_errorStatisticsHasBeenSet = false;
132 bool m_faultStatisticsHasBeenSet = false;
133 bool m_totalCountHasBeenSet = false;
134 bool m_totalResponseTimeHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace XRay
139} // namespace Aws
EdgeStatistics & WithErrorStatistics(ErrorStatisticsT &&value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
EdgeStatistics & WithTotalCount(long long value)
const FaultStatistics & GetFaultStatistics() const
EdgeStatistics & WithOkCount(long long value)
const ErrorStatistics & GetErrorStatistics() const
EdgeStatistics & WithTotalResponseTime(double value)
AWS_XRAY_API EdgeStatistics(Aws::Utils::Json::JsonView jsonValue)
EdgeStatistics & WithFaultStatistics(FaultStatisticsT &&value)
void SetFaultStatistics(FaultStatisticsT &&value)
void SetTotalResponseTime(double value)
void SetErrorStatistics(ErrorStatisticsT &&value)
void SetOkCount(long long value)
AWS_XRAY_API EdgeStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API EdgeStatistics()=default
void SetTotalCount(long long value)
Aws::Utils::Json::JsonValue JsonValue