/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace XRay { namespace Model { /** *

The service within the service graph that has anomalously high fault rates. *

See Also:

AWS * API Reference

*/ class AnomalousService { public: AWS_XRAY_API AnomalousService(); AWS_XRAY_API AnomalousService(Aws::Utils::Json::JsonView jsonValue); AWS_XRAY_API AnomalousService& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const; inline const ServiceId& GetServiceId() const{ return m_serviceId; } inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; } inline void SetServiceId(const ServiceId& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; } inline void SetServiceId(ServiceId&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); } inline AnomalousService& WithServiceId(const ServiceId& value) { SetServiceId(value); return *this;} inline AnomalousService& WithServiceId(ServiceId&& value) { SetServiceId(std::move(value)); return *this;} private: ServiceId m_serviceId; bool m_serviceIdHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws