{-# 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.LicenseManager.Types.LicenseDeletionStatus
-- 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.LicenseManager.Types.LicenseDeletionStatus
  ( LicenseDeletionStatus
      ( ..,
        LicenseDeletionStatus_DELETED,
        LicenseDeletionStatus_PENDING_DELETE
      ),
  )
where

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

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

pattern LicenseDeletionStatus_DELETED :: LicenseDeletionStatus
pattern $bLicenseDeletionStatus_DELETED :: LicenseDeletionStatus
$mLicenseDeletionStatus_DELETED :: forall r.
LicenseDeletionStatus -> (Void# -> r) -> (Void# -> r) -> r
LicenseDeletionStatus_DELETED = LicenseDeletionStatus' "DELETED"

pattern LicenseDeletionStatus_PENDING_DELETE :: LicenseDeletionStatus
pattern $bLicenseDeletionStatus_PENDING_DELETE :: LicenseDeletionStatus
$mLicenseDeletionStatus_PENDING_DELETE :: forall r.
LicenseDeletionStatus -> (Void# -> r) -> (Void# -> r) -> r
LicenseDeletionStatus_PENDING_DELETE = LicenseDeletionStatus' "PENDING_DELETE"

{-# COMPLETE
  LicenseDeletionStatus_DELETED,
  LicenseDeletionStatus_PENDING_DELETE,
  LicenseDeletionStatus'
  #-}