{-# 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.XavcGopBReference
-- 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.XavcGopBReference
  ( XavcGopBReference
      ( ..,
        XavcGopBReference_DISABLED,
        XavcGopBReference_ENABLED
      ),
  )
where

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

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

pattern XavcGopBReference_DISABLED :: XavcGopBReference
pattern $bXavcGopBReference_DISABLED :: XavcGopBReference
$mXavcGopBReference_DISABLED :: forall r. XavcGopBReference -> (Void# -> r) -> (Void# -> r) -> r
XavcGopBReference_DISABLED = XavcGopBReference' "DISABLED"

pattern XavcGopBReference_ENABLED :: XavcGopBReference
pattern $bXavcGopBReference_ENABLED :: XavcGopBReference
$mXavcGopBReference_ENABLED :: forall r. XavcGopBReference -> (Void# -> r) -> (Void# -> r) -> r
XavcGopBReference_ENABLED = XavcGopBReference' "ENABLED"

{-# COMPLETE
  XavcGopBReference_DISABLED,
  XavcGopBReference_ENABLED,
  XavcGopBReference'
  #-}