{-# 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.H264GopBReference
-- 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.H264GopBReference
  ( H264GopBReference
      ( ..,
        H264GopBReference_DISABLED,
        H264GopBReference_ENABLED
      ),
  )
where

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

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

pattern H264GopBReference_DISABLED :: H264GopBReference
pattern $bH264GopBReference_DISABLED :: H264GopBReference
$mH264GopBReference_DISABLED :: forall r. H264GopBReference -> (Void# -> r) -> (Void# -> r) -> r
H264GopBReference_DISABLED = H264GopBReference' "DISABLED"

pattern H264GopBReference_ENABLED :: H264GopBReference
pattern $bH264GopBReference_ENABLED :: H264GopBReference
$mH264GopBReference_ENABLED :: forall r. H264GopBReference -> (Void# -> r) -> (Void# -> r) -> r
H264GopBReference_ENABLED = H264GopBReference' "ENABLED"

{-# COMPLETE
  H264GopBReference_DISABLED,
  H264GopBReference_ENABLED,
  H264GopBReference'
  #-}