{-# 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.Discovery.Types.CustomerMeCollectorInfo
-- 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.Discovery.Types.CustomerMeCollectorInfo 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

-- | The inventory data for installed Migration Evaluator collectors.
--
-- /See:/ 'newCustomerMeCollectorInfo' smart constructor.
data CustomerMeCollectorInfo = CustomerMeCollectorInfo'
  { -- | The number of active Migration Evaluator collectors.
    CustomerMeCollectorInfo -> Int
activeMeCollectors :: Prelude.Int,
    -- | The number of healthy Migration Evaluator collectors.
    CustomerMeCollectorInfo -> Int
healthyMeCollectors :: Prelude.Int,
    -- | The number of deny-listed Migration Evaluator collectors.
    CustomerMeCollectorInfo -> Int
denyListedMeCollectors :: Prelude.Int,
    -- | The number of Migration Evaluator collectors with @SHUTDOWN@ status.
    CustomerMeCollectorInfo -> Int
shutdownMeCollectors :: Prelude.Int,
    -- | The number of unhealthy Migration Evaluator collectors.
    CustomerMeCollectorInfo -> Int
unhealthyMeCollectors :: Prelude.Int,
    -- | The total number of Migration Evaluator collectors.
    CustomerMeCollectorInfo -> Int
totalMeCollectors :: Prelude.Int,
    -- | The number of unknown Migration Evaluator collectors.
    CustomerMeCollectorInfo -> Int
unknownMeCollectors :: Prelude.Int
  }
  deriving (CustomerMeCollectorInfo -> CustomerMeCollectorInfo -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CustomerMeCollectorInfo -> CustomerMeCollectorInfo -> Bool
$c/= :: CustomerMeCollectorInfo -> CustomerMeCollectorInfo -> Bool
== :: CustomerMeCollectorInfo -> CustomerMeCollectorInfo -> Bool
$c== :: CustomerMeCollectorInfo -> CustomerMeCollectorInfo -> Bool
Prelude.Eq, ReadPrec [CustomerMeCollectorInfo]
ReadPrec CustomerMeCollectorInfo
Int -> ReadS CustomerMeCollectorInfo
ReadS [CustomerMeCollectorInfo]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CustomerMeCollectorInfo]
$creadListPrec :: ReadPrec [CustomerMeCollectorInfo]
readPrec :: ReadPrec CustomerMeCollectorInfo
$creadPrec :: ReadPrec CustomerMeCollectorInfo
readList :: ReadS [CustomerMeCollectorInfo]
$creadList :: ReadS [CustomerMeCollectorInfo]
readsPrec :: Int -> ReadS CustomerMeCollectorInfo
$creadsPrec :: Int -> ReadS CustomerMeCollectorInfo
Prelude.Read, Int -> CustomerMeCollectorInfo -> ShowS
[CustomerMeCollectorInfo] -> ShowS
CustomerMeCollectorInfo -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CustomerMeCollectorInfo] -> ShowS
$cshowList :: [CustomerMeCollectorInfo] -> ShowS
show :: CustomerMeCollectorInfo -> String
$cshow :: CustomerMeCollectorInfo -> String
showsPrec :: Int -> CustomerMeCollectorInfo -> ShowS
$cshowsPrec :: Int -> CustomerMeCollectorInfo -> ShowS
Prelude.Show, forall x. Rep CustomerMeCollectorInfo x -> CustomerMeCollectorInfo
forall x. CustomerMeCollectorInfo -> Rep CustomerMeCollectorInfo x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CustomerMeCollectorInfo x -> CustomerMeCollectorInfo
$cfrom :: forall x. CustomerMeCollectorInfo -> Rep CustomerMeCollectorInfo x
Prelude.Generic)

-- |
-- Create a value of 'CustomerMeCollectorInfo' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'activeMeCollectors', 'customerMeCollectorInfo_activeMeCollectors' - The number of active Migration Evaluator collectors.
--
-- 'healthyMeCollectors', 'customerMeCollectorInfo_healthyMeCollectors' - The number of healthy Migration Evaluator collectors.
--
-- 'denyListedMeCollectors', 'customerMeCollectorInfo_denyListedMeCollectors' - The number of deny-listed Migration Evaluator collectors.
--
-- 'shutdownMeCollectors', 'customerMeCollectorInfo_shutdownMeCollectors' - The number of Migration Evaluator collectors with @SHUTDOWN@ status.
--
-- 'unhealthyMeCollectors', 'customerMeCollectorInfo_unhealthyMeCollectors' - The number of unhealthy Migration Evaluator collectors.
--
-- 'totalMeCollectors', 'customerMeCollectorInfo_totalMeCollectors' - The total number of Migration Evaluator collectors.
--
-- 'unknownMeCollectors', 'customerMeCollectorInfo_unknownMeCollectors' - The number of unknown Migration Evaluator collectors.
newCustomerMeCollectorInfo ::
  -- | 'activeMeCollectors'
  Prelude.Int ->
  -- | 'healthyMeCollectors'
  Prelude.Int ->
  -- | 'denyListedMeCollectors'
  Prelude.Int ->
  -- | 'shutdownMeCollectors'
  Prelude.Int ->
  -- | 'unhealthyMeCollectors'
  Prelude.Int ->
  -- | 'totalMeCollectors'
  Prelude.Int ->
  -- | 'unknownMeCollectors'
  Prelude.Int ->
  CustomerMeCollectorInfo
