{-# 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.PinpointEmail.Types.DeliverabilityTestStatus
-- 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.PinpointEmail.Types.DeliverabilityTestStatus
  ( DeliverabilityTestStatus
      ( ..,
        DeliverabilityTestStatus_COMPLETED,
        DeliverabilityTestStatus_IN_PROGRESS
      ),
  )
where

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

-- | The status of a predictive inbox placement test. If the status is
-- @IN_PROGRESS@, then the predictive inbox placement test is currently
-- running. Predictive inbox placement tests are usually complete within 24
-- hours of creating the test. If the status is @COMPLETE@, then the test
-- is finished, and you can use the @GetDeliverabilityTestReport@ operation
-- to view the results of the test.
newtype DeliverabilityTestStatus = DeliverabilityTestStatus'
  { DeliverabilityTestStatus -> Text
fromDeliverabilityTestStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> DeliverabilityTestStatus -> ShowS
[DeliverabilityTestStatus] -> ShowS
DeliverabilityTestStatus -> String
(Int -> DeliverabilityTestStatus -> ShowS)
-> (DeliverabilityTestStatus -> String)
-> ([DeliverabilityTestStatus] -> ShowS)
-> Show DeliverabilityTestStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeliverabilityTestStatus] -> ShowS
$cshowList :: [DeliverabilityTestStatus] -> ShowS
show :: DeliverabilityTestStatus -> String
$cshow :: DeliverabilityTestStatus -> String
showsPrec :: Int -> DeliverabilityTestStatus -> ShowS
$cshowsPrec :: Int -> DeliverabilityTestStatus -> ShowS
Prelude.Show,
      ReadPrec [DeliverabilityTestStatus]
ReadPrec DeliverabilityTestStatus
Int -> ReadS DeliverabilityTestStatus
ReadS [DeliverabilityTestStatus]
(Int -> ReadS DeliverabilityTestStatus)
-> ReadS [DeliverabilityTestStatus]
-> ReadPrec DeliverabilityTestStatus
-> ReadPrec [DeliverabilityTestStatus]
-> Read DeliverabilityTestStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeliverabilityTestStatus]
$creadListPrec :: ReadPrec [DeliverabilityTestStatus]
readPrec :: ReadPrec DeliverabilityTestStatus
$creadPrec :: ReadPrec DeliverabilityTestStatus
readList :: ReadS [DeliverabilityTestStatus]
$creadList :: ReadS [DeliverabilityTestStatus]
readsPrec :: Int -> ReadS DeliverabilityTestStatus
$creadsPrec :: Int -> ReadS DeliverabilityTestStatus
Prelude.Read,
      DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool
(DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool)
-> (DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool)
-> Eq DeliverabilityTestStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool
$c/= :: DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool
== :: DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool
$c== :: DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool
Prelude.Eq,
      Eq DeliverabilityTestStatus
Eq DeliverabilityTestStatus
-> (DeliverabilityTestStatus
    -> DeliverabilityTestStatus -> Ordering)
-> (DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool)
-> (DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool)
-> (DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool)
-> (DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool)
-> (DeliverabilityTestStatus
    -> DeliverabilityTestStatus -> DeliverabilityTestStatus)
-> (DeliverabilityTestStatus
    -> DeliverabilityTestStatus -> DeliverabilityTestStatus)
-> Ord DeliverabilityTestStatus
DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool
DeliverabilityTestStatus -> DeliverabilityTestStatus -> Ordering
DeliverabilityTestStatus
-> DeliverabilityTestStatus -> DeliverabilityTestStatus
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 :: DeliverabilityTestStatus
-> DeliverabilityTestStatus -> DeliverabilityTestStatus
$cmin :: DeliverabilityTestStatus
-> DeliverabilityTestStatus -> DeliverabilityTestStatus
max :: DeliverabilityTestStatus
-> DeliverabilityTestStatus -> DeliverabilityTestStatus
$cmax :: DeliverabilityTestStatus
-> DeliverabilityTestStatus -> DeliverabilityTestStatus
>= :: DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool
$c>= :: DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool
> :: DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool
$c> :: DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool
<= :: DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool
$c<= :: DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool
< :: DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool
$c< :: DeliverabilityTestStatus -> DeliverabilityTestStatus -> Bool
compare :: DeliverabilityTestStatus -> DeliverabilityTestStatus -> Ordering
$ccompare :: DeliverabilityTestStatus -> DeliverabilityTestStatus -> Ordering
$cp1Ord :: Eq DeliverabilityTestStatus
Prelude.Ord,
      (forall x.
 DeliverabilityTestStatus -> Rep DeliverabilityTestStatus x)
