AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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 EdgeStatistics() = default;
39
40
42
45 inline long long GetOkCount() const { return m_okCount; }
46 inline bool OkCountHasBeenSet() const { return m_okCountHasBeenSet; }
47 inline void SetOkCount(long long value) { m_okCountHasBeenSet = true; m_okCount = value; }
48 inline EdgeStatistics& WithOkCount(long long value) { SetOkCount(value); return *this;}
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) { m_errorStatisticsHasBeenSet = true; m_errorStatistics = std::forward<ErrorStatisticsT>(value); }
60 template<typename ErrorStatisticsT = ErrorStatistics>
61 EdgeStatistics& WithErrorStatistics(ErrorStatisticsT&& value) { SetErrorStatistics(std::forward<ErrorStatisticsT>(value)); return *this;}
63
65
69 inline const FaultStatistics& GetFaultStatistics() const { return m_faultStatistics; }
70 inline bool FaultStatisticsHasBeenSet() const { return m_faultStatisticsHasBeenSet; }
71 template<typename FaultStatisticsT = FaultStatistics>
72 void SetFaultStatistics(FaultStatisticsT&& value) { m_faultStatisticsHasBeenSet = true; m_faultStatistics = std::forward<FaultStatisticsT>(value); }
73 template<typename FaultStatisticsT = FaultStatistics>
74 EdgeStatistics& WithFaultStatistics(FaultStatisticsT&& value) { SetFaultStatistics(std::forward<FaultStatisticsT>(value)); return *this;}
76
78
81 inline long long GetTotalCount() const { return m_totalCount; }
82 inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; }
83 inline void SetTotalCount(long long value) { m_totalCountHasBeenSet = true; m_totalCount = value; }
84 inline EdgeStatistics& WithTotalCount(long long value) { SetTotalCount(value); return *this;}
86
88
91 inline double GetTotalResponseTime() const { return m_totalResponseTime; }
92 inline bool TotalResponseTimeHasBeenSet() const { return m_totalResponseTimeHasBeenSet; }
93 inline void SetTotalResponseTime(double value) { m_totalResponseTimeHasBeenSet = true; m_totalResponseTime = value; }
94 inline EdgeStatistics& WithTotalResponseTime(double value) { SetTotalResponseTime(value); return *this;}
96 private:
97
98 long long m_okCount{0};
99 bool m_okCountHasBeenSet = false;
100
101 ErrorStatistics m_errorStatistics;
102 bool m_errorStatisticsHasBeenSet = false;
103
104 FaultStatistics m_faultStatistics;
105 bool m_faultStatisticsHasBeenSet = false;
106
107 long long m_totalCount{0};
108 bool m_totalCountHasBeenSet = false;
109
110 double m_totalResponseTime{0.0};
111 bool m_totalResponseTimeHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace XRay
116} // 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