AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetErrorStatistics(const ErrorStatistics& value) { m_errorStatisticsHasBeenSet = true; m_errorStatistics = value; }
59 inline void SetErrorStatistics(ErrorStatistics&& value) { m_errorStatisticsHasBeenSet = true; m_errorStatistics = std::move(value); }
60 inline EdgeStatistics& WithErrorStatistics(const ErrorStatistics& value) { SetErrorStatistics(value); return *this;}
61 inline EdgeStatistics& WithErrorStatistics(ErrorStatistics&& value) { SetErrorStatistics(std::move(value)); return *this;}
63
65
69 inline const FaultStatistics& GetFaultStatistics() const{ return m_faultStatistics; }
70 inline bool FaultStatisticsHasBeenSet() const { return m_faultStatisticsHasBeenSet; }
71 inline void SetFaultStatistics(const FaultStatistics& value) { m_faultStatisticsHasBeenSet = true; m_faultStatistics = value; }
72 inline void SetFaultStatistics(FaultStatistics&& value) { m_faultStatisticsHasBeenSet = true; m_faultStatistics = std::move(value); }
73 inline EdgeStatistics& WithFaultStatistics(const FaultStatistics& value) { SetFaultStatistics(value); return *this;}
74 inline EdgeStatistics& WithFaultStatistics(FaultStatistics&& value) { SetFaultStatistics(std::move(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;
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;
108 bool m_totalCountHasBeenSet = false;
109
110 double m_totalResponseTime;
111 bool m_totalResponseTimeHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace XRay
116} // namespace Aws
void SetFaultStatistics(const FaultStatistics &value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
EdgeStatistics & WithTotalCount(long long value)
void SetErrorStatistics(ErrorStatistics &&value)
const FaultStatistics & GetFaultStatistics() const
EdgeStatistics & WithErrorStatistics(const ErrorStatistics &value)
EdgeStatistics & WithOkCount(long long value)
const ErrorStatistics & GetErrorStatistics() const
EdgeStatistics & WithTotalResponseTime(double value)
AWS_XRAY_API EdgeStatistics(Aws::Utils::Json::JsonView jsonValue)
void SetErrorStatistics(const ErrorStatistics &value)
EdgeStatistics & WithErrorStatistics(ErrorStatistics &&value)
void SetTotalResponseTime(double value)
void SetOkCount(long long value)
void SetFaultStatistics(FaultStatistics &&value)
AWS_XRAY_API EdgeStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
EdgeStatistics & WithFaultStatistics(FaultStatistics &&value)
EdgeStatistics & WithFaultStatistics(const FaultStatistics &value)
void SetTotalCount(long long value)
Aws::Utils::Json::JsonValue JsonValue