{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaConvert.Types.AccelerationMode
( AccelerationMode
( ..,
AccelerationMode_DISABLED,
AccelerationMode_ENABLED,
AccelerationMode_PREFERRED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype AccelerationMode = AccelerationMode'
{ AccelerationMode -> Text
fromAccelerationMode ::
Core.Text
}
deriving stock
( Int -> AccelerationMode -> ShowS
[AccelerationMode] -> ShowS
AccelerationMode -> String
(Int -> AccelerationMode -> ShowS)
-> (AccelerationMode -> String)
-> ([AccelerationMode] -> ShowS)
-> Show AccelerationMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AccelerationMode] -> ShowS
$cshowList :: [AccelerationMode] -> ShowS
show :: AccelerationMode -> String
$cshow :: AccelerationMode -> String
showsPrec :: Int -> AccelerationMode -> ShowS
$cshowsPrec :: Int -> AccelerationMode -> ShowS
Prelude.Show,
ReadPrec [AccelerationMode]
ReadPrec AccelerationMode
Int -> ReadS AccelerationMode
ReadS [AccelerationMode]
(Int -> ReadS AccelerationMode)
-> ReadS [AccelerationMode]
-> ReadPrec AccelerationMode
-> ReadPrec [AccelerationMode]
-> Read AccelerationMode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AccelerationMode]
$creadListPrec :: ReadPrec [AccelerationMode]
readPrec :: ReadPrec AccelerationMode
$creadPrec :: ReadPrec AccelerationMode
readList :: ReadS [AccelerationMode]
$creadList :: ReadS [AccelerationMode]
readsPrec :: Int -> ReadS AccelerationMode
$creadsPrec :: Int -> ReadS AccelerationMode
Prelude.Read,
AccelerationMode -> AccelerationMode -> Bool
(AccelerationMode -> AccelerationMode -> Bool)
-> (AccelerationMode -> AccelerationMode -> Bool)
-> Eq AccelerationMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AccelerationMode -> AccelerationMode -> Bool
$c/= :: AccelerationMode -> AccelerationMode -> Bool
== :: AccelerationMode -> AccelerationMode -> Bool
$c== :: AccelerationMode -> AccelerationMode -> Bool
Prelude.Eq,
Eq AccelerationMode
Eq AccelerationMode
-> (AccelerationMode -> AccelerationMode -> Ordering)
-> (AccelerationMode -> AccelerationMode -> Bool)
-> (AccelerationMode -> AccelerationMode -> Bool)
-> (AccelerationMode -> AccelerationMode -> Bool)
-> (AccelerationMode -> AccelerationMode -> Bool)
-> (AccelerationMode -> AccelerationMode -> AccelerationMode)
-> (AccelerationMode -> AccelerationMode -> AccelerationMode)
-> Ord AccelerationMode
AccelerationMode -> AccelerationMode -> Bool
AccelerationMode -> AccelerationMode -> Ordering
AccelerationMode -> AccelerationMode -> AccelerationMode
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 :: AccelerationMode -> AccelerationMode -> AccelerationMode
$cmin :: AccelerationMode -> AccelerationMode -> AccelerationMode
max :: AccelerationMode -> AccelerationMode -> AccelerationMode
$cmax :: AccelerationMode -> AccelerationMode -> AccelerationMode
>= :: AccelerationMode -> AccelerationMode -> Bool
$c>= :: AccelerationMode -> AccelerationMode -> Bool
> :: AccelerationMode -> AccelerationMode -> Bool
$c> :: AccelerationMode -> AccelerationMode -> Bool
<= :: AccelerationMode -> AccelerationMode -> Bool
$c<= :: AccelerationMode -> AccelerationMode -> Bool
< :: AccelerationMode -> AccelerationMode -> Bool
$c< :: AccelerationMode -> AccelerationMode -> Bool
compare :: AccelerationMode -> AccelerationMode -> Ordering
$ccompare :: AccelerationMode -> AccelerationMode -> Ordering
$cp1Ord :: Eq AccelerationMode
Prelude.Ord,
(forall x. AccelerationMode -> Rep AccelerationMode x)
-> (forall x. Rep AccelerationMode x -> AccelerationMode)
-> Generic AccelerationMode
forall x. Rep AccelerationMode x -> AccelerationMode
forall x. AccelerationMode -> Rep AccelerationMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AccelerationMode x -> AccelerationMode
$cfrom :: forall x. AccelerationMode -> Rep AccelerationMode x
Prelude.Generic
)
deriving newtype
( Int -> AccelerationMode -> Int
AccelerationMode -> Int
(Int -> AccelerationMode -> Int)
-> (AccelerationMode -> Int) -> Hashable AccelerationMode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AccelerationMode -> Int
$chash :: AccelerationMode -> Int
hashWithSalt :: Int -> AccelerationMode -> Int
$chashWithSalt :: Int -> AccelerationMode -> Int
Prelude.Hashable,
AccelerationMode -> ()
(AccelerationMode -> ()) -> NFData AccelerationMode
forall a. (a -> ()) -> NFData a
rnf :: AccelerationMode -> ()
$crnf :: AccelerationMode -> ()
Prelude.NFData,
Text -> Either String AccelerationMode
(Text -> Either String AccelerationMode)
-> FromText AccelerationMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AccelerationMode
$cfromText :: Text -> Either String AccelerationMode
Core.FromText,
AccelerationMode -> Text
(AccelerationMode -> Text) -> ToText AccelerationMode
forall a. (a -> Text) -> ToText a
toText :: AccelerationMode -> Text
$ctoText :: AccelerationMode -> Text
Core.ToText,
AccelerationMode -> ByteString
(AccelerationMode -> ByteString) -> ToByteString AccelerationMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: AccelerationMode -> ByteString
$ctoBS :: AccelerationMode -> ByteString
Core.ToByteString,
AccelerationMode -> ByteStringBuilder
(AccelerationMode -> ByteStringBuilder) -> ToLog AccelerationMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AccelerationMode -> ByteStringBuilder
$cbuild :: AccelerationMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> AccelerationMode -> [Header]
(HeaderName -> AccelerationMode -> [Header])
-> ToHeader AccelerationMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AccelerationMode -> [Header]
$ctoHeader :: HeaderName -> AccelerationMode -> [Header]
Core.ToHeader,
AccelerationMode -> QueryString
(AccelerationMode -> QueryString) -> ToQuery AccelerationMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AccelerationMode -> QueryString
$ctoQuery :: AccelerationMode -> QueryString
Core.ToQuery,
Value -> Parser [AccelerationMode]
Value -> Parser AccelerationMode
(Value -> Parser AccelerationMode)
-> (Value -> Parser [AccelerationMode])
-> FromJSON AccelerationMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AccelerationMode]
$cparseJSONList :: Value -> Parser [AccelerationMode]
parseJSON :: Value -> Parser AccelerationMode
$cparseJSON :: Value -> Parser AccelerationMode
Core.FromJSON,
FromJSONKeyFunction [AccelerationMode]
FromJSONKeyFunction AccelerationMode
FromJSONKeyFunction AccelerationMode
-> FromJSONKeyFunction [AccelerationMode]
-> FromJSONKey AccelerationMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AccelerationMode]
$cfromJSONKeyList :: FromJSONKeyFunction [AccelerationMode]
fromJSONKey :: FromJSONKeyFunction AccelerationMode
$cfromJSONKey :: FromJSONKeyFunction AccelerationMode
Core.FromJSONKey,
[AccelerationMode] -> Encoding
[AccelerationMode] -> Value
AccelerationMode -> Encoding
AccelerationMode -> Value
(AccelerationMode -> Value)
-> (AccelerationMode -> Encoding)
-> ([AccelerationMode] -> Value)
-> ([AccelerationMode] -> Encoding)
-> ToJSON AccelerationMode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AccelerationMode] -> Encoding
$ctoEncodingList :: [AccelerationMode] -> Encoding
toJSONList :: [AccelerationMode] -> Value
$ctoJSONList :: [AccelerationMode] -> Value
toEncoding :: AccelerationMode -> Encoding
$ctoEncoding :: AccelerationMode -> Encoding
toJSON :: AccelerationMode -> Value
$ctoJSON :: AccelerationMode -> Value
Core.ToJSON,
ToJSONKeyFunction [AccelerationMode]
ToJSONKeyFunction AccelerationMode
ToJSONKeyFunction AccelerationMode
-> ToJSONKeyFunction [AccelerationMode]
-> ToJSONKey AccelerationMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AccelerationMode]
$ctoJSONKeyList :: ToJSONKeyFunction [AccelerationMode]
toJSONKey :: ToJSONKeyFunction AccelerationMode
$ctoJSONKey :: ToJSONKeyFunction AccelerationMode
Core.ToJSONKey,
[Node] -> Either String AccelerationMode
([Node] -> Either String AccelerationMode)
-> FromXML AccelerationMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AccelerationMode
$cparseXML :: [Node] -> Either String AccelerationMode
Core.FromXML,
AccelerationMode -> XML
(AccelerationMode -> XML) -> ToXML AccelerationMode
forall a. (a -> XML) -> ToXML a
toXML :: AccelerationMode -> XML
$ctoXML :: AccelerationMode -> XML
Core.ToXML
)
pattern AccelerationMode_DISABLED :: AccelerationMode
pattern $bAccelerationMode_DISABLED :: AccelerationMode
$mAccelerationMode_DISABLED :: forall r. AccelerationMode -> (Void# -> r) -> (Void# -> r) -> r
AccelerationMode_DISABLED = AccelerationMode' "DISABLED"
pattern AccelerationMode_ENABLED :: AccelerationMode
pattern $bAccelerationMode_ENABLED :: AccelerationMode
$mAccelerationMode_ENABLED :: forall r. AccelerationMode -> (Void# -> r) -> (Void# -> r) -> r
AccelerationMode_ENABLED = AccelerationMode' "ENABLED"
pattern AccelerationMode_PREFERRED :: AccelerationMode
pattern $bAccelerationMode_PREFERRED :: AccelerationMode
$mAccelerationMode_PREFERRED :: forall r. AccelerationMode -> (Void# -> r) -> (Void# -> r) -> r
AccelerationMode_PREFERRED = AccelerationMode' "PREFERRED"
{-# COMPLETE
AccelerationMode_DISABLED,
AccelerationMode_ENABLED,
AccelerationMode_PREFERRED,
AccelerationMode'
#-}