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