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