{-# 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.MediaLive.Types.H265AlternativeTransferFunction
-- 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.MediaLive.Types.H265AlternativeTransferFunction
  ( H265AlternativeTransferFunction
      ( ..,
        H265AlternativeTransferFunction_INSERT,
        H265AlternativeTransferFunction_OMIT
      ),
  )
where

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

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

pattern H265AlternativeTransferFunction_INSERT :: H265AlternativeTransferFunction
pattern $bH265AlternativeTransferFunction_INSERT :: H265AlternativeTransferFunction
$mH265AlternativeTransferFunction_INSERT :: forall r.
H265AlternativeTransferFunction
-> (Void# -> r) -> (Void# -> r) -> r
H265AlternativeTransferFunction_INSERT = H265AlternativeTransferFunction' "INSERT"

pattern H265AlternativeTransferFunction_OMIT :: H265AlternativeTransferFunction
pattern $bH265AlternativeTransferFunction_OMIT :: H265AlternativeTransferFunction
$mH265AlternativeTransferFunction_OMIT :: forall r.
H265AlternativeTransferFunction
-> (Void# -> r) -> (Void# -> r) -> r
H265AlternativeTransferFunction_OMIT = H265AlternativeTransferFunction' "OMIT"

{-# COMPLETE
  H265AlternativeTransferFunction_INSERT,
  H265AlternativeTransferFunction_OMIT,
  H265AlternativeTransferFunction'
  #-}