{-# 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.PrivateNetworks.Types.AcknowledgmentStatus
-- 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.PrivateNetworks.Types.AcknowledgmentStatus
  ( AcknowledgmentStatus
      ( ..,
        AcknowledgmentStatus_ACKNOWLEDGED,
        AcknowledgmentStatus_ACKNOWLEDGING,
        AcknowledgmentStatus_UNACKNOWLEDGED
      ),
  )
where

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

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

pattern AcknowledgmentStatus_ACKNOWLEDGED :: AcknowledgmentStatus
pattern $bAcknowledgmentStatus_ACKNOWLEDGED :: AcknowledgmentStatus
$mAcknowledgmentStatus_ACKNOWLEDGED :: forall {r}.
AcknowledgmentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AcknowledgmentStatus_ACKNOWLEDGED = AcknowledgmentStatus' "ACKNOWLEDGED"

pattern AcknowledgmentStatus_ACKNOWLEDGING :: AcknowledgmentStatus
pattern $bAcknowledgmentStatus_ACKNOWLEDGING :: AcknowledgmentStatus
$mAcknowledgmentStatus_ACKNOWLEDGING :: forall {r}.
AcknowledgmentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AcknowledgmentStatus_ACKNOWLEDGING = AcknowledgmentStatus' "ACKNOWLEDGING"

pattern AcknowledgmentStatus_UNACKNOWLEDGED :: AcknowledgmentStatus
pattern $bAcknowledgmentStatus_UNACKNOWLEDGED :: AcknowledgmentStatus
$mAcknowledgmentStatus_UNACKNOWLEDGED :: forall {r}.
AcknowledgmentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AcknowledgmentStatus_UNACKNOWLEDGED = AcknowledgmentStatus' "UNACKNOWLEDGED"

{-# COMPLETE
  AcknowledgmentStatus_ACKNOWLEDGED,
  AcknowledgmentStatus_ACKNOWLEDGING,
  AcknowledgmentStatus_UNACKNOWLEDGED,
  AcknowledgmentStatus'
  #-}