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

pattern Mpeg2ParControl_INITIALIZE_FROM_SOURCE :: Mpeg2ParControl
pattern $bMpeg2ParControl_INITIALIZE_FROM_SOURCE :: Mpeg2ParControl
$mMpeg2ParControl_INITIALIZE_FROM_SOURCE :: forall r. Mpeg2ParControl -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2ParControl_INITIALIZE_FROM_SOURCE = Mpeg2ParControl' "INITIALIZE_FROM_SOURCE"

pattern Mpeg2ParControl_SPECIFIED :: Mpeg2ParControl
pattern $bMpeg2ParControl_SPECIFIED :: Mpeg2ParControl
$mMpeg2ParControl_SPECIFIED :: forall r. Mpeg2ParControl -> (Void# -> r) -> (Void# -> r) -> r
Mpeg2ParControl_SPECIFIED = Mpeg2ParControl' "SPECIFIED"

{-# COMPLETE
  Mpeg2ParControl_INITIALIZE_FROM_SOURCE,
  Mpeg2ParControl_SPECIFIED,
  Mpeg2ParControl'
  #-}