{-# 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.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype ReservationVideoQuality = ReservationVideoQuality'
{ ReservationVideoQuality -> Text
fromReservationVideoQuality ::
Data.Text
}
deriving stock
( Int -> ReservationVideoQuality -> ShowS
[ReservationVideoQuality] -> ShowS
ReservationVideoQuality -> String
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]
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
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
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
Prelude.Ord,
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
( Eq ReservationVideoQuality
Int -> ReservationVideoQuality -> Int
ReservationVideoQuality -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: ReservationVideoQuality -> ()
$crnf :: ReservationVideoQuality -> ()
Prelude.NFData,
Text -> Either String ReservationVideoQuality
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ReservationVideoQuality
$cfromText :: Text -> Either String ReservationVideoQuality
Data.FromText,
ReservationVideoQuality -> Text
forall a. (a -> Text) -> ToText a
toText :: ReservationVideoQuality -> Text
$ctoText :: ReservationVideoQuality -> Text
Data.ToText,
ReservationVideoQuality -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ReservationVideoQuality -> ByteString
$ctoBS :: ReservationVideoQuality -> ByteString
Data.ToByteString,
ReservationVideoQuality -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ReservationVideoQuality -> ByteStringBuilder
$cbuild :: ReservationVideoQuality -> ByteStringBuilder
Data.ToLog,
HeaderName -> ReservationVideoQuality -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ReservationVideoQuality -> [Header]
$ctoHeader :: HeaderName -> ReservationVideoQuality -> [Header]
Data.ToHeader,
ReservationVideoQuality -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ReservationVideoQuality -> QueryString
$ctoQuery :: ReservationVideoQuality -> QueryString
Data.ToQuery,
Value -> Parser [ReservationVideoQuality]
Value -> Parser 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
Data.FromJSON,
FromJSONKeyFunction [ReservationVideoQuality]
FromJSONKeyFunction ReservationVideoQuality
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ReservationVideoQuality]
$cfromJSONKeyList :: FromJSONKeyFunction [ReservationVideoQuality]
fromJSONKey :: FromJSONKeyFunction ReservationVideoQuality
$cfromJSONKey :: FromJSONKeyFunction ReservationVideoQuality
Data.FromJSONKey,
[ReservationVideoQuality] -> Encoding
[ReservationVideoQuality] -> Value
ReservationVideoQuality -> Encoding
ReservationVideoQuality -> Value
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
Data.ToJSON,
ToJSONKeyFunction [ReservationVideoQuality]
ToJSONKeyFunction ReservationVideoQuality
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ReservationVideoQuality]
$ctoJSONKeyList :: ToJSONKeyFunction [ReservationVideoQuality]
toJSONKey :: ToJSONKeyFunction ReservationVideoQuality
$ctoJSONKey :: ToJSONKeyFunction ReservationVideoQuality
Data.ToJSONKey,
[Node] -> Either String ReservationVideoQuality
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ReservationVideoQuality
$cparseXML :: [Node] -> Either String ReservationVideoQuality
Data.FromXML,
ReservationVideoQuality -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ReservationVideoQuality -> XML
$ctoXML :: ReservationVideoQuality -> XML
Data.ToXML
)
pattern ReservationVideoQuality_ENHANCED :: ReservationVideoQuality
pattern $bReservationVideoQuality_ENHANCED :: ReservationVideoQuality
$mReservationVideoQuality_ENHANCED :: forall {r}.
ReservationVideoQuality -> ((# #) -> r) -> ((# #) -> r) -> r
ReservationVideoQuality_ENHANCED = ReservationVideoQuality' "ENHANCED"
pattern ReservationVideoQuality_PREMIUM :: ReservationVideoQuality
pattern $bReservationVideoQuality_PREMIUM :: ReservationVideoQuality
$mReservationVideoQuality_PREMIUM :: forall {r}.
ReservationVideoQuality -> ((# #) -> r) -> ((# #) -> r) -> r
ReservationVideoQuality_PREMIUM = ReservationVideoQuality' "PREMIUM"
pattern ReservationVideoQuality_STANDARD :: ReservationVideoQuality
pattern $bReservationVideoQuality_STANDARD :: ReservationVideoQuality
$mReservationVideoQuality_STANDARD :: forall {r}.
ReservationVideoQuality -> ((# #) -> r) -> ((# #) -> r) -> r
ReservationVideoQuality_STANDARD = ReservationVideoQuality' "STANDARD"
{-# COMPLETE
ReservationVideoQuality_ENHANCED,
ReservationVideoQuality_PREMIUM,
ReservationVideoQuality_STANDARD,
ReservationVideoQuality'
#-}