{-# 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.MediaConvert.Types.Vp8ParControl
-- 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.MediaConvert.Types.Vp8ParControl
  ( Vp8ParControl
      ( ..,
        Vp8ParControl_INITIALIZE_FROM_SOURCE,
        Vp8ParControl_SPECIFIED
      ),
  )
where

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

-- | Optional. Specify how the service determines the pixel aspect ratio
-- (PAR) for this output. The default behavior, Follow source
-- (INITIALIZE_FROM_SOURCE), uses the PAR from your input video for your
-- output. To specify a different PAR in the console, choose any value
-- other than Follow source. To specify a different PAR by editing the JSON
-- job specification, choose SPECIFIED. When you choose SPECIFIED for this
-- setting, you must also specify values for the parNumerator and
-- parDenominator settings.
newtype Vp8ParControl = Vp8ParControl'
  { Vp8ParControl -> Text
fromVp8ParControl ::
      Core.Text
  }
  deriving stock
    ( Int -> Vp8ParControl -> ShowS
[Vp8ParControl] -> ShowS
Vp8ParControl -> String
(Int -> Vp8ParControl -> ShowS)
-> (Vp8ParControl -> String)
-> ([Vp8ParControl] -> ShowS)
-> Show Vp8ParControl
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Vp8ParControl] -> ShowS
$cshowList :: [Vp8ParControl] -> ShowS
show :: Vp8ParControl -> String
$cshow :: Vp8ParControl -> String
showsPrec :: Int -> Vp8ParControl -> ShowS
$cshowsPrec :: Int -> Vp8ParControl -> ShowS
Prelude.Show,
      ReadPrec [Vp8ParControl]
ReadPrec Vp8ParControl
Int -> ReadS Vp8ParControl
ReadS [Vp8ParControl]
(Int -> ReadS Vp8ParControl)
-> ReadS [Vp8ParControl]
-> ReadPrec Vp8ParControl
-> ReadPrec [Vp8ParControl]
-> Read Vp8ParControl
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Vp8ParControl]
$creadListPrec :: ReadPrec [Vp8ParControl]
readPrec :: ReadPrec Vp8ParControl
$creadPrec :: ReadPrec Vp8ParControl
readList :: ReadS [Vp8ParControl]
$creadList :: ReadS [Vp8ParControl]
readsPrec :: Int -> ReadS Vp8ParControl
$creadsPrec :: Int -> ReadS Vp8ParControl
Prelude.Read,
      Vp8ParControl -> Vp8ParControl -> Bool
(Vp8ParControl -> Vp8ParControl -> Bool)
-> (Vp8ParControl -> Vp8ParControl -> Bool) -> Eq Vp8ParControl
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Vp8ParControl -> Vp8ParControl -> Bool
$c/= :: Vp8ParControl -> Vp8ParControl -> Bool
== :: Vp8ParControl -> Vp8ParControl -> Bool
$c== :: Vp8ParControl -> Vp8ParControl -> Bool
Prelude.Eq,
      Eq Vp8ParControl
