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

Statistics that describe how the incident has impacted a * service.

See Also:

AWS * API Reference

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

The number of requests that have resulted in a fault,

*/ inline long long GetFaultCount() const{ return m_faultCount; } /** *

The number of requests that have resulted in a fault,

*/ inline bool FaultCountHasBeenSet() const { return m_faultCountHasBeenSet; } /** *

The number of requests that have resulted in a fault,

*/ inline void SetFaultCount(long long value) { m_faultCountHasBeenSet = true; m_faultCount = value; } /** *

The number of requests that have resulted in a fault,

*/ inline RequestImpactStatistics& WithFaultCount(long long value) { SetFaultCount(value); return *this;} /** *

The number of successful requests.

*/ inline long long GetOkCount() const{ return m_okCount; } /** *

The number of successful requests.

*/ inline bool OkCountHasBeenSet() const { return m_okCountHasBeenSet; } /** *

The number of successful requests.

*/ inline void SetOkCount(long long value) { m_okCountHasBeenSet = true; m_okCount = value; } /** *

The number of successful requests.

*/ inline RequestImpactStatistics& WithOkCount(long long value) { SetOkCount(value); return *this;} /** *

The total number of requests to the service.

*/ inline long long GetTotalCount() const{ return m_totalCount; } /** *

The total number of requests to the service.

*/ inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; } /** *

The total number of requests to the service.

*/ inline void SetTotalCount(long long value) { m_totalCountHasBeenSet = true; m_totalCount = value; } /** *

The total number of requests to the service.

*/ inline RequestImpactStatistics& WithTotalCount(long long value) { SetTotalCount(value); return *this;} private: long long m_faultCount; bool m_faultCountHasBeenSet = false; long long m_okCount; bool m_okCountHasBeenSet = false; long long m_totalCount; bool m_totalCountHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws