/** * 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 { /** *

Information about requests that failed with a 5xx Server Error status * code.

See Also:

AWS * API Reference

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

The number of requests that failed with untracked 5xx Server Error status * codes.

*/ inline long long GetOtherCount() const{ return m_otherCount; } /** *

The number of requests that failed with untracked 5xx Server Error status * codes.

*/ inline bool OtherCountHasBeenSet() const { return m_otherCountHasBeenSet; } /** *

The number of requests that failed with untracked 5xx Server Error status * codes.

*/ inline void SetOtherCount(long long value) { m_otherCountHasBeenSet = true; m_otherCount = value; } /** *

The number of requests that failed with untracked 5xx Server Error status * codes.

*/ inline FaultStatistics& WithOtherCount(long long value) { SetOtherCount(value); return *this;} /** *

The total number of requests that failed with a 5xx Server Error status * code.

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

The total number of requests that failed with a 5xx Server Error status * code.

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

The total number of requests that failed with a 5xx Server Error status * code.

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

The total number of requests that failed with a 5xx Server Error status * code.

*/ inline FaultStatistics& WithTotalCount(long long value) { SetTotalCount(value); return *this;} private: long long m_otherCount; bool m_otherCountHasBeenSet = false; long long m_totalCount; bool m_totalCountHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws