{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.XRay.Types.AnomalousService -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.XRay.Types.AnomalousService where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import qualified Amazonka.Prelude as Prelude import Amazonka.XRay.Types.ServiceId -- | The service within the service graph that has anomalously high fault -- rates. -- -- /See:/ 'newAnomalousService' smart constructor. data AnomalousService = AnomalousService' { serviceId :: Prelude.Maybe ServiceId } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'AnomalousService' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'serviceId', 'anomalousService_serviceId' - Undocumented member. newAnomalousService :: AnomalousService newAnomalousService = AnomalousService' {serviceId = Prelude.Nothing} -- | Undocumented member. anomalousService_serviceId :: Lens.Lens' AnomalousService (Prelude.Maybe ServiceId) anomalousService_serviceId = Lens.lens (\AnomalousService' {serviceId} -> serviceId) (\s@AnomalousService' {} a -> s {serviceId = a} :: AnomalousService) instance Data.FromJSON AnomalousService where parseJSON = Data.withObject "AnomalousService" ( \x -> AnomalousService' Prelude.<$> (x Data..:? "ServiceId") ) instance Prelude.Hashable AnomalousService where hashWithSalt _salt AnomalousService' {..} = _salt `Prelude.hashWithSalt` serviceId instance Prelude.NFData AnomalousService where rnf AnomalousService' {..} = Prelude.rnf serviceId