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/xray/model/ServiceId.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>The service within the service graph that has anomalously high fault rates.
28    * </p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/AnomalousService">AWS
30    * API Reference</a></p>
31    */
32   class AWS_XRAY_API AnomalousService
33   {
34   public:
35     AnomalousService();
36     AnomalousService(Aws::Utils::Json::JsonView jsonValue);
37     AnomalousService& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41 
GetServiceId()42     inline const ServiceId& GetServiceId() const{ return m_serviceId; }
43 
44 
ServiceIdHasBeenSet()45     inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
46 
47 
SetServiceId(const ServiceId & value)48     inline void SetServiceId(const ServiceId& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
49 
50 
SetServiceId(ServiceId && value)51     inline void SetServiceId(ServiceId&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
52 
53 
WithServiceId(const ServiceId & value)54     inline AnomalousService& WithServiceId(const ServiceId& value) { SetServiceId(value); return *this;}
55 
56 
WithServiceId(ServiceId && value)57     inline AnomalousService& WithServiceId(ServiceId&& value) { SetServiceId(std::move(value)); return *this;}
58 
59   private:
60 
61     ServiceId m_serviceId;
62     bool m_serviceIdHasBeenSet;
63   };
64 
65 } // namespace Model
66 } // namespace XRay
67 } // namespace Aws
68