{-# 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.ProresFramerateControl
-- 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.ProresFramerateControl
  ( ProresFramerateControl
      ( ..,
        ProresFramerateControl_INITIALIZE_FROM_SOURCE,
        ProresFramerateControl_SPECIFIED
      ),
  )
where

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

-- | If you are using the console, use the Framerate setting to specify the
-- frame rate for this output. If you want to keep the same frame rate as
-- the input video, choose Follow source. If you want to do frame rate
-- conversion, choose a frame rate from the dropdown list or choose Custom.
-- The framerates shown in the dropdown list are decimal approximations of
-- fractions. If you choose Custom, specify your frame rate as a fraction.
-- If you are creating your transcoding job specification as a JSON file
-- without the console, use FramerateControl to specify which value the
-- service uses for the frame rate for this output. Choose
-- INITIALIZE_FROM_SOURCE if you want the service to use the frame rate
-- from the input. Choose SPECIFIED if you want the service to use the
-- frame rate you specify in the settings FramerateNumerator and
-- FramerateDenominator.
newtype ProresFramerateControl = ProresFramerateControl'
  { ProresFramerateControl -> Text
fromProresFramerateControl ::
      Core.Text
  }
  deriving stock
    ( Int -> ProresFramerateControl -> ShowS
[ProresFramerateControl] -> ShowS
ProresFramerateControl -> String
(Int -> ProresFramerateControl -> ShowS)
-> (ProresFramerateControl -> String)
-> ([ProresFramerateControl] -> ShowS)
-> Show ProresFramerateControl
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProresFramerateControl] -> ShowS
$cshowList :: [ProresFramerateControl] -> ShowS
show :: ProresFramerateControl -> String
$cshow :: ProresFramerateControl -> String
showsPrec :: Int -> ProresFramerateControl -> ShowS
$cshowsPrec :: Int -> ProresFramerateControl -> ShowS
Prelude.Show,
      ReadPrec [ProresFramerateControl]
ReadPrec ProresFramerateControl
Int -> ReadS ProresFramerateControl
ReadS [ProresFramerateControl]
(Int -> ReadS ProresFramerateControl)
-> ReadS [ProresFramerateControl]
-> ReadPrec ProresFramerateControl
-> ReadPrec [ProresFramerateControl]
-> Read ProresFramerateControl
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProresFramerateControl]
$creadListPrec :: ReadPrec [ProresFramerateControl]
readPrec :: ReadPrec ProresFramerateControl
$creadPrec :: ReadPrec ProresFramerateControl
readList :: ReadS [ProresFramerateControl]
$creadList :: ReadS [ProresFramerateControl]
readsPrec :: Int -> ReadS ProresFramerateControl
$creadsPrec :: Int -> ReadS ProresFramerateControl
Prelude.Read,
      ProresFramerateControl -> ProresFramerateControl -> Bool
(ProresFramerateControl -> ProresFramerateControl -> Bool)
-> (ProresFramerateControl -> ProresFramerateControl -> Bool)
-> Eq ProresFramerateControl
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProresFramerateControl -> ProresFramerateControl -> Bool
$c/= :: ProresFramerateControl -> ProresFramerateControl -> Bool
== :: ProresFramerateControl -> ProresFramerateControl -> Bool
$c== :: ProresFramerateControl -> ProresFramerateControl -> Bool
Prelude.Eq,
      Eq ProresFramerateControl
Eq ProresFramerateControl
-> (ProresFramerateControl -> ProresFramerateControl -> Ordering)
-> (ProresFramerateControl -> ProresFramerateControl -> Bool)
-> (ProresFramerateControl -> ProresFramerateControl -> Bool)
-> (ProresFramerateControl -> ProresFramerateControl -> Bool)
-> (ProresFramerateControl -> ProresFramerateControl -> Bool)
-> (ProresFramerateControl
    -> ProresFramerateControl -> ProresFramerateControl)
-> (ProresFramerateControl
    -> ProresFramerateControl -> ProresFramerateControl)
