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