{-# 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.SSM.Types.InventoryDeletionStatus
-- 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.SSM.Types.InventoryDeletionStatus
  ( InventoryDeletionStatus
      ( ..,
        InventoryDeletionStatus_Complete,
        InventoryDeletionStatus_InProgress
      ),
  )
where

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

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

pattern InventoryDeletionStatus_Complete :: InventoryDeletionStatus
pattern $bInventoryDeletionStatus_Complete :: InventoryDeletionStatus
$mInventoryDeletionStatus_Complete :: forall {r}.
InventoryDeletionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
InventoryDeletionStatus_Complete = InventoryDeletionStatus' "Complete"

pattern InventoryDeletionStatus_InProgress :: InventoryDeletionStatus
pattern $bInventoryDeletionStatus_InProgress :: InventoryDeletionStatus
$mInventoryDeletionStatus_InProgress :: forall {r}.
InventoryDeletionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
InventoryDeletionStatus_InProgress = InventoryDeletionStatus' "InProgress"

{-# COMPLETE
  InventoryDeletionStatus_Complete,
  InventoryDeletionStatus_InProgress,
  InventoryDeletionStatus'
  #-}