-> Ord ProresFramerateControl
ProresFramerateControl -> ProresFramerateControl -> Bool
ProresFramerateControl -> ProresFramerateControl -> Ordering
ProresFramerateControl
-> ProresFramerateControl -> ProresFramerateControl
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 :: ProresFramerateControl
-> ProresFramerateControl -> ProresFramerateControl
$cmin :: ProresFramerateControl
-> ProresFramerateControl -> ProresFramerateControl
max :: ProresFramerateControl
-> ProresFramerateControl -> ProresFramerateControl
$cmax :: ProresFramerateControl
-> ProresFramerateControl -> ProresFramerateControl
>= :: ProresFramerateControl -> ProresFramerateControl -> Bool
$c>= :: ProresFramerateControl -> ProresFramerateControl -> Bool
> :: ProresFramerateControl -> ProresFramerateControl -> Bool
$c> :: ProresFramerateControl -> ProresFramerateControl -> Bool
<= :: ProresFramerateControl -> ProresFramerateControl -> Bool
$c<= :: ProresFramerateControl -> ProresFramerateControl -> Bool
< :: ProresFramerateControl -> ProresFramerateControl -> Bool
$c< :: ProresFramerateControl -> ProresFramerateControl -> Bool
compare :: ProresFramerateControl -> ProresFramerateControl -> Ordering
$ccompare :: ProresFramerateControl -> ProresFramerateControl -> Ordering
$cp1Ord :: Eq ProresFramerateControl
Prelude.Ord,
      (forall x. ProresFramerateControl -> Rep ProresFramerateControl x)
-> (forall x.
    Rep ProresFramerateControl x -> ProresFramerateControl)
-> Generic ProresFramerateControl
forall x. Rep ProresFramerateControl x -> ProresFramerateControl
forall x. ProresFramerateControl -> Rep ProresFramerateControl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ProresFramerateControl x -> ProresFramerateControl
$cfrom :: forall x. ProresFramerateControl -> Rep ProresFramerateControl x
Prelude.Generic
    )
  deriving newtype
    ( Int -> ProresFramerateControl -> Int
ProresFramerateControl -> Int
(Int -> ProresFramerateControl -> Int)
-> (ProresFramerateControl -> Int)
-> Hashable ProresFramerateControl
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ProresFramerateControl -> Int
$chash :: ProresFramerateControl -> Int
hashWithSalt :: Int -> ProresFramerateControl -> Int
$chashWithSalt :: Int -> ProresFramerateControl -> Int
Prelude.Hashable,
      ProresFramerateControl -> ()
(ProresFramerateControl -> ()) -> NFData ProresFramerateControl
forall a. (a -> ()) -> NFData a
rnf :: ProresFramerateControl -> ()
$crnf :: ProresFramerateControl -> ()
Prelude.NFData,
      Text -> Either String ProresFramerateControl
(Text -> Either String ProresFramerateControl)
-> FromText ProresFramerateControl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ProresFramerateControl
$cfromText :: Text -> Either String ProresFramerateControl
Core.FromText,
      ProresFramerateControl -> Text
(ProresFramerateControl -> Text) -> ToText ProresFramerateControl
forall a. (a -> Text) -> ToText a
toText :: ProresFramerateControl -> Text
$ctoText :: ProresFramerateControl -> Text
Core.ToText,
      ProresFramerateControl -> ByteString
(ProresFramerateControl -> ByteString)
-> ToByteString ProresFramerateControl
forall a. (a -> ByteString) -> ToByteString a
toBS :: ProresFramerateControl -> ByteString
$ctoBS :: ProresFramerateControl -> ByteString
Core.ToByteString,
      ProresFramerateControl -> ByteStringBuilder
(ProresFramerateControl -> ByteStringBuilder)
-> ToLog ProresFramerateControl
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ProresFramerateControl -> ByteStringBuilder
$cbuild :: ProresFramerateControl -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ProresFramerateControl -> [Header]
(HeaderName -> ProresFramerateControl -> [Header])
-> ToHeader ProresFramerateControl
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ProresFramerateControl -> [Header]
$ctoHeader :: HeaderName -> ProresFramerateControl -> [Header]
Core.ToHeader,
      ProresFramerateControl -> QueryString
(ProresFramerateControl -> QueryString)
-> ToQuery ProresFramerateControl
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ProresFramerateControl -> QueryString
$ctoQuery :: ProresFramerateControl -> QueryString
Core.ToQuery,
      Value -> Parser [ProresFramerateControl]
Value -> Parser ProresFramerateControl
(Value -> Parser ProresFramerateControl)
-> (Value -> Parser [ProresFramerateControl])
-> FromJSON ProresFramerateControl
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ProresFramerateControl]
$cparseJSONList :: Value -> Parser [ProresFramerateControl]
parseJSON :: Value -> Parser ProresFramerateControl
$cparseJSON :: Value -> Parser ProresFramerateControl
Core.FromJSON,
      FromJSONKeyFunction [ProresFramerateControl]
