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