{-# 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.ContainerFormat
( ContainerFormat
( ..,
ContainerFormat_FRAGMENTED_MP4,
ContainerFormat_MPEG_TS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ContainerFormat = ContainerFormat'
{ ContainerFormat -> Text
fromContainerFormat ::
Core.Text
}
deriving stock
( Int -> ContainerFormat -> ShowS
[ContainerFormat] -> ShowS
ContainerFormat -> String
(Int -> ContainerFormat -> ShowS)
-> (ContainerFormat -> String)
-> ([ContainerFormat] -> ShowS)
-> Show ContainerFormat
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ContainerFormat] -> ShowS
$cshowList :: [ContainerFormat] -> ShowS
show :: ContainerFormat -> String
$cshow :: ContainerFormat -> String
showsPrec :: Int -> ContainerFormat -> ShowS
$cshowsPrec :: Int -> ContainerFormat -> ShowS
Prelude.Show,
ReadPrec [ContainerFormat]
ReadPrec ContainerFormat
Int -> ReadS ContainerFormat
ReadS [ContainerFormat]
(Int -> ReadS ContainerFormat)
-> ReadS [ContainerFormat]
-> ReadPrec ContainerFormat
-> ReadPrec [ContainerFormat]
-> Read ContainerFormat
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ContainerFormat]
$creadListPrec :: ReadPrec [ContainerFormat]
readPrec :: ReadPrec ContainerFormat
$creadPrec :: ReadPrec ContainerFormat
readList :: ReadS [ContainerFormat]
$creadList :: ReadS [ContainerFormat]
readsPrec :: Int -> ReadS ContainerFormat
$creadsPrec :: Int -> ReadS ContainerFormat
Prelude.Read,
ContainerFormat -> ContainerFormat -> Bool
(ContainerFormat -> ContainerFormat -> Bool)
-> (ContainerFormat -> ContainerFormat -> Bool)
-> Eq ContainerFormat
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ContainerFormat -> ContainerFormat -> Bool
$c/= :: ContainerFormat -> ContainerFormat -> Bool
== :: ContainerFormat -> ContainerFormat -> Bool
$c== :: ContainerFormat -> ContainerFormat -> Bool
Prelude.Eq,
Eq ContainerFormat
Eq ContainerFormat
-> (ContainerFormat -> ContainerFormat -> Ordering)
-> (ContainerFormat -> ContainerFormat -> Bool)
-> (ContainerFormat -> ContainerFormat -> Bool)
-> (ContainerFormat -> ContainerFormat -> Bool)
-> (ContainerFormat -> ContainerFormat -> Bool)
-> (ContainerFormat -> ContainerFormat -> ContainerFormat)
-> (ContainerFormat -> ContainerFormat -> ContainerFormat)
-> Ord ContainerFormat
ContainerFormat -> ContainerFormat -> Bool
ContainerFormat -> ContainerFormat -> Ordering
ContainerFormat -> ContainerFormat -> ContainerFormat
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 :: ContainerFormat -> ContainerFormat -> ContainerFormat
$cmin :: ContainerFormat -> ContainerFormat -> ContainerFormat
max :: ContainerFormat -> ContainerFormat -> ContainerFormat
$cmax :: ContainerFormat -> ContainerFormat -> ContainerFormat
>= :: ContainerFormat -> ContainerFormat -> Bool
$c>= :: ContainerFormat -> ContainerFormat -> Bool
> :: ContainerFormat -> ContainerFormat -> Bool
$c> :: ContainerFormat -> ContainerFormat -> Bool
<= :: ContainerFormat -> ContainerFormat -> Bool
$c<= :: ContainerFormat -> ContainerFormat -> Bool
< :: ContainerFormat -> ContainerFormat -> Bool
$c< :: ContainerFormat -> ContainerFormat -> Bool
compare :: ContainerFormat -> ContainerFormat -> Ordering
$ccompare :: ContainerFormat -> ContainerFormat -> Ordering
$cp1Ord :: Eq ContainerFormat
Prelude.Ord,
(forall x. ContainerFormat -> Rep ContainerFormat x)
-> (forall x. Rep ContainerFormat x -> ContainerFormat)
-> Generic ContainerFormat
forall x. Rep ContainerFormat x -> ContainerFormat
forall x. ContainerFormat -> Rep ContainerFormat x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ContainerFormat x -> ContainerFormat
$cfrom :: forall x. ContainerFormat -> Rep ContainerFormat x
Prelude.Generic
)
deriving newtype
( Int -> ContainerFormat -> Int
ContainerFormat -> Int
(Int -> ContainerFormat -> Int)
-> (ContainerFormat -> Int) -> Hashable ContainerFormat
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ContainerFormat -> Int
$chash :: ContainerFormat -> Int
hashWithSalt :: Int -> ContainerFormat -> Int
$chashWithSalt :: Int -> ContainerFormat -> Int
Prelude.Hashable,
ContainerFormat -> ()
(ContainerFormat -> ()) -> NFData ContainerFormat
forall a. (a -> ()) -> NFData a
rnf :: ContainerFormat -> ()
$crnf :: ContainerFormat -> ()
Prelude.NFData,
Text -> Either String ContainerFormat
(Text -> Either String ContainerFormat) -> FromText ContainerFormat
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ContainerFormat
$cfromText :: Text -> Either String ContainerFormat
Core.FromText,
ContainerFormat -> Text
(ContainerFormat -> Text) -> ToText ContainerFormat
forall a. (a -> Text) -> ToText a
toText :: ContainerFormat -> Text
$ctoText :: ContainerFormat -> Text
Core.ToText,
ContainerFormat -> ByteString
(ContainerFormat -> ByteString) -> ToByteString ContainerFormat
forall a. (a -> ByteString) -> ToByteString a
toBS :: ContainerFormat -> ByteString
$ctoBS :: ContainerFormat -> ByteString
Core.ToByteString,
ContainerFormat -> ByteStringBuilder
(ContainerFormat -> ByteStringBuilder) -> ToLog ContainerFormat
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ContainerFormat -> ByteStringBuilder
$cbuild :: ContainerFormat -> ByteStringBuilder
Core.ToLog,
HeaderName -> ContainerFormat -> [Header]
(HeaderName -> ContainerFormat -> [Header])
-> ToHeader ContainerFormat
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ContainerFormat -> [Header]
$ctoHeader :: HeaderName -> ContainerFormat -> [Header]
Core.ToHeader,
ContainerFormat -> QueryString
(ContainerFormat -> QueryString) -> ToQuery ContainerFormat
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ContainerFormat -> QueryString
$ctoQuery :: ContainerFormat -> QueryString
Core.ToQuery,
Value -> Parser [ContainerFormat]
Value -> Parser ContainerFormat
(Value -> Parser ContainerFormat)
-> (Value -> Parser [ContainerFormat]) -> FromJSON ContainerFormat
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ContainerFormat]
$cparseJSONList :: Value -> Parser [ContainerFormat]
parseJSON :: Value -> Parser ContainerFormat
$cparseJSON :: Value -> Parser ContainerFormat
Core.FromJSON,
FromJSONKeyFunction [ContainerFormat]
FromJSONKeyFunction ContainerFormat
FromJSONKeyFunction ContainerFormat
-> FromJSONKeyFunction [ContainerFormat]
-> FromJSONKey ContainerFormat
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ContainerFormat]
$cfromJSONKeyList :: FromJSONKeyFunction [ContainerFormat]
fromJSONKey :: FromJSONKeyFunction ContainerFormat
$cfromJSONKey :: FromJSONKeyFunction ContainerFormat
Core.FromJSONKey,
[ContainerFormat] -> Encoding
[ContainerFormat] -> Value
ContainerFormat -> Encoding
ContainerFormat -> Value
(ContainerFormat -> Value)
-> (ContainerFormat -> Encoding)
-> ([ContainerFormat] -> Value)
-> ([ContainerFormat] -> Encoding)
-> ToJSON ContainerFormat
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ContainerFormat] -> Encoding
$ctoEncodingList :: [ContainerFormat] -> Encoding
toJSONList :: [ContainerFormat] -> Value
$ctoJSONList :: [ContainerFormat] -> Value
toEncoding :: ContainerFormat -> Encoding
$ctoEncoding :: ContainerFormat -> Encoding
toJSON :: ContainerFormat -> Value
$ctoJSON :: ContainerFormat -> Value
Core.ToJSON,
ToJSONKeyFunction [ContainerFormat]
ToJSONKeyFunction ContainerFormat
ToJSONKeyFunction ContainerFormat
-> ToJSONKeyFunction [ContainerFormat] -> ToJSONKey ContainerFormat
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ContainerFormat]
$ctoJSONKeyList :: ToJSONKeyFunction [ContainerFormat]
toJSONKey :: ToJSONKeyFunction ContainerFormat
$ctoJSONKey :: ToJSONKeyFunction ContainerFormat
Core.ToJSONKey,
[Node] -> Either String ContainerFormat
([Node] -> Either String ContainerFormat)
-> FromXML ContainerFormat
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ContainerFormat
$cparseXML :: [Node] -> Either String ContainerFormat
Core.FromXML,
ContainerFormat -> XML
(ContainerFormat -> XML) -> ToXML ContainerFormat
forall a. (a -> XML) -> ToXML a
toXML :: ContainerFormat -> XML
$ctoXML :: ContainerFormat -> XML
Core.ToXML
)
pattern ContainerFormat_FRAGMENTED_MP4 :: ContainerFormat
pattern $bContainerFormat_FRAGMENTED_MP4 :: ContainerFormat
$mContainerFormat_FRAGMENTED_MP4 :: forall r. ContainerFormat -> (Void# -> r) -> (Void# -> r) -> r
ContainerFormat_FRAGMENTED_MP4 = ContainerFormat' "FRAGMENTED_MP4"
pattern ContainerFormat_MPEG_TS :: ContainerFormat
pattern $bContainerFormat_MPEG_TS :: ContainerFormat
$mContainerFormat_MPEG_TS :: forall r. ContainerFormat -> (Void# -> r) -> (Void# -> r) -> r
ContainerFormat_MPEG_TS = ContainerFormat' "MPEG_TS"
{-# COMPLETE
ContainerFormat_FRAGMENTED_MP4,
ContainerFormat_MPEG_TS,
ContainerFormat'
#-}