Eq Vp8ParControl
-> (Vp8ParControl -> Vp8ParControl -> Ordering)
-> (Vp8ParControl -> Vp8ParControl -> Bool)
-> (Vp8ParControl -> Vp8ParControl -> Bool)
-> (Vp8ParControl -> Vp8ParControl -> Bool)
-> (Vp8ParControl -> Vp8ParControl -> Bool)
-> (Vp8ParControl -> Vp8ParControl -> Vp8ParControl)
-> (Vp8ParControl -> Vp8ParControl -> Vp8ParControl)
-> Ord Vp8ParControl
Vp8ParControl -> Vp8ParControl -> Bool
Vp8ParControl -> Vp8ParControl -> Ordering
Vp8ParControl -> Vp8ParControl -> Vp8ParControl
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 :: Vp8ParControl -> Vp8ParControl -> Vp8ParControl
$cmin :: Vp8ParControl -> Vp8ParControl -> Vp8ParControl
max :: Vp8ParControl -> Vp8ParControl -> Vp8ParControl
$cmax :: Vp8ParControl -> Vp8ParControl -> Vp8ParControl
>= :: Vp8ParControl -> Vp8ParControl -> Bool
$c>= :: Vp8ParControl -> Vp8ParControl -> Bool
> :: Vp8ParControl -> Vp8ParControl -> Bool
$c> :: Vp8ParControl -> Vp8ParControl -> Bool
<= :: Vp8ParControl -> Vp8ParControl -> Bool
$c<= :: Vp8ParControl -> Vp8ParControl -> Bool
< :: Vp8ParControl -> Vp8ParControl -> Bool
$c< :: Vp8ParControl -> Vp8ParControl -> Bool
compare :: Vp8ParControl -> Vp8ParControl -> Ordering
$ccompare :: Vp8ParControl -> Vp8ParControl -> Ordering
$cp1Ord :: Eq Vp8ParControl
Prelude.Ord,
      (forall x. Vp8ParControl -> Rep Vp8ParControl x)
-> (forall x. Rep Vp8ParControl x -> Vp8ParControl)
-> Generic Vp8ParControl
forall x. Rep Vp8ParControl x -> Vp8ParControl
forall x. Vp8ParControl -> Rep Vp8ParControl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Vp8ParControl x -> Vp8ParControl
$cfrom :: forall x. Vp8ParControl -> Rep Vp8ParControl x
Prelude.Generic
    )
  deriving newtype
    ( Int -> Vp8ParControl -> Int
Vp8ParControl -> Int
(Int -> Vp8ParControl -> Int)
-> (Vp8ParControl -> Int) -> Hashable Vp8ParControl
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: Vp8ParControl -> Int
$chash :: Vp8ParControl -> Int
hashWithSalt :: Int -> Vp8ParControl -> Int
$chashWithSalt :: Int -> Vp8ParControl -> Int
Prelude.Hashable,
      Vp8ParControl -> ()
(Vp8ParControl -> ()) -> NFData Vp8ParControl
forall a. (a -> ()) -> NFData a
rnf :: Vp8ParControl -> ()
$crnf :: Vp8ParControl -> ()
Prelude.NFData,
      Text -> Either String Vp8ParControl
(Text -> Either String Vp8ParControl) -> FromText Vp8ParControl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Vp8ParControl
$cfromText :: Text -> Either String Vp8ParControl
Core.FromText,
      Vp8ParControl -> Text
(Vp8ParControl -> Text) -> ToText Vp8ParControl
forall a. (a -> Text) -> ToText a
toText :: Vp8ParControl -> Text
$ctoText :: Vp8ParControl -> Text
Core.ToText,
      Vp8ParControl -> ByteString
(Vp8ParControl -> ByteString) -> ToByteString Vp8ParControl
forall a. (a -> ByteString) -> ToByteString a
toBS :: Vp8ParControl -> ByteString
$ctoBS :: Vp8ParControl -> ByteString
Core.ToByteString,
      Vp8ParControl -> ByteStringBuilder
(Vp8ParControl -> ByteStringBuilder) -> ToLog Vp8ParControl
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Vp8ParControl -> ByteStringBuilder
$cbuild :: Vp8ParControl -> ByteStringBuilder
Core.ToLog,
      HeaderName -> Vp8ParControl -> [Header]
(HeaderName -> Vp8ParControl -> [Header]) -> ToHeader Vp8ParControl
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Vp8ParControl -> [Header]
$ctoHeader :: HeaderName -> Vp8ParControl -> [Header]
Core.ToHeader,
      Vp8ParControl -> QueryString
(Vp8ParControl -> QueryString) -> ToQuery Vp8ParControl
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Vp8ParControl -> QueryString
$ctoQuery :: Vp8ParControl -> QueryString
Core.ToQuery,
      Value -> Parser [Vp8ParControl]
Value -> Parser Vp8ParControl
(Value -> Parser Vp8ParControl)
-> (Value -> Parser [Vp8ParControl]) -> FromJSON Vp8ParControl
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [Vp8ParControl]
$cparseJSONList :: Value -> Parser [Vp8ParControl]
parseJSON :: Value -> Parser Vp8ParControl
$cparseJSON :: Value -> Parser Vp8ParControl
Core.FromJSON,
      FromJSONKeyFunction [Vp8ParControl]
FromJSONKeyFunction Vp8ParControl
FromJSONKeyFunction Vp8ParControl
-> FromJSONKeyFunction [Vp8ParControl] -> FromJSONKey Vp8ParControl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Vp8ParControl]
$cfromJSONKeyList :: FromJSONKeyFunction [Vp8ParControl]
fromJSONKey :: FromJSONKeyFunction Vp8ParControl
$cfromJSONKey :: FromJSONKeyFunction Vp8ParControl
Core.FromJSONKey,
      [Vp8ParControl] -> Encoding
