AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RequestImpactStatistics.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace XRay {
17namespace Model {
18
26 public:
27 AWS_XRAY_API RequestImpactStatistics() = default;
31
33
36 inline long long GetFaultCount() const { return m_faultCount; }
37 inline bool FaultCountHasBeenSet() const { return m_faultCountHasBeenSet; }
38 inline void SetFaultCount(long long value) {
39 m_faultCountHasBeenSet = true;
40 m_faultCount = value;
41 }
42 inline RequestImpactStatistics& WithFaultCount(long long value) {
43 SetFaultCount(value);
44 return *this;
45 }
47
49
52 inline long long GetOkCount() const { return m_okCount; }
53 inline bool OkCountHasBeenSet() const { return m_okCountHasBeenSet; }
54 inline void SetOkCount(long long value) {
55 m_okCountHasBeenSet = true;
56 m_okCount = value;
57 }
58 inline RequestImpactStatistics& WithOkCount(long long value) {
59 SetOkCount(value);
60 return *this;
61 }
63
65
68 inline long long GetTotalCount() const { return m_totalCount; }
69 inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; }
70 inline void SetTotalCount(long long value) {
71 m_totalCountHasBeenSet = true;
72 m_totalCount = value;
73 }
74 inline RequestImpactStatistics& WithTotalCount(long long value) {
75 SetTotalCount(value);
76 return *this;
77 }
79 private:
80 long long m_faultCount{0};
81
82 long long m_okCount{0};
83
84 long long m_totalCount{0};
85 bool m_faultCountHasBeenSet = false;
86 bool m_okCountHasBeenSet = false;
87 bool m_totalCountHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace XRay
92} // namespace Aws
RequestImpactStatistics & WithTotalCount(long long value)
RequestImpactStatistics & WithFaultCount(long long value)
AWS_XRAY_API RequestImpactStatistics()=default
AWS_XRAY_API RequestImpactStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
RequestImpactStatistics & WithOkCount(long long value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_XRAY_API RequestImpactStatistics(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue