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