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

pattern Vp9ParControl_INITIALIZE_FROM_SOURCE :: Vp9ParControl
pattern $bVp9ParControl_INITIALIZE_FROM_SOURCE :: Vp9ParControl
$mVp9ParControl_INITIALIZE_FROM_SOURCE :: forall r. Vp9ParControl -> (Void# -> r) -> (Void# -> r) -> r
Vp9ParControl_INITIALIZE_FROM_SOURCE = Vp9ParControl' "INITIALIZE_FROM_SOURCE"

pattern Vp9ParControl_SPECIFIED :: Vp9ParControl
pattern $bVp9ParControl_SPECIFIED :: Vp9ParControl
$mVp9ParControl_SPECIFIED :: forall r. Vp9ParControl -> (Void# -> r) -> (Void# -> r) -> r
Vp9ParControl_SPECIFIED = Vp9ParControl' "SPECIFIED"

{-# COMPLETE
  Vp9ParControl_INITIALIZE_FROM_SOURCE,
  Vp9ParControl_SPECIFIED,
  Vp9ParControl'
  #-}