newCustomerMeCollectorInfo :: Int
-> Int
-> Int
-> Int
-> Int
-> Int
-> Int
-> CustomerMeCollectorInfo
newCustomerMeCollectorInfo
  Int
pActiveMeCollectors_
  Int
pHealthyMeCollectors_
  Int
pDenyListedMeCollectors_
  Int
pShutdownMeCollectors_
  Int
pUnhealthyMeCollectors_
  Int
pTotalMeCollectors_
  Int
pUnknownMeCollectors_ =
    CustomerMeCollectorInfo'
      { $sel:activeMeCollectors:CustomerMeCollectorInfo' :: Int
activeMeCollectors =
          Int
pActiveMeCollectors_,
        $sel:healthyMeCollectors:CustomerMeCollectorInfo' :: Int
healthyMeCollectors = Int
pHealthyMeCollectors_,
        $sel:denyListedMeCollectors:CustomerMeCollectorInfo' :: Int
denyListedMeCollectors = Int
pDenyListedMeCollectors_,
        $sel:shutdownMeCollectors:CustomerMeCollectorInfo' :: Int
shutdownMeCollectors = Int
pShutdownMeCollectors_,
        $sel:unhealthyMeCollectors:CustomerMeCollectorInfo' :: Int
unhealthyMeCollectors = Int
pUnhealthyMeCollectors_,
        $sel:totalMeCollectors:CustomerMeCollectorInfo' :: Int
totalMeCollectors = Int
pTotalMeCollectors_,
        $sel:unknownMeCollectors:CustomerMeCollectorInfo' :: Int
unknownMeCollectors = Int
pUnknownMeCollectors_
      }

-- | The number of active Migration Evaluator collectors.
customerMeCollectorInfo_activeMeCollectors :: Lens.Lens' CustomerMeCollectorInfo Prelude.Int
customerMeCollectorInfo_activeMeCollectors :: Lens' CustomerMeCollectorInfo Int
customerMeCollectorInfo_activeMeCollectors = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CustomerMeCollectorInfo' {Int
activeMeCollectors :: Int
$sel:activeMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
activeMeCollectors} -> Int
activeMeCollectors) (\s :: CustomerMeCollectorInfo
s@CustomerMeCollectorInfo' {} Int
a -> CustomerMeCollectorInfo
s {$sel:activeMeCollectors:CustomerMeCollectorInfo' :: Int
activeMeCollectors = Int
a} :: CustomerMeCollectorInfo)

-- | The number of healthy Migration Evaluator collectors.
customerMeCollectorInfo_healthyMeCollectors :: Lens.Lens' CustomerMeCollectorInfo Prelude.Int
customerMeCollectorInfo_healthyMeCollectors :: Lens' CustomerMeCollectorInfo Int
customerMeCollectorInfo_healthyMeCollectors = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CustomerMeCollectorInfo' {Int
healthyMeCollectors :: Int
$sel:healthyMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
healthyMeCollectors} -> Int
healthyMeCollectors) (\s :: CustomerMeCollectorInfo
s@CustomerMeCollectorInfo' {} Int
a -> CustomerMeCollectorInfo
s {$sel:healthyMeCollectors:CustomerMeCollectorInfo' :: Int
healthyMeCollectors = Int
a} :: CustomerMeCollectorInfo)

-- | The number of deny-listed Migration Evaluator collectors.
customerMeCollectorInfo_denyListedMeCollectors :: Lens.Lens' CustomerMeCollectorInfo Prelude.Int
customerMeCollectorInfo_denyListedMeCollectors :: Lens' CustomerMeCollectorInfo Int
customerMeCollectorInfo_denyListedMeCollectors = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CustomerMeCollectorInfo' {Int
denyListedMeCollectors :: Int
$sel:denyListedMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
denyListedMeCollectors} -> Int
denyListedMeCollectors) (\s :: CustomerMeCollectorInfo
s@CustomerMeCollectorInfo' {} Int
a -> CustomerMeCollectorInfo
s {$sel:denyListedMeCollectors:CustomerMeCollectorInfo' :: Int
denyListedMeCollectors = Int
a} :: CustomerMeCollectorInfo)

-- | The number of Migration Evaluator collectors with @SHUTDOWN@ status.
customerMeCollectorInfo_shutdownMeCollectors :: Lens.Lens' CustomerMeCollectorInfo Prelude.Int
customerMeCollectorInfo_shutdownMeCollectors :: Lens' CustomerMeCollectorInfo Int
customerMeCollectorInfo_shutdownMeCollectors = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CustomerMeCollectorInfo' {Int
shutdownMeCollectors :: Int
$sel:shutdownMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
shutdownMeCollectors} -> Int
shutdownMeCollectors) (\s :: CustomerMeCollectorInfo
s@CustomerMeCollectorInfo' {} Int
a -> CustomerMeCollectorInfo
s {$sel:shutdownMeCollectors:CustomerMeCollectorInfo' :: Int
shutdownMeCollectors = Int
a} :: CustomerMeCollectorInfo)