-> (forall x.
    Rep DeliverabilityTestStatus x -> DeliverabilityTestStatus)
-> Generic DeliverabilityTestStatus
forall x.
Rep DeliverabilityTestStatus x -> DeliverabilityTestStatus
forall x.
DeliverabilityTestStatus -> Rep DeliverabilityTestStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeliverabilityTestStatus x -> DeliverabilityTestStatus
$cfrom :: forall x.
DeliverabilityTestStatus -> Rep DeliverabilityTestStatus x
Prelude.Generic
    )
  deriving newtype
    ( Int -> DeliverabilityTestStatus -> Int
DeliverabilityTestStatus -> Int
(Int -> DeliverabilityTestStatus -> Int)
-> (DeliverabilityTestStatus -> Int)
-> Hashable DeliverabilityTestStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DeliverabilityTestStatus -> Int
$chash :: DeliverabilityTestStatus -> Int
hashWithSalt :: Int -> DeliverabilityTestStatus -> Int
$chashWithSalt :: Int -> DeliverabilityTestStatus -> Int
Prelude.Hashable,
      DeliverabilityTestStatus -> ()
(DeliverabilityTestStatus -> ()) -> NFData DeliverabilityTestStatus
forall a. (a -> ()) -> NFData a
rnf :: DeliverabilityTestStatus -> ()
$crnf :: DeliverabilityTestStatus -> ()
Prelude.NFData,
      Text -> Either String DeliverabilityTestStatus
(Text -> Either String DeliverabilityTestStatus)
-> FromText DeliverabilityTestStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DeliverabilityTestStatus
$cfromText :: Text -> Either String DeliverabilityTestStatus
Core.FromText,
      DeliverabilityTestStatus -> Text
(DeliverabilityTestStatus -> Text)
-> ToText DeliverabilityTestStatus
forall a. (a -> Text) -> ToText a
toText :: DeliverabilityTestStatus -> Text
$ctoText :: DeliverabilityTestStatus -> Text
Core.ToText,
      DeliverabilityTestStatus -> ByteString
(DeliverabilityTestStatus -> ByteString)
-> ToByteString DeliverabilityTestStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: DeliverabilityTestStatus -> ByteString
$ctoBS :: DeliverabilityTestStatus -> ByteString
Core.ToByteString,
      DeliverabilityTestStatus -> ByteStringBuilder
(DeliverabilityTestStatus -> ByteStringBuilder)
-> ToLog DeliverabilityTestStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DeliverabilityTestStatus -> ByteStringBuilder
$cbuild :: DeliverabilityTestStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DeliverabilityTestStatus -> [Header]
(HeaderName -> DeliverabilityTestStatus -> [Header])
-> ToHeader DeliverabilityTestStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DeliverabilityTestStatus -> [Header]
$ctoHeader :: HeaderName -> DeliverabilityTestStatus -> [Header]
Core.ToHeader,
      DeliverabilityTestStatus -> QueryString
(DeliverabilityTestStatus -> QueryString)
-> ToQuery DeliverabilityTestStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DeliverabilityTestStatus -> QueryString
$ctoQuery :: DeliverabilityTestStatus -> QueryString
Core.ToQuery,
      Value -> Parser [DeliverabilityTestStatus]
Value -> Parser DeliverabilityTestStatus
(Value -> Parser DeliverabilityTestStatus)
-> (Value -> Parser [DeliverabilityTestStatus])
-> FromJSON DeliverabilityTestStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DeliverabilityTestStatus]
$cparseJSONList :: Value -> Parser [DeliverabilityTestStatus]
parseJSON :: Value -> Parser DeliverabilityTestStatus
$cparseJSON :: Value -> Parser DeliverabilityTestStatus
Core.FromJSON,
      FromJSONKeyFunction [DeliverabilityTestStatus]
