{-# 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.MediaPackage.Types.PresetSpeke20Audio
-- 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.MediaPackage.Types.PresetSpeke20Audio
  ( PresetSpeke20Audio
      ( ..,
        PresetSpeke20Audio_PRESET_AUDIO_1
      ),
  )
where

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

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

pattern PresetSpeke20Audio_PRESET_AUDIO_1 :: PresetSpeke20Audio
pattern $bPresetSpeke20Audio_PRESET_AUDIO_1 :: PresetSpeke20Audio
$mPresetSpeke20Audio_PRESET_AUDIO_1 :: forall r. PresetSpeke20Audio -> (Void# -> r) -> (Void# -> r) -> r
PresetSpeke20Audio_PRESET_AUDIO_1 = PresetSpeke20Audio' "PRESET-AUDIO-1"

{-# COMPLETE
  PresetSpeke20Audio_PRESET_AUDIO_1,
  PresetSpeke20Audio'
  #-}