{-# 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-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.SSMContacts.Types.ReceiptType
  ( ReceiptType
      ( ..,
        ReceiptType_DELIVERED,
        ReceiptType_ERROR,
        ReceiptType_READ,
        ReceiptType_SENT,
        ReceiptType_STOP
      ),
  )
where

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

newtype ReceiptType = ReceiptType'
  { ReceiptType -> Text
fromReceiptType ::
      Core.Text
  }
  deriving stock
    ( Int -> ReceiptType -> ShowS
[ReceiptType] -> ShowS
ReceiptType -> String
(Int -> ReceiptType -> ShowS)
-> (ReceiptType -> String)
-> ([ReceiptType] -> ShowS)
-> Show ReceiptType
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]
(Int -> ReadS ReceiptType)
-> ReadS [ReceiptType]
-> ReadPrec ReceiptType
-> ReadPrec [ReceiptType]
-> Read 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
(ReceiptType -> ReceiptType -> Bool)
-> (ReceiptType -> ReceiptType -> Bool) -> Eq ReceiptType
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
Eq ReceiptType
-> (ReceiptType -> ReceiptType -> Ordering)
-> (ReceiptType -> ReceiptType -> Bool)
-> (ReceiptType -> ReceiptType -> Bool)
-> (ReceiptType -> ReceiptType -> Bool)
-> (ReceiptType -> ReceiptType -> Bool)
-> (ReceiptType -> ReceiptType -> ReceiptType)
-> (ReceiptType -> ReceiptType -> ReceiptType)
-> Ord 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
$cp1Ord :: Eq ReceiptType
Prelude.Ord,
      (forall x. ReceiptType -> Rep ReceiptType x)
-> (forall x. Rep ReceiptType x -> ReceiptType)
-> Generic ReceiptType
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
    ( Int -> ReceiptType -> Int
ReceiptType -> Int
(Int -> ReceiptType -> Int)
-> (ReceiptType -> Int) -> Hashable ReceiptType
forall 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 -> ()
(ReceiptType -> ()) -> NFData ReceiptType
forall a. (a -> ()) -> NFData a
rnf :: ReceiptType -> ()
$crnf :: ReceiptType -> ()
Prelude.NFData,
      Text -> Either String ReceiptType
(Text -> Either String ReceiptType) -> FromText ReceiptType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ReceiptType
$cfromText :: Text -> Either String ReceiptType
Core.FromText,
      ReceiptType -> Text
(ReceiptType -> Text) -> ToText ReceiptType
forall a. (a -> Text) -> ToText a
toText :: ReceiptType -> Text
$ctoText :: ReceiptType -> Text
Core.ToText,
      ReceiptType -> ByteString
(ReceiptType -> ByteString) -> ToByteString ReceiptType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ReceiptType -> ByteString
$ctoBS :: ReceiptType -> ByteString
Core.ToByteString,
      ReceiptType -> ByteStringBuilder
(ReceiptType -> ByteStringBuilder) -> ToLog ReceiptType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ReceiptType -> ByteStringBuilder
$cbuild :: ReceiptType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ReceiptType -> [Header]
(HeaderName -> ReceiptType -> [Header]) -> ToHeader ReceiptType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ReceiptType -> [Header]
$ctoHeader :: HeaderName -> ReceiptType -> [Header]
Core.ToHeader,
      ReceiptType -> QueryString
(ReceiptType -> QueryString) -> ToQuery ReceiptType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ReceiptType -> QueryString
$ctoQuery :: ReceiptType -> QueryString
Core.ToQuery,
      Value -> Parser [ReceiptType]
Value -> Parser ReceiptType
(Value -> Parser ReceiptType)
-> (Value -> Parser [ReceiptType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ReceiptType]
FromJSONKeyFunction ReceiptType
FromJSONKeyFunction ReceiptType
-> FromJSONKeyFunction [ReceiptType] -> FromJSONKey ReceiptType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ReceiptType]
$cfromJSONKeyList :: FromJSONKeyFunction [ReceiptType]
fromJSONKey :: FromJSONKeyFunction ReceiptType
$cfromJSONKey :: FromJSONKeyFunction ReceiptType
Core.FromJSONKey,
      [ReceiptType] -> Encoding
[ReceiptType] -> Value
ReceiptType -> Encoding
ReceiptType -> Value
(ReceiptType -> Value)
-> (ReceiptType -> Encoding)
-> ([ReceiptType] -> Value)
-> ([ReceiptType] -> Encoding)
-> ToJSON ReceiptType
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
Core.ToJSON,
      ToJSONKeyFunction [ReceiptType]
ToJSONKeyFunction ReceiptType
ToJSONKeyFunction ReceiptType
-> ToJSONKeyFunction [ReceiptType] -> ToJSONKey ReceiptType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ReceiptType]
$ctoJSONKeyList :: ToJSONKeyFunction [ReceiptType]
toJSONKey :: ToJSONKeyFunction ReceiptType
$ctoJSONKey :: ToJSONKeyFunction ReceiptType
Core.ToJSONKey,
      [Node] -> Either String ReceiptType
([Node] -> Either String ReceiptType) -> FromXML ReceiptType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ReceiptType
$cparseXML :: [Node] -> Either String ReceiptType
Core.FromXML,
      ReceiptType -> XML
(ReceiptType -> XML) -> ToXML ReceiptType
forall a. (a -> XML) -> ToXML a
toXML :: ReceiptType -> XML
$ctoXML :: ReceiptType -> XML
Core.ToXML
    )

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

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

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

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

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

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