{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaLive.Types.VideoDescriptionScalingBehavior
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaLive.Types.VideoDescriptionScalingBehavior
  ( VideoDescriptionScalingBehavior
      ( ..,
        VideoDescriptionScalingBehavior_DEFAULT,
        VideoDescriptionScalingBehavior_STRETCH_TO_OUTPUT
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

-- | Video Description Scaling Behavior
newtype VideoDescriptionScalingBehavior = VideoDescriptionScalingBehavior'
  { VideoDescriptionScalingBehavior -> Text
fromVideoDescriptionScalingBehavior ::
      Core.Text
  }
  deriving stock
    ( Int -> VideoDescriptionScalingBehavior -> ShowS
[VideoDescriptionScalingBehavior] -> ShowS
VideoDescriptionScalingBehavior -> String
(Int -> VideoDescriptionScalingBehavior -> ShowS)
-> (VideoDescriptionScalingBehavior -> String)
-> ([VideoDescriptionScalingBehavior] -> ShowS)
-> Show VideoDescriptionScalingBehavior
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]
(Int -> ReadS VideoDescriptionScalingBehavior)
-> ReadS [VideoDescriptionScalingBehavior]
-> ReadPrec VideoDescriptionScalingBehavior
-> ReadPrec [VideoDescriptionScalingBehavior]
-> Read 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
(VideoDescriptionScalingBehavior
 -> VideoDescriptionScalingBehavior -> Bool)
-> (VideoDescriptionScalingBehavior
    -> VideoDescriptionScalingBehavior -> Bool)
-> Eq VideoDescriptionScalingBehavior
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
Eq VideoDescriptionScalingBehavior
-> (VideoDescriptionScalingBehavior
    -> VideoDescriptionScalingBehavior -> Ordering)
-> (VideoDescriptionScalingBehavior
    -> VideoDescriptionScalingBehavior -> Bool)
-> (VideoDescriptionScalingBehavior
    -> VideoDescriptionScalingBehavior -> Bool)
-> (VideoDescriptionScalingBehavior
    -> VideoDescriptionScalingBehavior -> Bool)
-> (VideoDescriptionScalingBehavior
    -> VideoDescriptionScalingBehavior -> Bool)
-> (VideoDescriptionScalingBehavior
    -> VideoDescriptionScalingBehavior
    -> VideoDescriptionScalingBehavior)
-> (VideoDescriptionScalingBehavior
    -> VideoDescriptionScalingBehavior
    -> VideoDescriptionScalingBehavior)
-> Ord 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
$cp1Ord :: Eq VideoDescriptionScalingBehavior
Prelude.Ord,
      (forall x.
 VideoDescriptionScalingBehavior
 -> Rep VideoDescriptionScalingBehavior x)
-> (forall x.
    Rep VideoDescriptionScalingBehavior x
    -> VideoDescriptionScalingBehavior)
-> Generic VideoDescriptionScalingBehavior
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
    ( Int -> VideoDescriptionScalingBehavior -> Int
VideoDescriptionScalingBehavior -> Int
(Int -> VideoDescriptionScalingBehavior -> Int)
-> (VideoDescriptionScalingBehavior -> Int)
-> Hashable VideoDescriptionScalingBehavior
forall 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 -> ()
(VideoDescriptionScalingBehavior -> ())
-> NFData VideoDescriptionScalingBehavior
forall a. (a -> ()) -> NFData a
rnf :: VideoDescriptionScalingBehavior -> ()
$crnf :: VideoDescriptionScalingBehavior -> ()
Prelude.NFData,
      Text -> Either String VideoDescriptionScalingBehavior
(Text -> Either String VideoDescriptionScalingBehavior)
-> FromText VideoDescriptionScalingBehavior
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String VideoDescriptionScalingBehavior
$cfromText :: Text -> Either String VideoDescriptionScalingBehavior
Core.FromText,
      VideoDescriptionScalingBehavior -> Text
(VideoDescriptionScalingBehavior -> Text)
-> ToText VideoDescriptionScalingBehavior
forall a. (a -> Text) -> ToText a
toText :: VideoDescriptionScalingBehavior -> Text
$ctoText :: VideoDescriptionScalingBehavior -> Text
Core.ToText,
      VideoDescriptionScalingBehavior -> ByteString
(VideoDescriptionScalingBehavior -> ByteString)
-> ToByteString VideoDescriptionScalingBehavior
forall a. (a -> ByteString) -> ToByteString a
toBS :: VideoDescriptionScalingBehavior -> ByteString
$ctoBS :: VideoDescriptionScalingBehavior -> ByteString
Core.ToByteString,
      VideoDescriptionScalingBehavior -> ByteStringBuilder
(VideoDescriptionScalingBehavior -> ByteStringBuilder)
-> ToLog VideoDescriptionScalingBehavior
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: VideoDescriptionScalingBehavior -> ByteStringBuilder
$cbuild :: VideoDescriptionScalingBehavior -> ByteStringBuilder
Core.ToLog,
      HeaderName -> VideoDescriptionScalingBehavior -> [Header]
(HeaderName -> VideoDescriptionScalingBehavior -> [Header])
-> ToHeader VideoDescriptionScalingBehavior
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> VideoDescriptionScalingBehavior -> [Header]
$ctoHeader :: HeaderName -> VideoDescriptionScalingBehavior -> [Header]
Core.ToHeader,
      VideoDescriptionScalingBehavior -> QueryString
(VideoDescriptionScalingBehavior -> QueryString)
-> ToQuery VideoDescriptionScalingBehavior
forall a. (a -> QueryString) -> ToQuery a
toQuery :: VideoDescriptionScalingBehavior -> QueryString
$ctoQuery :: VideoDescriptionScalingBehavior -> QueryString
Core.ToQuery,
      Value -> Parser [VideoDescriptionScalingBehavior]
Value -> Parser VideoDescriptionScalingBehavior
(Value -> Parser VideoDescriptionScalingBehavior)
-> (Value -> Parser [VideoDescriptionScalingBehavior])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [VideoDescriptionScalingBehavior]
FromJSONKeyFunction VideoDescriptionScalingBehavior
FromJSONKeyFunction VideoDescriptionScalingBehavior
-> FromJSONKeyFunction [VideoDescriptionScalingBehavior]
-> FromJSONKey VideoDescriptionScalingBehavior
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [VideoDescriptionScalingBehavior]
$cfromJSONKeyList :: FromJSONKeyFunction [VideoDescriptionScalingBehavior]
fromJSONKey :: FromJSONKeyFunction VideoDescriptionScalingBehavior
$cfromJSONKey :: FromJSONKeyFunction VideoDescriptionScalingBehavior
Core.FromJSONKey,
      [VideoDescriptionScalingBehavior] -> Encoding
[VideoDescriptionScalingBehavior] -> Value
VideoDescriptionScalingBehavior -> Encoding
VideoDescriptionScalingBehavior -> Value
(VideoDescriptionScalingBehavior -> Value)
-> (VideoDescriptionScalingBehavior -> Encoding)
-> ([VideoDescriptionScalingBehavior] -> Value)
-> ([VideoDescriptionScalingBehavior] -> Encoding)
-> ToJSON VideoDescriptionScalingBehavior
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
Core.ToJSON,
      ToJSONKeyFunction [VideoDescriptionScalingBehavior]
ToJSONKeyFunction VideoDescriptionScalingBehavior
ToJSONKeyFunction VideoDescriptionScalingBehavior
-> ToJSONKeyFunction [VideoDescriptionScalingBehavior]
-> ToJSONKey VideoDescriptionScalingBehavior
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [VideoDescriptionScalingBehavior]
$ctoJSONKeyList :: ToJSONKeyFunction [VideoDescriptionScalingBehavior]
toJSONKey :: ToJSONKeyFunction VideoDescriptionScalingBehavior
$ctoJSONKey :: ToJSONKeyFunction VideoDescriptionScalingBehavior
Core.ToJSONKey,
      [Node] -> Either String VideoDescriptionScalingBehavior
([Node] -> Either String VideoDescriptionScalingBehavior)
-> FromXML VideoDescriptionScalingBehavior
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String VideoDescriptionScalingBehavior
$cparseXML :: [Node] -> Either String VideoDescriptionScalingBehavior
Core.FromXML,
      VideoDescriptionScalingBehavior -> XML
(VideoDescriptionScalingBehavior -> XML)
-> ToXML VideoDescriptionScalingBehavior
forall a. (a -> XML) -> ToXML a
toXML :: VideoDescriptionScalingBehavior -> XML
$ctoXML :: VideoDescriptionScalingBehavior -> XML
Core.ToXML
    )

pattern VideoDescriptionScalingBehavior_DEFAULT :: VideoDescriptionScalingBehavior
pattern $bVideoDescriptionScalingBehavior_DEFAULT :: VideoDescriptionScalingBehavior
$mVideoDescriptionScalingBehavior_DEFAULT :: forall r.
VideoDescriptionScalingBehavior
-> (Void# -> r) -> (Void# -> 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
-> (Void# -> r) -> (Void# -> r) -> r
VideoDescriptionScalingBehavior_STRETCH_TO_OUTPUT = VideoDescriptionScalingBehavior' "STRETCH_TO_OUTPUT"

{-# COMPLETE
  VideoDescriptionScalingBehavior_DEFAULT,
  VideoDescriptionScalingBehavior_STRETCH_TO_OUTPUT,
  VideoDescriptionScalingBehavior'
  #-}