{-# 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 #-}
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
data CustomerMeCollectorInfo = CustomerMeCollectorInfo'
{
CustomerMeCollectorInfo -> Int
activeMeCollectors :: Prelude.Int,
CustomerMeCollectorInfo -> Int
healthyMeCollectors :: Prelude.Int,
CustomerMeCollectorInfo -> Int
denyListedMeCollectors :: Prelude.Int,
CustomerMeCollectorInfo -> Int
shutdownMeCollectors :: Prelude.Int,
CustomerMeCollectorInfo -> Int
unhealthyMeCollectors :: Prelude.Int,
CustomerMeCollectorInfo -> Int
totalMeCollectors :: Prelude.Int,
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)
newCustomerMeCollectorInfo ::
Prelude.Int ->
Prelude.Int ->
Prelude.Int ->
Prelude.Int ->
Prelude.Int ->
Prelude.Int ->
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_
}
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)
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)
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)
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)
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)
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)
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