{-# 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.MediaStore.Types.MethodName
-- 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.MediaStore.Types.MethodName
  ( MethodName
      ( ..,
        MethodName_DELETE,
        MethodName_GET,
        MethodName_HEAD,
        MethodName_PUT
      ),
  )
where

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

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

pattern MethodName_DELETE :: MethodName
pattern $bMethodName_DELETE :: MethodName
$mMethodName_DELETE :: forall r. MethodName -> (Void# -> r) -> (Void# -> r) -> r
MethodName_DELETE = MethodName' "DELETE"

pattern MethodName_GET :: MethodName
pattern $bMethodName_GET :: MethodName
$mMethodName_GET :: forall r. MethodName -> (Void# -> r) -> (Void# -> r) -> r
MethodName_GET = MethodName' "GET"

pattern MethodName_HEAD :: MethodName
pattern $bMethodName_HEAD :: MethodName
$mMethodName_HEAD :: forall r. MethodName -> (Void# -> r) -> (Void# -> r) -> r
MethodName_HEAD = MethodName' "HEAD"

pattern MethodName_PUT :: MethodName
pattern $bMethodName_PUT :: MethodName
$mMethodName_PUT :: forall r. MethodName -> (Void# -> r) -> (Void# -> r) -> r
MethodName_PUT = MethodName' "PUT"

{-# COMPLETE
  MethodName_DELETE,
  MethodName_GET,
  MethodName_HEAD,
  MethodName_PUT,
  MethodName'
  #-}