{-# 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.Config.Types.DeliveryStatus
-- 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.Config.Types.DeliveryStatus
  ( DeliveryStatus
      ( ..,
        DeliveryStatus_Failure,
        DeliveryStatus_Not_Applicable,
        DeliveryStatus_Success
      ),
  )
where

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

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

pattern DeliveryStatus_Failure :: DeliveryStatus
pattern $bDeliveryStatus_Failure :: DeliveryStatus
$mDeliveryStatus_Failure :: forall r. DeliveryStatus -> (Void# -> r) -> (Void# -> r) -> r
DeliveryStatus_Failure = DeliveryStatus' "Failure"

pattern DeliveryStatus_Not_Applicable :: DeliveryStatus
pattern $bDeliveryStatus_Not_Applicable :: DeliveryStatus
$mDeliveryStatus_Not_Applicable :: forall r. DeliveryStatus -> (Void# -> r) -> (Void# -> r) -> r
DeliveryStatus_Not_Applicable = DeliveryStatus' "Not_Applicable"

pattern DeliveryStatus_Success :: DeliveryStatus
pattern $bDeliveryStatus_Success :: DeliveryStatus
$mDeliveryStatus_Success :: forall r. DeliveryStatus -> (Void# -> r) -> (Void# -> r) -> r
DeliveryStatus_Success = DeliveryStatus' "Success"

{-# COMPLETE
  DeliveryStatus_Failure,
  DeliveryStatus_Not_Applicable,
  DeliveryStatus_Success,
  DeliveryStatus'
  #-}