{-# 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.Vc3InterlaceMode
-- 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.Vc3InterlaceMode
  ( Vc3InterlaceMode
      ( ..,
        Vc3InterlaceMode_INTERLACED,
        Vc3InterlaceMode_PROGRESSIVE
      ),
  )
where

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

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

pattern Vc3InterlaceMode_INTERLACED :: Vc3InterlaceMode
pattern $bVc3InterlaceMode_INTERLACED :: Vc3InterlaceMode
$mVc3InterlaceMode_INTERLACED :: forall r. Vc3InterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
Vc3InterlaceMode_INTERLACED = Vc3InterlaceMode' "INTERLACED"

pattern Vc3InterlaceMode_PROGRESSIVE :: Vc3InterlaceMode
pattern $bVc3InterlaceMode_PROGRESSIVE :: Vc3InterlaceMode
$mVc3InterlaceMode_PROGRESSIVE :: forall r. Vc3InterlaceMode -> (Void# -> r) -> (Void# -> r) -> r
Vc3InterlaceMode_PROGRESSIVE = Vc3InterlaceMode' "PROGRESSIVE"

{-# COMPLETE
  Vc3InterlaceMode_INTERLACED,
  Vc3InterlaceMode_PROGRESSIVE,
  Vc3InterlaceMode'
  #-}