FromJSONKeyFunction DeliverabilityTestStatus
FromJSONKeyFunction DeliverabilityTestStatus
-> FromJSONKeyFunction [DeliverabilityTestStatus]
-> FromJSONKey DeliverabilityTestStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DeliverabilityTestStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [DeliverabilityTestStatus]
fromJSONKey :: FromJSONKeyFunction DeliverabilityTestStatus
$cfromJSONKey :: FromJSONKeyFunction DeliverabilityTestStatus
Core.FromJSONKey,
      [DeliverabilityTestStatus] -> Encoding
[DeliverabilityTestStatus] -> Value
DeliverabilityTestStatus -> Encoding
DeliverabilityTestStatus -> Value
(DeliverabilityTestStatus -> Value)
-> (DeliverabilityTestStatus -> Encoding)
-> ([DeliverabilityTestStatus] -> Value)
-> ([DeliverabilityTestStatus] -> Encoding)
-> ToJSON DeliverabilityTestStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DeliverabilityTestStatus] -> Encoding
$ctoEncodingList :: [DeliverabilityTestStatus] -> Encoding
toJSONList :: [DeliverabilityTestStatus] -> Value
$ctoJSONList :: [DeliverabilityTestStatus] -> Value
toEncoding :: DeliverabilityTestStatus -> Encoding
$ctoEncoding :: DeliverabilityTestStatus -> Encoding
toJSON :: DeliverabilityTestStatus -> Value
$ctoJSON :: DeliverabilityTestStatus -> Value
Core.ToJSON,
      ToJSONKeyFunction [DeliverabilityTestStatus]
ToJSONKeyFunction DeliverabilityTestStatus
ToJSONKeyFunction DeliverabilityTestStatus
-> ToJSONKeyFunction [DeliverabilityTestStatus]
-> ToJSONKey DeliverabilityTestStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DeliverabilityTestStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [DeliverabilityTestStatus]
toJSONKey :: ToJSONKeyFunction DeliverabilityTestStatus
$ctoJSONKey :: ToJSONKeyFunction DeliverabilityTestStatus
Core.ToJSONKey,
      [Node] -> Either String DeliverabilityTestStatus
([Node] -> Either String DeliverabilityTestStatus)
-> FromXML DeliverabilityTestStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DeliverabilityTestStatus
$cparseXML :: [Node] -> Either String DeliverabilityTestStatus
Core.FromXML,
      DeliverabilityTestStatus -> XML
(DeliverabilityTestStatus -> XML) -> ToXML DeliverabilityTestStatus
forall a. (a -> XML) -> ToXML a
toXML :: DeliverabilityTestStatus -> XML
$ctoXML :: DeliverabilityTestStatus -> XML
Core.ToXML
    )

pattern DeliverabilityTestStatus_COMPLETED :: DeliverabilityTestStatus
pattern $bDeliverabilityTestStatus_COMPLETED :: DeliverabilityTestStatus
$mDeliverabilityTestStatus_COMPLETED :: forall r.
DeliverabilityTestStatus -> (Void# -> r) -> (Void# -> r) -> r
DeliverabilityTestStatus_COMPLETED = DeliverabilityTestStatus' "COMPLETED"

pattern DeliverabilityTestStatus_IN_PROGRESS :: DeliverabilityTestStatus
pattern $bDeliverabilityTestStatus_IN_PROGRESS :: DeliverabilityTestStatus
$mDeliverabilityTestStatus_IN_PROGRESS :: forall r.
DeliverabilityTestStatus -> (Void# -> r) -> (Void# -> r) -> r
DeliverabilityTestStatus_IN_PROGRESS = DeliverabilityTestStatus' "IN_PROGRESS"

{-# COMPLETE
  DeliverabilityTestStatus_COMPLETED,
  DeliverabilityTestStatus_IN_PROGRESS,
  DeliverabilityTestStatus'
  #-}