{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaLive.Types.HlsCaptionLanguageSetting
( HlsCaptionLanguageSetting
( ..,
HlsCaptionLanguageSetting_INSERT,
HlsCaptionLanguageSetting_NONE,
HlsCaptionLanguageSetting_OMIT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype HlsCaptionLanguageSetting = HlsCaptionLanguageSetting'
{ HlsCaptionLanguageSetting -> Text
fromHlsCaptionLanguageSetting ::
Data.Text
}
deriving stock
( Int -> HlsCaptionLanguageSetting -> ShowS
[HlsCaptionLanguageSetting] -> ShowS
HlsCaptionLanguageSetting -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HlsCaptionLanguageSetting] -> ShowS
$cshowList :: [HlsCaptionLanguageSetting] -> ShowS
show :: HlsCaptionLanguageSetting -> String
$cshow :: HlsCaptionLanguageSetting -> String
showsPrec :: Int -> HlsCaptionLanguageSetting -> ShowS
$cshowsPrec :: Int -> HlsCaptionLanguageSetting -> ShowS
Prelude.Show,
ReadPrec [HlsCaptionLanguageSetting]
ReadPrec HlsCaptionLanguageSetting
Int -> ReadS HlsCaptionLanguageSetting
ReadS [HlsCaptionLanguageSetting]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HlsCaptionLanguageSetting]
$creadListPrec :: ReadPrec [HlsCaptionLanguageSetting]
readPrec :: ReadPrec HlsCaptionLanguageSetting
$creadPrec :: ReadPrec HlsCaptionLanguageSetting
readList :: ReadS [HlsCaptionLanguageSetting]
$creadList :: ReadS [HlsCaptionLanguageSetting]
readsPrec :: Int -> ReadS HlsCaptionLanguageSetting
$creadsPrec :: Int -> ReadS HlsCaptionLanguageSetting
Prelude.Read,
HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Bool
$c/= :: HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Bool
== :: HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Bool
$c== :: HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Bool
Prelude.Eq,
Eq HlsCaptionLanguageSetting
HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Bool
HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Ordering
HlsCaptionLanguageSetting
-> HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: HlsCaptionLanguageSetting
-> HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting
$cmin :: HlsCaptionLanguageSetting
-> HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting
max :: HlsCaptionLanguageSetting
-> HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting
$cmax :: HlsCaptionLanguageSetting
-> HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting
>= :: HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Bool
$c>= :: HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Bool
> :: HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Bool
$c> :: HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Bool
<= :: HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Bool
$c<= :: HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Bool
< :: HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Bool
$c< :: HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Bool
compare :: HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Ordering
$ccompare :: HlsCaptionLanguageSetting -> HlsCaptionLanguageSetting -> Ordering
Prelude.Ord,
forall x.
Rep HlsCaptionLanguageSetting x -> HlsCaptionLanguageSetting
forall x.
HlsCaptionLanguageSetting -> Rep HlsCaptionLanguageSetting x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep HlsCaptionLanguageSetting x -> HlsCaptionLanguageSetting
$cfrom :: forall x.
HlsCaptionLanguageSetting -> Rep HlsCaptionLanguageSetting x
Prelude.Generic
)
deriving newtype
( Eq HlsCaptionLanguageSetting
Int -> HlsCaptionLanguageSetting -> Int
HlsCaptionLanguageSetting -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: HlsCaptionLanguageSetting -> Int
$chash :: HlsCaptionLanguageSetting -> Int
hashWithSalt :: Int -> HlsCaptionLanguageSetting -> Int
$chashWithSalt :: Int -> HlsCaptionLanguageSetting -> Int
Prelude.Hashable,
HlsCaptionLanguageSetting -> ()
forall a. (a -> ()) -> NFData a
rnf :: HlsCaptionLanguageSetting -> ()
$crnf :: HlsCaptionLanguageSetting -> ()
Prelude.NFData,
Text -> Either String HlsCaptionLanguageSetting
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String HlsCaptionLanguageSetting
$cfromText :: Text -> Either String HlsCaptionLanguageSetting
Data.FromText,
HlsCaptionLanguageSetting -> Text
forall a. (a -> Text) -> ToText a
toText :: HlsCaptionLanguageSetting -> Text
$ctoText :: HlsCaptionLanguageSetting -> Text
Data.ToText,
HlsCaptionLanguageSetting -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: HlsCaptionLanguageSetting -> ByteString
$ctoBS :: HlsCaptionLanguageSetting -> ByteString
Data.ToByteString,
HlsCaptionLanguageSetting -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: HlsCaptionLanguageSetting -> ByteStringBuilder
$cbuild :: HlsCaptionLanguageSetting -> ByteStringBuilder
Data.ToLog,
HeaderName -> HlsCaptionLanguageSetting -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> HlsCaptionLanguageSetting -> [Header]
$ctoHeader :: HeaderName -> HlsCaptionLanguageSetting -> [Header]
Data.ToHeader,
HlsCaptionLanguageSetting -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: HlsCaptionLanguageSetting -> QueryString
$ctoQuery :: HlsCaptionLanguageSetting -> QueryString
Data.ToQuery,
Value -> Parser [HlsCaptionLanguageSetting]
Value -> Parser HlsCaptionLanguageSetting
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [HlsCaptionLanguageSetting]
$cparseJSONList :: Value -> Parser [HlsCaptionLanguageSetting]
parseJSON :: Value -> Parser HlsCaptionLanguageSetting
$cparseJSON :: Value -> Parser HlsCaptionLanguageSetting
Data.FromJSON,
FromJSONKeyFunction [HlsCaptionLanguageSetting]
FromJSONKeyFunction HlsCaptionLanguageSetting
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [HlsCaptionLanguageSetting]
$cfromJSONKeyList :: FromJSONKeyFunction [HlsCaptionLanguageSetting]
fromJSONKey :: FromJSONKeyFunction HlsCaptionLanguageSetting
$cfromJSONKey :: FromJSONKeyFunction HlsCaptionLanguageSetting
Data.FromJSONKey,
[HlsCaptionLanguageSetting] -> Encoding
[HlsCaptionLanguageSetting] -> Value
HlsCaptionLanguageSetting -> Encoding
HlsCaptionLanguageSetting -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [HlsCaptionLanguageSetting] -> Encoding
$ctoEncodingList :: [HlsCaptionLanguageSetting] -> Encoding
toJSONList :: [HlsCaptionLanguageSetting] -> Value
$ctoJSONList :: [HlsCaptionLanguageSetting] -> Value
toEncoding :: HlsCaptionLanguageSetting -> Encoding
$ctoEncoding :: HlsCaptionLanguageSetting -> Encoding
toJSON :: HlsCaptionLanguageSetting -> Value
$ctoJSON :: HlsCaptionLanguageSetting -> Value
Data.ToJSON,
ToJSONKeyFunction [HlsCaptionLanguageSetting]
ToJSONKeyFunction HlsCaptionLanguageSetting
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [HlsCaptionLanguageSetting]
$ctoJSONKeyList :: ToJSONKeyFunction [HlsCaptionLanguageSetting]
toJSONKey :: ToJSONKeyFunction HlsCaptionLanguageSetting
$ctoJSONKey :: ToJSONKeyFunction HlsCaptionLanguageSetting
Data.ToJSONKey,
[Node] -> Either String HlsCaptionLanguageSetting
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String HlsCaptionLanguageSetting
$cparseXML :: [Node] -> Either String HlsCaptionLanguageSetting
Data.FromXML,
HlsCaptionLanguageSetting -> XML
forall a. (a -> XML) -> ToXML a
toXML :: HlsCaptionLanguageSetting -> XML
$ctoXML :: HlsCaptionLanguageSetting -> XML
Data.ToXML
)
pattern HlsCaptionLanguageSetting_INSERT :: HlsCaptionLanguageSetting
pattern $bHlsCaptionLanguageSetting_INSERT :: HlsCaptionLanguageSetting
$mHlsCaptionLanguageSetting_INSERT :: forall {r}.
HlsCaptionLanguageSetting -> ((# #) -> r) -> ((# #) -> r) -> r
HlsCaptionLanguageSetting_INSERT = HlsCaptionLanguageSetting' "INSERT"
pattern HlsCaptionLanguageSetting_NONE :: HlsCaptionLanguageSetting
pattern $bHlsCaptionLanguageSetting_NONE :: HlsCaptionLanguageSetting
$mHlsCaptionLanguageSetting_NONE :: forall {r}.
HlsCaptionLanguageSetting -> ((# #) -> r) -> ((# #) -> r) -> r
HlsCaptionLanguageSetting_NONE = HlsCaptionLanguageSetting' "NONE"
pattern HlsCaptionLanguageSetting_OMIT :: HlsCaptionLanguageSetting
pattern $bHlsCaptionLanguageSetting_OMIT :: HlsCaptionLanguageSetting
$mHlsCaptionLanguageSetting_OMIT :: forall {r}.
HlsCaptionLanguageSetting -> ((# #) -> r) -> ((# #) -> r) -> r
HlsCaptionLanguageSetting_OMIT = HlsCaptionLanguageSetting' "OMIT"
{-# COMPLETE
HlsCaptionLanguageSetting_INSERT,
HlsCaptionLanguageSetting_NONE,
HlsCaptionLanguageSetting_OMIT,
HlsCaptionLanguageSetting'
#-}