{-# 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.XavcFramerateControl
-- 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.XavcFramerateControl
  ( XavcFramerateControl
      ( ..,
        XavcFramerateControl_INITIALIZE_FROM_SOURCE,
        XavcFramerateControl_SPECIFIED
      ),
  )
where

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

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

pattern XavcFramerateControl_INITIALIZE_FROM_SOURCE :: XavcFramerateControl
pattern $bXavcFramerateControl_INITIALIZE_FROM_SOURCE :: XavcFramerateControl
$mXavcFramerateControl_INITIALIZE_FROM_SOURCE :: forall r. XavcFramerateControl -> (Void# -> r) -> (Void# -> r) -> r
XavcFramerateControl_INITIALIZE_FROM_SOURCE = XavcFramerateControl' "INITIALIZE_FROM_SOURCE"

pattern XavcFramerateControl_SPECIFIED :: XavcFramerateControl
pattern $bXavcFramerateControl_SPECIFIED :: XavcFramerateControl
$mXavcFramerateControl_SPECIFIED :: forall r. XavcFramerateControl -> (Void# -> r) -> (Void# -> r) -> r
XavcFramerateControl_SPECIFIED = XavcFramerateControl' "SPECIFIED"

{-# COMPLETE
  XavcFramerateControl_INITIALIZE_FROM_SOURCE,
  XavcFramerateControl_SPECIFIED,
  XavcFramerateControl'
  #-}