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