{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

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

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

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

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

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