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

pattern H265ParControl_INITIALIZE_FROM_SOURCE :: H265ParControl
pattern $bH265ParControl_INITIALIZE_FROM_SOURCE :: H265ParControl
$mH265ParControl_INITIALIZE_FROM_SOURCE :: forall r. H265ParControl -> (Void# -> r) -> (Void# -> r) -> r
H265ParControl_INITIALIZE_FROM_SOURCE = H265ParControl' "INITIALIZE_FROM_SOURCE"

pattern H265ParControl_SPECIFIED :: H265ParControl
pattern $bH265ParControl_SPECIFIED :: H265ParControl
$mH265ParControl_SPECIFIED :: forall r. H265ParControl -> (Void# -> r) -> (Void# -> r) -> r
H265ParControl_SPECIFIED = H265ParControl' "SPECIFIED"

{-# COMPLETE
  H265ParControl_INITIALIZE_FROM_SOURCE,
  H265ParControl_SPECIFIED,
  H265ParControl'
  #-}