[Vp8ParControl] -> Value
Vp8ParControl -> Encoding
Vp8ParControl -> Value
(Vp8ParControl -> Value)
-> (Vp8ParControl -> Encoding)
-> ([Vp8ParControl] -> Value)
-> ([Vp8ParControl] -> Encoding)
-> ToJSON Vp8ParControl
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [Vp8ParControl] -> Encoding
$ctoEncodingList :: [Vp8ParControl] -> Encoding
toJSONList :: [Vp8ParControl] -> Value
$ctoJSONList :: [Vp8ParControl] -> Value
toEncoding :: Vp8ParControl -> Encoding
$ctoEncoding :: Vp8ParControl -> Encoding
toJSON :: Vp8ParControl -> Value
$ctoJSON :: Vp8ParControl -> Value
Core.ToJSON,
      ToJSONKeyFunction [Vp8ParControl]
ToJSONKeyFunction Vp8ParControl
ToJSONKeyFunction Vp8ParControl
-> ToJSONKeyFunction [Vp8ParControl] -> ToJSONKey Vp8ParControl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Vp8ParControl]
$ctoJSONKeyList :: ToJSONKeyFunction [Vp8ParControl]
toJSONKey :: ToJSONKeyFunction Vp8ParControl
$ctoJSONKey :: ToJSONKeyFunction Vp8ParControl
Core.ToJSONKey,
      [Node] -> Either String Vp8ParControl
([Node] -> Either String Vp8ParControl) -> FromXML Vp8ParControl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Vp8ParControl
$cparseXML :: [Node] -> Either String Vp8ParControl
Core.FromXML,
      Vp8ParControl -> XML
(Vp8ParControl -> XML) -> ToXML Vp8ParControl
forall a. (a -> XML) -> ToXML a
toXML :: Vp8ParControl -> XML
$ctoXML :: Vp8ParControl -> XML
Core.ToXML
    )

pattern Vp8ParControl_INITIALIZE_FROM_SOURCE :: Vp8ParControl
pattern $bVp8ParControl_INITIALIZE_FROM_SOURCE :: Vp8ParControl
$mVp8ParControl_INITIALIZE_FROM_SOURCE :: forall r. Vp8ParControl -> (Void# -> r) -> (Void# -> r) -> r
Vp8ParControl_INITIALIZE_FROM_SOURCE = Vp8ParControl' "INITIALIZE_FROM_SOURCE"

pattern Vp8ParControl_SPECIFIED :: Vp8ParControl
pattern $bVp8ParControl_SPECIFIED :: Vp8ParControl
$mVp8ParControl_SPECIFIED :: forall r. Vp8ParControl -> (Void# -> r) -> (Void# -> r) -> r
Vp8ParControl_SPECIFIED = Vp8ParControl' "SPECIFIED"

{-# COMPLETE
  Vp8ParControl_INITIALIZE_FROM_SOURCE,
  Vp8ParControl_SPECIFIED,
  Vp8ParControl'
  #-}