{-# 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.H264RepeatPps
-- 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.H264RepeatPps
  ( H264RepeatPps
      ( ..,
        H264RepeatPps_DISABLED,
        H264RepeatPps_ENABLED
      ),
  )
where

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

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

pattern H264RepeatPps_DISABLED :: H264RepeatPps
pattern $bH264RepeatPps_DISABLED :: H264RepeatPps
$mH264RepeatPps_DISABLED :: forall r. H264RepeatPps -> (Void# -> r) -> (Void# -> r) -> r
H264RepeatPps_DISABLED = H264RepeatPps' "DISABLED"

pattern H264RepeatPps_ENABLED :: H264RepeatPps
pattern $bH264RepeatPps_ENABLED :: H264RepeatPps
$mH264RepeatPps_ENABLED :: forall r. H264RepeatPps -> (Void# -> r) -> (Void# -> r) -> r
H264RepeatPps_ENABLED = H264RepeatPps' "ENABLED"

{-# COMPLETE
  H264RepeatPps_DISABLED,
  H264RepeatPps_ENABLED,
  H264RepeatPps'
  #-}