{-# 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.LookoutEquipment.Types.UnsupportedTimestamps 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 UnsupportedTimestamps = UnsupportedTimestamps'
{
UnsupportedTimestamps -> Int
totalNumberOfUnsupportedTimestamps :: Prelude.Int
}
deriving (UnsupportedTimestamps -> UnsupportedTimestamps -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UnsupportedTimestamps -> UnsupportedTimestamps -> Bool
$c/= :: UnsupportedTimestamps -> UnsupportedTimestamps -> Bool
== :: UnsupportedTimestamps -> UnsupportedTimestamps -> Bool
$c== :: UnsupportedTimestamps -> UnsupportedTimestamps -> Bool
Prelude.Eq, ReadPrec [UnsupportedTimestamps]
ReadPrec UnsupportedTimestamps
Int -> ReadS UnsupportedTimestamps
ReadS [UnsupportedTimestamps]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UnsupportedTimestamps]
$creadListPrec :: ReadPrec [UnsupportedTimestamps]
readPrec :: ReadPrec UnsupportedTimestamps
$creadPrec :: ReadPrec UnsupportedTimestamps
readList :: ReadS [UnsupportedTimestamps]
$creadList :: ReadS [UnsupportedTimestamps]
readsPrec :: Int -> ReadS UnsupportedTimestamps
$creadsPrec :: Int -> ReadS UnsupportedTimestamps
Prelude.Read, Int -> UnsupportedTimestamps -> ShowS
[UnsupportedTimestamps] -> ShowS
UnsupportedTimestamps -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UnsupportedTimestamps] -> ShowS
$cshowList :: [UnsupportedTimestamps] -> ShowS
show :: UnsupportedTimestamps -> String
$cshow :: UnsupportedTimestamps -> String
showsPrec :: Int -> UnsupportedTimestamps -> ShowS
$cshowsPrec :: Int -> UnsupportedTimestamps -> ShowS
Prelude.Show, forall x. Rep UnsupportedTimestamps x -> UnsupportedTimestamps
forall x. UnsupportedTimestamps -> Rep UnsupportedTimestamps x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UnsupportedTimestamps x -> UnsupportedTimestamps
$cfrom :: forall x. UnsupportedTimestamps -> Rep UnsupportedTimestamps x
Prelude.Generic)
newUnsupportedTimestamps ::
Prelude.Int ->
UnsupportedTimestamps
newUnsupportedTimestamps :: Int -> UnsupportedTimestamps
newUnsupportedTimestamps
Int
pTotalNumberOfUnsupportedTimestamps_ =
UnsupportedTimestamps'
{ $sel:totalNumberOfUnsupportedTimestamps:UnsupportedTimestamps' :: Int
totalNumberOfUnsupportedTimestamps =
Int
pTotalNumberOfUnsupportedTimestamps_
}
unsupportedTimestamps_totalNumberOfUnsupportedTimestamps :: Lens.Lens' UnsupportedTimestamps Prelude.Int
unsupportedTimestamps_totalNumberOfUnsupportedTimestamps :: Lens' UnsupportedTimestamps Int
unsupportedTimestamps_totalNumberOfUnsupportedTimestamps = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UnsupportedTimestamps' {Int
totalNumberOfUnsupportedTimestamps :: Int
$sel:totalNumberOfUnsupportedTimestamps:UnsupportedTimestamps' :: UnsupportedTimestamps -> Int
totalNumberOfUnsupportedTimestamps} -> Int
totalNumberOfUnsupportedTimestamps) (\s :: UnsupportedTimestamps
s@UnsupportedTimestamps' {} Int
a -> UnsupportedTimestamps
s {$sel:totalNumberOfUnsupportedTimestamps:UnsupportedTimestamps' :: Int
totalNumberOfUnsupportedTimestamps = Int
a} :: UnsupportedTimestamps)
instance Data.FromJSON UnsupportedTimestamps where
parseJSON :: Value -> Parser UnsupportedTimestamps
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"UnsupportedTimestamps"
( \Object
x ->
Int -> UnsupportedTimestamps
UnsupportedTimestamps'
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
"TotalNumberOfUnsupportedTimestamps")
)
instance Prelude.Hashable UnsupportedTimestamps where
hashWithSalt :: Int -> UnsupportedTimestamps -> Int
hashWithSalt Int
_salt UnsupportedTimestamps' {Int
totalNumberOfUnsupportedTimestamps :: Int
$sel:totalNumberOfUnsupportedTimestamps:UnsupportedTimestamps' :: UnsupportedTimestamps -> Int
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Int
totalNumberOfUnsupportedTimestamps
instance Prelude.NFData UnsupportedTimestamps where
rnf :: UnsupportedTimestamps -> ()
rnf UnsupportedTimestamps' {Int
totalNumberOfUnsupportedTimestamps :: Int
$sel:totalNumberOfUnsupportedTimestamps:UnsupportedTimestamps' :: UnsupportedTimestamps -> Int
..} =
forall a. NFData a => a -> ()
Prelude.rnf Int
totalNumberOfUnsupportedTimestamps