{-# 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.StepFunctions.Types.MapStateStartedEventDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data MapStateStartedEventDetails = MapStateStartedEventDetails'
{
MapStateStartedEventDetails -> Maybe Natural
length :: Prelude.Maybe Prelude.Natural
}
deriving (MapStateStartedEventDetails -> MapStateStartedEventDetails -> Bool
(MapStateStartedEventDetails
-> MapStateStartedEventDetails -> Bool)
-> (MapStateStartedEventDetails
-> MapStateStartedEventDetails -> Bool)
-> Eq MapStateStartedEventDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MapStateStartedEventDetails -> MapStateStartedEventDetails -> Bool
$c/= :: MapStateStartedEventDetails -> MapStateStartedEventDetails -> Bool
== :: MapStateStartedEventDetails -> MapStateStartedEventDetails -> Bool
$c== :: MapStateStartedEventDetails -> MapStateStartedEventDetails -> Bool
Prelude.Eq, ReadPrec [MapStateStartedEventDetails]
ReadPrec MapStateStartedEventDetails
Int -> ReadS MapStateStartedEventDetails
ReadS [MapStateStartedEventDetails]
(Int -> ReadS MapStateStartedEventDetails)
-> ReadS [MapStateStartedEventDetails]
-> ReadPrec MapStateStartedEventDetails
-> ReadPrec [MapStateStartedEventDetails]
-> Read MapStateStartedEventDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MapStateStartedEventDetails]
$creadListPrec :: ReadPrec [MapStateStartedEventDetails]
readPrec :: ReadPrec MapStateStartedEventDetails
$creadPrec :: ReadPrec MapStateStartedEventDetails
readList :: ReadS [MapStateStartedEventDetails]
$creadList :: ReadS [MapStateStartedEventDetails]
readsPrec :: Int -> ReadS MapStateStartedEventDetails
$creadsPrec :: Int -> ReadS MapStateStartedEventDetails
Prelude.Read, Int -> MapStateStartedEventDetails -> ShowS
[MapStateStartedEventDetails] -> ShowS
MapStateStartedEventDetails -> String
(Int -> MapStateStartedEventDetails -> ShowS)
-> (MapStateStartedEventDetails -> String)
-> ([MapStateStartedEventDetails] -> ShowS)
-> Show MapStateStartedEventDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MapStateStartedEventDetails] -> ShowS
$cshowList :: [MapStateStartedEventDetails] -> ShowS
show :: MapStateStartedEventDetails -> String
$cshow :: MapStateStartedEventDetails -> String
showsPrec :: Int -> MapStateStartedEventDetails -> ShowS
$cshowsPrec :: Int -> MapStateStartedEventDetails -> ShowS
Prelude.Show, (forall x.
MapStateStartedEventDetails -> Rep MapStateStartedEventDetails x)
-> (forall x.
Rep MapStateStartedEventDetails x -> MapStateStartedEventDetails)
-> Generic MapStateStartedEventDetails
forall x.
Rep MapStateStartedEventDetails x -> MapStateStartedEventDetails
forall x.
MapStateStartedEventDetails -> Rep MapStateStartedEventDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep MapStateStartedEventDetails x -> MapStateStartedEventDetails
$cfrom :: forall x.
MapStateStartedEventDetails -> Rep MapStateStartedEventDetails x
Prelude.Generic)
newMapStateStartedEventDetails ::
MapStateStartedEventDetails
newMapStateStartedEventDetails :: MapStateStartedEventDetails
newMapStateStartedEventDetails =
MapStateStartedEventDetails' :: Maybe Natural -> MapStateStartedEventDetails
MapStateStartedEventDetails'
{ $sel:length:MapStateStartedEventDetails' :: Maybe Natural
length =
Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
mapStateStartedEventDetails_length :: Lens.Lens' MapStateStartedEventDetails (Prelude.Maybe Prelude.Natural)
mapStateStartedEventDetails_length :: (Maybe Natural -> f (Maybe Natural))
-> MapStateStartedEventDetails -> f MapStateStartedEventDetails
mapStateStartedEventDetails_length = (MapStateStartedEventDetails -> Maybe Natural)
-> (MapStateStartedEventDetails
-> Maybe Natural -> MapStateStartedEventDetails)
-> Lens
MapStateStartedEventDetails
MapStateStartedEventDetails
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MapStateStartedEventDetails' {Maybe Natural
length :: Maybe Natural
$sel:length:MapStateStartedEventDetails' :: MapStateStartedEventDetails -> Maybe Natural
length} -> Maybe Natural
length) (\s :: MapStateStartedEventDetails
s@MapStateStartedEventDetails' {} Maybe Natural
a -> MapStateStartedEventDetails
s {$sel:length:MapStateStartedEventDetails' :: Maybe Natural
length = Maybe Natural
a} :: MapStateStartedEventDetails)
instance Core.FromJSON MapStateStartedEventDetails where
parseJSON :: Value -> Parser MapStateStartedEventDetails
parseJSON =
String
-> (Object -> Parser MapStateStartedEventDetails)
-> Value
-> Parser MapStateStartedEventDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"MapStateStartedEventDetails"
( \Object
x ->
Maybe Natural -> MapStateStartedEventDetails
MapStateStartedEventDetails'
(Maybe Natural -> MapStateStartedEventDetails)
-> Parser (Maybe Natural) -> Parser MapStateStartedEventDetails
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"length")
)
instance Prelude.Hashable MapStateStartedEventDetails
instance Prelude.NFData MapStateStartedEventDetails