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

pattern Vc3FramerateControl_INITIALIZE_FROM_SOURCE :: Vc3FramerateControl
pattern $bVc3FramerateControl_INITIALIZE_FROM_SOURCE :: Vc3FramerateControl
$mVc3FramerateControl_INITIALIZE_FROM_SOURCE :: forall r. Vc3FramerateControl -> (Void# -> r) -> (Void# -> r) -> r
Vc3FramerateControl_INITIALIZE_FROM_SOURCE = Vc3FramerateControl' "INITIALIZE_FROM_SOURCE"

pattern Vc3FramerateControl_SPECIFIED :: Vc3FramerateControl
pattern $bVc3FramerateControl_SPECIFIED :: Vc3FramerateControl
$mVc3FramerateControl_SPECIFIED :: forall r. Vc3FramerateControl -> (Void# -> r) -> (Void# -> r) -> r
Vc3FramerateControl_SPECIFIED = Vc3FramerateControl' "SPECIFIED"

{-# COMPLETE
  Vc3FramerateControl_INITIALIZE_FROM_SOURCE,
  Vc3FramerateControl_SPECIFIED,
  Vc3FramerateControl'
  #-}