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