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 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace XRay 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>A collection of segments and corresponding subsegments associated to a 28 * response time warning.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ResponseTimeRootCauseEntity">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_XRAY_API ResponseTimeRootCauseEntity 33 { 34 public: 35 ResponseTimeRootCauseEntity(); 36 ResponseTimeRootCauseEntity(Aws::Utils::Json::JsonView jsonValue); 37 ResponseTimeRootCauseEntity& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The name of the entity.</p> 43 */ GetName()44 inline const Aws::String& GetName() const{ return m_name; } 45 46 /** 47 * <p>The name of the entity.</p> 48 */ NameHasBeenSet()49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } 50 51 /** 52 * <p>The name of the entity.</p> 53 */ SetName(const Aws::String & value)54 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } 55 56 /** 57 * <p>The name of the entity.</p> 58 */ SetName(Aws::String && value)59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } 60 61 /** 62 * <p>The name of the entity.</p> 63 */ SetName(const char * value)64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } 65 66 /** 67 * <p>The name of the entity.</p> 68 */ WithName(const Aws::String & value)69 inline ResponseTimeRootCauseEntity& WithName(const Aws::String& value) { SetName(value); return *this;} 70 71 /** 72 * <p>The name of the entity.</p> 73 */ WithName(Aws::String && value)74 inline ResponseTimeRootCauseEntity& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} 75 76 /** 77 * <p>The name of the entity.</p> 78 */ WithName(const char * value)79 inline ResponseTimeRootCauseEntity& WithName(const char* value) { SetName(value); return *this;} 80 81 82 /** 83 * <p>The type and messages of the exceptions.</p> 84 */ GetCoverage()85 inline double GetCoverage() const{ return m_coverage; } 86 87 /** 88 * <p>The type and messages of the exceptions.</p> 89 */ CoverageHasBeenSet()90 inline bool CoverageHasBeenSet() const { return m_coverageHasBeenSet; } 91 92 /** 93 * <p>The type and messages of the exceptions.</p> 94 */ SetCoverage(double value)95 inline void SetCoverage(double value) { m_coverageHasBeenSet = true; m_coverage = value; } 96 97 /** 98 * <p>The type and messages of the exceptions.</p> 99 */ WithCoverage(double value)100 inline ResponseTimeRootCauseEntity& WithCoverage(double value) { SetCoverage(value); return *this;} 101 102 103 /** 104 * <p>A flag that denotes a remote subsegment.</p> 105 */ GetRemote()106 inline bool GetRemote() const{ return m_remote; } 107 108 /** 109 * <p>A flag that denotes a remote subsegment.</p> 110 */ RemoteHasBeenSet()111 inline bool RemoteHasBeenSet() const { return m_remoteHasBeenSet; } 112 113 /** 114 * <p>A flag that denotes a remote subsegment.</p> 115 */ SetRemote(bool value)116 inline void SetRemote(bool value) { m_remoteHasBeenSet = true; m_remote = value; } 117 118 /** 119 * <p>A flag that denotes a remote subsegment.</p> 120 */ WithRemote(bool value)121 inline ResponseTimeRootCauseEntity& WithRemote(bool value) { SetRemote(value); return *this;} 122 123 private: 124 125 Aws::String m_name; 126 bool m_nameHasBeenSet; 127 128 double m_coverage; 129 bool m_coverageHasBeenSet; 130 131 bool m_remote; 132 bool m_remoteHasBeenSet; 133 }; 134 135 } // namespace Model 136 } // namespace XRay 137 } // namespace Aws 138