{-# 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.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data HlsTimedMetadataScheduleActionSettings = HlsTimedMetadataScheduleActionSettings'
{
HlsTimedMetadataScheduleActionSettings -> Text
id3 :: Prelude.Text
}
deriving (HlsTimedMetadataScheduleActionSettings
-> HlsTimedMetadataScheduleActionSettings -> Bool
(HlsTimedMetadataScheduleActionSettings
-> HlsTimedMetadataScheduleActionSettings -> Bool)
-> (HlsTimedMetadataScheduleActionSettings
-> HlsTimedMetadataScheduleActionSettings -> Bool)
-> Eq HlsTimedMetadataScheduleActionSettings
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]
(Int -> ReadS HlsTimedMetadataScheduleActionSettings)
-> ReadS [HlsTimedMetadataScheduleActionSettings]
-> ReadPrec HlsTimedMetadataScheduleActionSettings
-> ReadPrec [HlsTimedMetadataScheduleActionSettings]
-> Read 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
(Int -> HlsTimedMetadataScheduleActionSettings -> ShowS)
-> (HlsTimedMetadataScheduleActionSettings -> String)
-> ([HlsTimedMetadataScheduleActionSettings] -> ShowS)
-> Show HlsTimedMetadataScheduleActionSettings
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.
HlsTimedMetadataScheduleActionSettings
-> Rep HlsTimedMetadataScheduleActionSettings x)
-> (forall x.
Rep HlsTimedMetadataScheduleActionSettings x
-> HlsTimedMetadataScheduleActionSettings)
-> Generic HlsTimedMetadataScheduleActionSettings
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' :: Text -> HlsTimedMetadataScheduleActionSettings
HlsTimedMetadataScheduleActionSettings'
{ $sel:id3:HlsTimedMetadataScheduleActionSettings' :: Text
id3 =
Text
pId3_
}
hlsTimedMetadataScheduleActionSettings_id3 :: Lens.Lens' HlsTimedMetadataScheduleActionSettings Prelude.Text
hlsTimedMetadataScheduleActionSettings_id3 :: (Text -> f Text)
-> HlsTimedMetadataScheduleActionSettings
-> f HlsTimedMetadataScheduleActionSettings
hlsTimedMetadataScheduleActionSettings_id3 = (HlsTimedMetadataScheduleActionSettings -> Text)
-> (HlsTimedMetadataScheduleActionSettings
-> Text -> HlsTimedMetadataScheduleActionSettings)
-> Lens
HlsTimedMetadataScheduleActionSettings
HlsTimedMetadataScheduleActionSettings
Text
Text
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
Core.FromJSON
HlsTimedMetadataScheduleActionSettings
where
parseJSON :: Value -> Parser HlsTimedMetadataScheduleActionSettings
parseJSON =
String
-> (Object -> Parser HlsTimedMetadataScheduleActionSettings)
-> Value
-> Parser HlsTimedMetadataScheduleActionSettings
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"HlsTimedMetadataScheduleActionSettings"
( \Object
x ->
Text -> HlsTimedMetadataScheduleActionSettings
HlsTimedMetadataScheduleActionSettings'
(Text -> HlsTimedMetadataScheduleActionSettings)
-> Parser Text -> Parser HlsTimedMetadataScheduleActionSettings
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"id3")
)
instance
Prelude.Hashable
HlsTimedMetadataScheduleActionSettings
instance
Prelude.NFData
HlsTimedMetadataScheduleActionSettings
instance
Core.ToJSON
HlsTimedMetadataScheduleActionSettings
where
toJSON :: HlsTimedMetadataScheduleActionSettings -> Value
toJSON HlsTimedMetadataScheduleActionSettings' {Text
id3 :: Text
$sel:id3:HlsTimedMetadataScheduleActionSettings' :: HlsTimedMetadataScheduleActionSettings -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"id3" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
id3)]
)