1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/xray/XRay_EXPORTS.h> 8 9 namespace Aws 10 { 11 namespace Utils 12 { 13 namespace Json 14 { 15 class JsonValue; 16 class JsonView; 17 } // namespace Json 18 } // namespace Utils 19 namespace XRay 20 { 21 namespace Model 22 { 23 24 /** 25 * <p>Information about requests that failed with a 5xx Server Error status 26 * code.</p><p><h3>See Also:</h3> <a 27 * href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/FaultStatistics">AWS 28 * API Reference</a></p> 29 */ 30 class AWS_XRAY_API FaultStatistics 31 { 32 public: 33 FaultStatistics(); 34 FaultStatistics(Aws::Utils::Json::JsonView jsonValue); 35 FaultStatistics& operator=(Aws::Utils::Json::JsonView jsonValue); 36 Aws::Utils::Json::JsonValue Jsonize() const; 37 38 39 /** 40 * <p>The number of requests that failed with untracked 5xx Server Error status 41 * codes.</p> 42 */ GetOtherCount()43 inline long long GetOtherCount() const{ return m_otherCount; } 44 45 /** 46 * <p>The number of requests that failed with untracked 5xx Server Error status 47 * codes.</p> 48 */ OtherCountHasBeenSet()49 inline bool OtherCountHasBeenSet() const { return m_otherCountHasBeenSet; } 50 51 /** 52 * <p>The number of requests that failed with untracked 5xx Server Error status 53 * codes.</p> 54 */ SetOtherCount(long long value)55 inline void SetOtherCount(long long value) { m_otherCountHasBeenSet = true; m_otherCount = value; } 56 57 /** 58 * <p>The number of requests that failed with untracked 5xx Server Error status 59 * codes.</p> 60 */ WithOtherCount(long long value)61 inline FaultStatistics& WithOtherCount(long long value) { SetOtherCount(value); return *this;} 62 63 64 /** 65 * <p>The total number of requests that failed with a 5xx Server Error status 66 * code.</p> 67 */ GetTotalCount()68 inline long long GetTotalCount() const{ return m_totalCount; } 69 70 /** 71 * <p>The total number of requests that failed with a 5xx Server Error status 72 * code.</p> 73 */ TotalCountHasBeenSet()74 inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; } 75 76 /** 77 * <p>The total number of requests that failed with a 5xx Server Error status 78 * code.</p> 79 */ SetTotalCount(long long value)80 inline void SetTotalCount(long long value) { m_totalCountHasBeenSet = true; m_totalCount = value; } 81 82 /** 83 * <p>The total number of requests that failed with a 5xx Server Error status 84 * code.</p> 85 */ WithTotalCount(long long value)86 inline FaultStatistics& WithTotalCount(long long value) { SetTotalCount(value); return *this;} 87 88 private: 89 90 long long m_otherCount; 91 bool m_otherCountHasBeenSet; 92 93 long long m_totalCount; 94 bool m_totalCountHasBeenSet; 95 }; 96 97 } // namespace Model 98 } // namespace XRay 99 } // namespace Aws 100