{-# 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.MediaLive.Types.HlsTimedMetadataScheduleActionSettings 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 HlsTimedMetadataScheduleActionSettings = HlsTimedMetadataScheduleActionSettings'
{
HlsTimedMetadataScheduleActionSettings -> Text
id3 :: Prelude.Text
}
deriving (HlsTimedMetadataScheduleActionSettings
-> HlsTimedMetadataScheduleActionSettings -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HlsTimedMetadataScheduleActionSettings
-> HlsTimedMetadataScheduleActionSettings -> Bool
$c/= :: HlsTimedMetadataScheduleActionSettings
-> HlsTimedMetadataScheduleActionSettings -> Bool
== :: HlsTimedMetadataScheduleActionSettings
-> HlsTimedMetadataScheduleActionSettings -> Bool
$c== :: HlsTimedMetadataScheduleActionSettings
-> HlsTimedMetadataScheduleActionSettings -> Bool
Prelude.Eq, ReadPrec [HlsTimedMetadataScheduleActionSettings]
ReadPrec HlsTimedMetadataScheduleActionSettings
Int -> ReadS HlsTimedMetadataScheduleActionSettings
ReadS [HlsTimedMetadataScheduleActionSettings]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HlsTimedMetadataScheduleActionSettings]
$creadListPrec :: ReadPrec [HlsTimedMetadataScheduleActionSettings]
readPrec :: ReadPrec HlsTimedMetadataScheduleActionSettings
$creadPrec :: ReadPrec HlsTimedMetadataScheduleActionSettings
readList :: ReadS [HlsTimedMetadataScheduleActionSettings]
$creadList :: ReadS [HlsTimedMetadataScheduleActionSettings]
readsPrec :: Int -> ReadS HlsTimedMetadataScheduleActionSettings
$creadsPrec :: Int -> ReadS HlsTimedMetadataScheduleActionSettings
Prelude.Read, Int -> HlsTimedMetadataScheduleActionSettings -> ShowS
[HlsTimedMetadataScheduleActionSettings] -> ShowS
HlsTimedMetadataScheduleActionSettings -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HlsTimedMetadataScheduleActionSettings] -> ShowS
$cshowList :: [HlsTimedMetadataScheduleActionSettings] -> ShowS
show :: HlsTimedMetadataScheduleActionSettings -> String
$cshow :: HlsTimedMetadataScheduleActionSettings -> String
showsPrec :: Int -> HlsTimedMetadataScheduleActionSettings -> ShowS
$cshowsPrec :: Int -> HlsTimedMetadataScheduleActionSettings -> ShowS
Prelude.Show, forall x.
Rep HlsTimedMetadataScheduleActionSettings x
-> HlsTimedMetadataScheduleActionSettings
forall x.
HlsTimedMetadataScheduleActionSettings
-> Rep HlsTimedMetadataScheduleActionSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep HlsTimedMetadataScheduleActionSettings x
-> HlsTimedMetadataScheduleActionSettings
$cfrom :: forall x.
HlsTimedMetadataScheduleActionSettings
-> Rep HlsTimedMetadataScheduleActionSettings x
Prelude.Generic)
newHlsTimedMetadataScheduleActionSettings ::
Prelude.Text ->
HlsTimedMetadataScheduleActionSettings
newHlsTimedMetadataScheduleActionSettings :: Text -> HlsTimedMetadataScheduleActionSettings
newHlsTimedMetadataScheduleActionSettings Text
pId3_ =
HlsTimedMetadataScheduleActionSettings'
{ $sel:id3:HlsTimedMetadataScheduleActionSettings' :: Text
id3 =
Text
pId3_
}
hlsTimedMetadataScheduleActionSettings_id3 :: Lens.Lens' HlsTimedMetadataScheduleActionSettings Prelude.Text
hlsTimedMetadataScheduleActionSettings_id3 :: Lens' HlsTimedMetadataScheduleActionSettings Text
hlsTimedMetadataScheduleActionSettings_id3 = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HlsTimedMetadataScheduleActionSettings' {Text
id3 :: Text
$sel:id3:HlsTimedMetadataScheduleActionSettings' :: HlsTimedMetadataScheduleActionSettings -> Text
id3} -> Text
id3) (\s :: HlsTimedMetadataScheduleActionSettings
s@HlsTimedMetadataScheduleActionSettings' {} Text
a -> HlsTimedMetadataScheduleActionSettings
s {$sel:id3:HlsTimedMetadataScheduleActionSettings' :: Text
id3 = Text
a} :: HlsTimedMetadataScheduleActionSettings)
instance
Data.FromJSON
HlsTimedMetadataScheduleActionSettings
where
parseJSON :: Value -> Parser HlsTimedMetadataScheduleActionSettings
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"HlsTimedMetadataScheduleActionSettings"
( \Object
x ->
Text -> HlsTimedMetadataScheduleActionSettings
HlsTimedMetadataScheduleActionSettings'
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
"id3")
)
instance
Prelude.Hashable
HlsTimedMetadataScheduleActionSettings
where
hashWithSalt :: Int -> HlsTimedMetadataScheduleActionSettings -> Int
hashWithSalt
Int
_salt
HlsTimedMetadataScheduleActionSettings' {Text
id3 :: Text
$sel:id3:HlsTimedMetadataScheduleActionSettings' :: HlsTimedMetadataScheduleActionSettings -> Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
id3
instance
Prelude.NFData
HlsTimedMetadataScheduleActionSettings
where
rnf :: HlsTimedMetadataScheduleActionSettings -> ()
rnf HlsTimedMetadataScheduleActionSettings' {Text
id3 :: Text
$sel:id3:HlsTimedMetadataScheduleActionSettings' :: HlsTimedMetadataScheduleActionSettings -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
id3
instance
Data.ToJSON
HlsTimedMetadataScheduleActionSettings
where
toJSON :: HlsTimedMetadataScheduleActionSettings -> Value
toJSON HlsTimedMetadataScheduleActionSettings' {Text
id3 :: Text
$sel:id3:HlsTimedMetadataScheduleActionSettings' :: HlsTimedMetadataScheduleActionSettings -> Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[forall a. a -> Maybe a
Prelude.Just (Key
"id3" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
id3)]
)