{-# 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.MediaConnect.Types.EncodingName
-- 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.MediaConnect.Types.EncodingName
  ( EncodingName
      ( ..,
        EncodingName_Jxsv,
        EncodingName_Pcm,
        EncodingName_Raw,
        EncodingName_Smpte291
      ),
  )
where

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

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

pattern EncodingName_Jxsv :: EncodingName
pattern $bEncodingName_Jxsv :: EncodingName
$mEncodingName_Jxsv :: forall r. EncodingName -> (Void# -> r) -> (Void# -> r) -> r
EncodingName_Jxsv = EncodingName' "jxsv"

pattern EncodingName_Pcm :: EncodingName
pattern $bEncodingName_Pcm :: EncodingName
$mEncodingName_Pcm :: forall r. EncodingName -> (Void# -> r) -> (Void# -> r) -> r
EncodingName_Pcm = EncodingName' "pcm"

pattern EncodingName_Raw :: EncodingName
pattern $bEncodingName_Raw :: EncodingName
$mEncodingName_Raw :: forall r. EncodingName -> (Void# -> r) -> (Void# -> r) -> r
EncodingName_Raw = EncodingName' "raw"

pattern EncodingName_Smpte291 :: EncodingName
pattern $bEncodingName_Smpte291 :: EncodingName
$mEncodingName_Smpte291 :: forall r. EncodingName -> (Void# -> r) -> (Void# -> r) -> r
EncodingName_Smpte291 = EncodingName' "smpte291"

{-# COMPLETE
  EncodingName_Jxsv,
  EncodingName_Pcm,
  EncodingName_Raw,
  EncodingName_Smpte291,
  EncodingName'
  #-}