{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.KinesisVideoArchivedMedia.Types.DASHPlaybackMode
( DASHPlaybackMode
( ..,
DASHPlaybackMode_LIVE,
DASHPlaybackMode_LIVE_REPLAY,
DASHPlaybackMode_ON_DEMAND
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype DASHPlaybackMode = DASHPlaybackMode'
{ DASHPlaybackMode -> Text
fromDASHPlaybackMode ::
Core.Text
}
deriving stock
( Int -> DASHPlaybackMode -> ShowS
[DASHPlaybackMode] -> ShowS
DASHPlaybackMode -> String
(Int -> DASHPlaybackMode -> ShowS)
-> (DASHPlaybackMode -> String)
-> ([DASHPlaybackMode] -> ShowS)
-> Show DASHPlaybackMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DASHPlaybackMode] -> ShowS
$cshowList :: [DASHPlaybackMode] -> ShowS
show :: DASHPlaybackMode -> String
$cshow :: DASHPlaybackMode -> String
showsPrec :: Int -> DASHPlaybackMode -> ShowS
$cshowsPrec :: Int -> DASHPlaybackMode -> ShowS
Prelude.Show,
ReadPrec [DASHPlaybackMode]
ReadPrec DASHPlaybackMode
Int -> ReadS DASHPlaybackMode
ReadS [DASHPlaybackMode]
(Int -> ReadS DASHPlaybackMode)
-> ReadS [DASHPlaybackMode]
-> ReadPrec DASHPlaybackMode
-> ReadPrec [DASHPlaybackMode]
-> Read DASHPlaybackMode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DASHPlaybackMode]
$creadListPrec :: ReadPrec [DASHPlaybackMode]
readPrec :: ReadPrec DASHPlaybackMode
$creadPrec :: ReadPrec DASHPlaybackMode
readList :: ReadS [DASHPlaybackMode]
$creadList :: ReadS [DASHPlaybackMode]
readsPrec :: Int -> ReadS DASHPlaybackMode
$creadsPrec :: Int -> ReadS DASHPlaybackMode
Prelude.Read,
DASHPlaybackMode -> DASHPlaybackMode -> Bool
(DASHPlaybackMode -> DASHPlaybackMode -> Bool)
-> (DASHPlaybackMode -> DASHPlaybackMode -> Bool)
-> Eq DASHPlaybackMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DASHPlaybackMode -> DASHPlaybackMode -> Bool
$c/= :: DASHPlaybackMode -> DASHPlaybackMode -> Bool
== :: DASHPlaybackMode -> DASHPlaybackMode -> Bool
$c== :: DASHPlaybackMode -> DASHPlaybackMode -> Bool
Prelude.Eq,
Eq DASHPlaybackMode
Eq DASHPlaybackMode
-> (DASHPlaybackMode -> DASHPlaybackMode -> Ordering)
-> (DASHPlaybackMode -> DASHPlaybackMode -> Bool)
-> (DASHPlaybackMode -> DASHPlaybackMode -> Bool)
-> (DASHPlaybackMode -> DASHPlaybackMode -> Bool)
-> (DASHPlaybackMode -> DASHPlaybackMode -> Bool)
-> (DASHPlaybackMode -> DASHPlaybackMode -> DASHPlaybackMode)
-> (DASHPlaybackMode -> DASHPlaybackMode -> DASHPlaybackMode)
-> Ord DASHPlaybackMode
DASHPlaybackMode -> DASHPlaybackMode -> Bool
DASHPlaybackMode -> DASHPlaybackMode -> Ordering
DASHPlaybackMode -> DASHPlaybackMode -> DASHPlaybackMode
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 :: DASHPlaybackMode -> DASHPlaybackMode -> DASHPlaybackMode
$cmin :: DASHPlaybackMode -> DASHPlaybackMode -> DASHPlaybackMode
max :: DASHPlaybackMode -> DASHPlaybackMode -> DASHPlaybackMode
$cmax :: DASHPlaybackMode -> DASHPlaybackMode -> DASHPlaybackMode
>= :: DASHPlaybackMode -> DASHPlaybackMode -> Bool
$c>= :: DASHPlaybackMode -> DASHPlaybackMode -> Bool
> :: DASHPlaybackMode -> DASHPlaybackMode -> Bool
$c> :: DASHPlaybackMode -> DASHPlaybackMode -> Bool
<= :: DASHPlaybackMode -> DASHPlaybackMode -> Bool
$c<= :: DASHPlaybackMode -> DASHPlaybackMode -> Bool
< :: DASHPlaybackMode -> DASHPlaybackMode -> Bool
$c< :: DASHPlaybackMode -> DASHPlaybackMode -> Bool
compare :: DASHPlaybackMode -> DASHPlaybackMode -> Ordering
$ccompare :: DASHPlaybackMode -> DASHPlaybackMode -> Ordering
$cp1Ord :: Eq DASHPlaybackMode
Prelude.Ord,
(forall x. DASHPlaybackMode -> Rep DASHPlaybackMode x)
-> (forall x. Rep DASHPlaybackMode x -> DASHPlaybackMode)
-> Generic DASHPlaybackMode
forall x. Rep DASHPlaybackMode x -> DASHPlaybackMode
forall x. DASHPlaybackMode -> Rep DASHPlaybackMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DASHPlaybackMode x -> DASHPlaybackMode
$cfrom :: forall x. DASHPlaybackMode -> Rep DASHPlaybackMode x
Prelude.Generic
)
deriving newtype
( Int -> DASHPlaybackMode -> Int
DASHPlaybackMode -> Int
(Int -> DASHPlaybackMode -> Int)
-> (DASHPlaybackMode -> Int) -> Hashable DASHPlaybackMode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DASHPlaybackMode -> Int
$chash :: DASHPlaybackMode -> Int
hashWithSalt :: Int -> DASHPlaybackMode -> Int
$chashWithSalt :: Int -> DASHPlaybackMode -> Int
Prelude.Hashable,
DASHPlaybackMode -> ()
(DASHPlaybackMode -> ()) -> NFData DASHPlaybackMode
forall a. (a -> ()) -> NFData a
rnf :: DASHPlaybackMode -> ()
$crnf :: DASHPlaybackMode -> ()
Prelude.NFData,
Text -> Either String DASHPlaybackMode
(Text -> Either String DASHPlaybackMode)
-> FromText DASHPlaybackMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DASHPlaybackMode
$cfromText :: Text -> Either String DASHPlaybackMode
Core.FromText,
DASHPlaybackMode -> Text
(DASHPlaybackMode -> Text) -> ToText DASHPlaybackMode
forall a. (a -> Text) -> ToText a
toText :: DASHPlaybackMode -> Text
$ctoText :: DASHPlaybackMode -> Text
Core.ToText,
DASHPlaybackMode -> ByteString
(DASHPlaybackMode -> ByteString) -> ToByteString DASHPlaybackMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: DASHPlaybackMode -> ByteString
$ctoBS :: DASHPlaybackMode -> ByteString
Core.ToByteString,
DASHPlaybackMode -> ByteStringBuilder
(DASHPlaybackMode -> ByteStringBuilder) -> ToLog DASHPlaybackMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DASHPlaybackMode -> ByteStringBuilder
$cbuild :: DASHPlaybackMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> DASHPlaybackMode -> [Header]
(HeaderName -> DASHPlaybackMode -> [Header])
-> ToHeader DASHPlaybackMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DASHPlaybackMode -> [Header]
$ctoHeader :: HeaderName -> DASHPlaybackMode -> [Header]
Core.ToHeader,
DASHPlaybackMode -> QueryString
(DASHPlaybackMode -> QueryString) -> ToQuery DASHPlaybackMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DASHPlaybackMode -> QueryString
$ctoQuery :: DASHPlaybackMode -> QueryString
Core.ToQuery,
Value -> Parser [DASHPlaybackMode]
Value -> Parser DASHPlaybackMode
(Value -> Parser DASHPlaybackMode)
-> (Value -> Parser [DASHPlaybackMode])
-> FromJSON DASHPlaybackMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DASHPlaybackMode]
$cparseJSONList :: Value -> Parser [DASHPlaybackMode]
parseJSON :: Value -> Parser DASHPlaybackMode
$cparseJSON :: Value -> Parser DASHPlaybackMode
Core.FromJSON,
FromJSONKeyFunction [DASHPlaybackMode]
FromJSONKeyFunction DASHPlaybackMode
FromJSONKeyFunction DASHPlaybackMode
-> FromJSONKeyFunction [DASHPlaybackMode]
-> FromJSONKey DASHPlaybackMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DASHPlaybackMode]
$cfromJSONKeyList :: FromJSONKeyFunction [DASHPlaybackMode]
fromJSONKey :: FromJSONKeyFunction DASHPlaybackMode
$cfromJSONKey :: FromJSONKeyFunction DASHPlaybackMode
Core.FromJSONKey,
[DASHPlaybackMode] -> Encoding
[DASHPlaybackMode] -> Value
DASHPlaybackMode -> Encoding
DASHPlaybackMode -> Value
(DASHPlaybackMode -> Value)
-> (DASHPlaybackMode -> Encoding)
-> ([DASHPlaybackMode] -> Value)
-> ([DASHPlaybackMode] -> Encoding)
-> ToJSON DASHPlaybackMode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DASHPlaybackMode] -> Encoding
$ctoEncodingList :: [DASHPlaybackMode] -> Encoding
toJSONList :: [DASHPlaybackMode] -> Value
$ctoJSONList :: [DASHPlaybackMode] -> Value
toEncoding :: DASHPlaybackMode -> Encoding
$ctoEncoding :: DASHPlaybackMode -> Encoding
toJSON :: DASHPlaybackMode -> Value
$ctoJSON :: DASHPlaybackMode -> Value
Core.ToJSON,
ToJSONKeyFunction [DASHPlaybackMode]
ToJSONKeyFunction DASHPlaybackMode
ToJSONKeyFunction DASHPlaybackMode
-> ToJSONKeyFunction [DASHPlaybackMode]
-> ToJSONKey DASHPlaybackMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DASHPlaybackMode]
$ctoJSONKeyList :: ToJSONKeyFunction [DASHPlaybackMode]
toJSONKey :: ToJSONKeyFunction DASHPlaybackMode
$ctoJSONKey :: ToJSONKeyFunction DASHPlaybackMode
Core.ToJSONKey,
[Node] -> Either String DASHPlaybackMode
([Node] -> Either String DASHPlaybackMode)
-> FromXML DASHPlaybackMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DASHPlaybackMode
$cparseXML :: [Node] -> Either String DASHPlaybackMode
Core.FromXML,
DASHPlaybackMode -> XML
(DASHPlaybackMode -> XML) -> ToXML DASHPlaybackMode
forall a. (a -> XML) -> ToXML a
toXML :: DASHPlaybackMode -> XML
$ctoXML :: DASHPlaybackMode -> XML
Core.ToXML
)
pattern DASHPlaybackMode_LIVE :: DASHPlaybackMode
pattern $bDASHPlaybackMode_LIVE :: DASHPlaybackMode
$mDASHPlaybackMode_LIVE :: forall r. DASHPlaybackMode -> (Void# -> r) -> (Void# -> r) -> r
DASHPlaybackMode_LIVE = DASHPlaybackMode' "LIVE"
pattern DASHPlaybackMode_LIVE_REPLAY :: DASHPlaybackMode
pattern $bDASHPlaybackMode_LIVE_REPLAY :: DASHPlaybackMode
$mDASHPlaybackMode_LIVE_REPLAY :: forall r. DASHPlaybackMode -> (Void# -> r) -> (Void# -> r) -> r
DASHPlaybackMode_LIVE_REPLAY = DASHPlaybackMode' "LIVE_REPLAY"
pattern DASHPlaybackMode_ON_DEMAND :: DASHPlaybackMode
pattern $bDASHPlaybackMode_ON_DEMAND :: DASHPlaybackMode
$mDASHPlaybackMode_ON_DEMAND :: forall r. DASHPlaybackMode -> (Void# -> r) -> (Void# -> r) -> r
DASHPlaybackMode_ON_DEMAND = DASHPlaybackMode' "ON_DEMAND"
{-# COMPLETE
DASHPlaybackMode_LIVE,
DASHPlaybackMode_LIVE_REPLAY,
DASHPlaybackMode_ON_DEMAND,
DASHPlaybackMode'
#-}