{-# 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.SSMContacts.Types.ReceiptType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SSMContacts.Types.ReceiptType
  ( ReceiptType
      ( ..,
        ReceiptType_DELIVERED,
        ReceiptType_ERROR,
        ReceiptType_READ,
        ReceiptType_SENT,
        ReceiptType_STOP
      ),
  )
where

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

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

pattern ReceiptType_DELIVERED :: ReceiptType
pattern $bReceiptType_DELIVERED :: ReceiptType
$mReceiptType_DELIVERED :: forall {r}. ReceiptType -> ((# #) -> r) -> ((# #) -> r) -> r
ReceiptType_DELIVERED = ReceiptType' "DELIVERED"

pattern ReceiptType_ERROR :: ReceiptType
pattern $bReceiptType_ERROR :: ReceiptType
$mReceiptType_ERROR :: forall {r}. ReceiptType -> ((# #) -> r) -> ((# #) -> r) -> r
ReceiptType_ERROR = ReceiptType' "ERROR"

pattern ReceiptType_READ :: ReceiptType
pattern $bReceiptType_READ :: ReceiptType
$mReceiptType_READ :: forall {r}. ReceiptType -> ((# #) -> r) -> ((# #) -> r) -> r
ReceiptType_READ = ReceiptType' "READ"

pattern ReceiptType_SENT :: ReceiptType
pattern $bReceiptType_SENT :: ReceiptType
$mReceiptType_SENT :: forall {r}. ReceiptType -> ((# #) -> r) -> ((# #) -> r) -> r
ReceiptType_SENT = ReceiptType' "SENT"

pattern ReceiptType_STOP :: ReceiptType
pattern $bReceiptType_STOP :: ReceiptType
$mReceiptType_STOP :: forall {r}. ReceiptType -> ((# #) -> r) -> ((# #) -> r) -> r
ReceiptType_STOP = ReceiptType' "STOP"

{-# COMPLETE
  ReceiptType_DELIVERED,
  ReceiptType_ERROR,
  ReceiptType_READ,
  ReceiptType_SENT,
  ReceiptType_STOP,
  ReceiptType'
  #-}