{-# 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.Chime.Types.EmailStatus
-- 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.Chime.Types.EmailStatus
  ( EmailStatus
      ( ..,
        EmailStatus_Failed,
        EmailStatus_NotSent,
        EmailStatus_Sent
      ),
  )
where

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

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

pattern EmailStatus_Failed :: EmailStatus
pattern $bEmailStatus_Failed :: EmailStatus
$mEmailStatus_Failed :: forall {r}. EmailStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EmailStatus_Failed = EmailStatus' "Failed"

pattern EmailStatus_NotSent :: EmailStatus
pattern $bEmailStatus_NotSent :: EmailStatus
$mEmailStatus_NotSent :: forall {r}. EmailStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EmailStatus_NotSent = EmailStatus' "NotSent"

pattern EmailStatus_Sent :: EmailStatus
pattern $bEmailStatus_Sent :: EmailStatus
$mEmailStatus_Sent :: forall {r}. EmailStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EmailStatus_Sent = EmailStatus' "Sent"

{-# COMPLETE
  EmailStatus_Failed,
  EmailStatus_NotSent,
  EmailStatus_Sent,
  EmailStatus'
  #-}