FromJSONKeyFunction ProresFramerateControl
FromJSONKeyFunction ProresFramerateControl
-> FromJSONKeyFunction [ProresFramerateControl]
-> FromJSONKey ProresFramerateControl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ProresFramerateControl]
$cfromJSONKeyList :: FromJSONKeyFunction [ProresFramerateControl]
fromJSONKey :: FromJSONKeyFunction ProresFramerateControl
$cfromJSONKey :: FromJSONKeyFunction ProresFramerateControl
Core.FromJSONKey,
      [ProresFramerateControl] -> Encoding
[ProresFramerateControl] -> Value
ProresFramerateControl -> Encoding
ProresFramerateControl -> Value
(ProresFramerateControl -> Value)
-> (ProresFramerateControl -> Encoding)
-> ([ProresFramerateControl] -> Value)
-> ([ProresFramerateControl] -> Encoding)
-> ToJSON ProresFramerateControl
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ProresFramerateControl] -> Encoding
$ctoEncodingList :: [ProresFramerateControl] -> Encoding
toJSONList :: [ProresFramerateControl] -> Value
$ctoJSONList :: [ProresFramerateControl] -> Value
toEncoding :: ProresFramerateControl -> Encoding
$ctoEncoding :: ProresFramerateControl -> Encoding
toJSON :: ProresFramerateControl -> Value
$ctoJSON :: ProresFramerateControl -> Value
Core.ToJSON,
      ToJSONKeyFunction [ProresFramerateControl]
ToJSONKeyFunction ProresFramerateControl
ToJSONKeyFunction ProresFramerateControl
-> ToJSONKeyFunction [ProresFramerateControl]
-> ToJSONKey ProresFramerateControl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ProresFramerateControl]
$ctoJSONKeyList :: ToJSONKeyFunction [ProresFramerateControl]
toJSONKey :: ToJSONKeyFunction ProresFramerateControl
$ctoJSONKey :: ToJSONKeyFunction ProresFramerateControl
Core.ToJSONKey,
      [Node] -> Either String ProresFramerateControl
([Node] -> Either String ProresFramerateControl)
-> FromXML ProresFramerateControl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ProresFramerateControl
$cparseXML :: [Node] -> Either String ProresFramerateControl
Core.FromXML,
      ProresFramerateControl -> XML
(ProresFramerateControl -> XML) -> ToXML ProresFramerateControl
forall a. (a -> XML) -> ToXML a
toXML :: ProresFramerateControl -> XML
$ctoXML :: ProresFramerateControl -> XML
Core.ToXML
    )

pattern ProresFramerateControl_INITIALIZE_FROM_SOURCE :: ProresFramerateControl
pattern $bProresFramerateControl_INITIALIZE_FROM_SOURCE :: ProresFramerateControl
$mProresFramerateControl_INITIALIZE_FROM_SOURCE :: forall r.
ProresFramerateControl -> (Void# -> r) -> (Void# -> r) -> r
ProresFramerateControl_INITIALIZE_FROM_SOURCE = ProresFramerateControl' "INITIALIZE_FROM_SOURCE"

pattern ProresFramerateControl_SPECIFIED :: ProresFramerateControl
pattern $bProresFramerateControl_SPECIFIED :: ProresFramerateControl
$mProresFramerateControl_SPECIFIED :: forall r.
ProresFramerateControl -> (Void# -> r) -> (Void# -> r) -> r
ProresFramerateControl_SPECIFIED = ProresFramerateControl' "SPECIFIED"

{-# COMPLETE
  ProresFramerateControl_INITIALIZE_FROM_SOURCE,
  ProresFramerateControl_SPECIFIED,
  ProresFramerateControl'
  #-}