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 4xx Client Error status 26 * code.</p><p><h3>See Also:</h3> <a 27 * href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ErrorStatistics">AWS 28 * API Reference</a></p> 29 */ 30 class AWS_XRAY_API ErrorStatistics 31 { 32 public: 33 ErrorStatistics(); 34 ErrorStatistics(Aws::Utils::Json::JsonView jsonValue); 35 ErrorStatistics& 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 a 419 throttling status code.</p> 41 */ GetThrottleCount()42 inline long long GetThrottleCount() const{ return m_throttleCount; } 43 44 /** 45 * <p>The number of requests that failed with a 419 throttling status code.</p> 46 */ ThrottleCountHasBeenSet()47 inline bool ThrottleCountHasBeenSet() const { return m_throttleCountHasBeenSet; } 48 49 /** 50 * <p>The number of requests that failed with a 419 throttling status code.</p> 51 */ SetThrottleCount(long long value)52 inline void SetThrottleCount(long long value) { m_throttleCountHasBeenSet = true; m_throttleCount = value; } 53 54 /** 55 * <p>The number of requests that failed with a 419 throttling status code.</p> 56 */ WithThrottleCount(long long value)57 inline ErrorStatistics& WithThrottleCount(long long value) { SetThrottleCount(value); return *this;} 58 59 60 /** 61 * <p>The number of requests that failed with untracked 4xx Client Error status 62 * codes.</p> 63 */ GetOtherCount()64 inline long long GetOtherCount() const{ return m_otherCount; } 65 66 /** 67 * <p>The number of requests that failed with untracked 4xx Client Error status 68 * codes.</p> 69 */ OtherCountHasBeenSet()70 inline bool OtherCountHasBeenSet() const { return m_otherCountHasBeenSet; } 71 72 /** 73 * <p>The number of requests that failed with untracked 4xx Client Error status 74 * codes.</p> 75 */ SetOtherCount(long long value)76 inline void SetOtherCount(long long value) { m_otherCountHasBeenSet = true; m_otherCount = value; } 77 78 /** 79 * <p>The number of requests that failed with untracked 4xx Client Error status 80 * codes.</p> 81 */ WithOtherCount(long long value)82 inline ErrorStatistics& WithOtherCount(long long value) { SetOtherCount(value); return *this;} 83 84 85 /** 86 * <p>The total number of requests that failed with a 4xx Client Error status 87 * code.</p> 88 */ GetTotalCount()89 inline long long GetTotalCount() const{ return m_totalCount; } 90 91 /** 92 * <p>The total number of requests that failed with a 4xx Client Error status 93 * code.</p> 94 */ TotalCountHasBeenSet()95 inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; } 96 97 /** 98 * <p>The total number of requests that failed with a 4xx Client Error status 99 * code.</p> 100 */ SetTotalCount(long long value)101 inline void SetTotalCount(long long value) { m_totalCountHasBeenSet = true; m_totalCount = value; } 102 103 /** 104 * <p>The total number of requests that failed with a 4xx Client Error status 105 * code.</p> 106 */ WithTotalCount(long long value)107 inline ErrorStatistics& WithTotalCount(long long value) { SetTotalCount(value); return *this;} 108 109 private: 110 111 long long m_throttleCount; 112 bool m_throttleCountHasBeenSet; 113 114 long long m_otherCount; 115 bool m_otherCountHasBeenSet; 116 117 long long m_totalCount; 118 bool m_totalCountHasBeenSet; 119 }; 120 121 } // namespace Model 122 } // namespace XRay 123 } // namespace Aws 124