-- | The number of unhealthy Migration Evaluator collectors.
customerMeCollectorInfo_unhealthyMeCollectors :: Lens.Lens' CustomerMeCollectorInfo Prelude.Int
customerMeCollectorInfo_unhealthyMeCollectors :: Lens' CustomerMeCollectorInfo Int
customerMeCollectorInfo_unhealthyMeCollectors = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CustomerMeCollectorInfo' {Int
unhealthyMeCollectors :: Int
$sel:unhealthyMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
unhealthyMeCollectors} -> Int
unhealthyMeCollectors) (\s :: CustomerMeCollectorInfo
s@CustomerMeCollectorInfo' {} Int
a -> CustomerMeCollectorInfo
s {$sel:unhealthyMeCollectors:CustomerMeCollectorInfo' :: Int
unhealthyMeCollectors = Int
a} :: CustomerMeCollectorInfo)

-- | The total number of Migration Evaluator collectors.
customerMeCollectorInfo_totalMeCollectors :: Lens.Lens' CustomerMeCollectorInfo Prelude.Int
customerMeCollectorInfo_totalMeCollectors :: Lens' CustomerMeCollectorInfo Int
customerMeCollectorInfo_totalMeCollectors = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CustomerMeCollectorInfo' {Int
totalMeCollectors :: Int
$sel:totalMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
totalMeCollectors} -> Int
totalMeCollectors) (\s :: CustomerMeCollectorInfo
s@CustomerMeCollectorInfo' {} Int
a -> CustomerMeCollectorInfo
s {$sel:totalMeCollectors:CustomerMeCollectorInfo' :: Int
totalMeCollectors = Int
a} :: CustomerMeCollectorInfo)

-- | The number of unknown Migration Evaluator collectors.
customerMeCollectorInfo_unknownMeCollectors :: Lens.Lens' CustomerMeCollectorInfo Prelude.Int
customerMeCollectorInfo_unknownMeCollectors :: Lens' CustomerMeCollectorInfo Int
customerMeCollectorInfo_unknownMeCollectors = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CustomerMeCollectorInfo' {Int
unknownMeCollectors :: Int
$sel:unknownMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
unknownMeCollectors} -> Int
unknownMeCollectors) (\s :: CustomerMeCollectorInfo
s@CustomerMeCollectorInfo' {} Int
a -> CustomerMeCollectorInfo
s {$sel:unknownMeCollectors:CustomerMeCollectorInfo' :: Int
unknownMeCollectors = Int
a} :: CustomerMeCollectorInfo)

instance Data.FromJSON CustomerMeCollectorInfo where
  parseJSON :: Value -> Parser CustomerMeCollectorInfo
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"CustomerMeCollectorInfo"
      ( \Object
x ->
          Int
-> Int
-> Int
-> Int
-> Int
-> Int
-> Int
-> CustomerMeCollectorInfo
CustomerMeCollectorInfo'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"activeMeCollectors")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"healthyMeCollectors")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"denyListedMeCollectors")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"shutdownMeCollectors")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"unhealthyMeCollectors")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"totalMeCollectors")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"unknownMeCollectors")
      )

instance Prelude.Hashable CustomerMeCollectorInfo where
  hashWithSalt :: Int -> CustomerMeCollectorInfo -> Int
hashWithSalt Int
_salt CustomerMeCollectorInfo' {Int
unknownMeCollectors :: Int
totalMeCollectors :: Int
unhealthyMeCollectors :: Int
shutdownMeCollectors :: Int
denyListedMeCollectors :: Int
healthyMeCollectors :: Int
activeMeCollectors :: Int
$sel:unknownMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
$sel:totalMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
$sel:unhealthyMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
$sel:shutdownMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
$sel:denyListedMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
$sel:healthyMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
$sel:activeMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Int
activeMeCollectors
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Int
healthyMeCollectors
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Int
denyListedMeCollectors
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Int
shutdownMeCollectors
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Int
unhealthyMeCollectors
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Int
totalMeCollectors
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Int
unknownMeCollectors

instance Prelude.NFData CustomerMeCollectorInfo where
  rnf :: CustomerMeCollectorInfo -> ()
rnf CustomerMeCollectorInfo' {Int
unknownMeCollectors :: Int
totalMeCollectors :: Int
unhealthyMeCollectors :: Int
shutdownMeCollectors :: Int
denyListedMeCollectors :: Int
healthyMeCollectors :: Int
activeMeCollectors :: Int
$sel:unknownMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
$sel:totalMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
$sel:unhealthyMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
$sel:shutdownMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
$sel:denyListedMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
$sel:healthyMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
$sel:activeMeCollectors:CustomerMeCollectorInfo' :: CustomerMeCollectorInfo -> Int
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Int
activeMeCollectors
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
healthyMeCollectors
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
denyListedMeCollectors
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
shutdownMeCollectors
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
unhealthyMeCollectors
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
totalMeCollectors
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
unknownMeCollectors