{-# 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.GrantStatus
-- 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.GrantStatus
  ( GrantStatus
      ( ..,
        GrantStatus_ACTIVE,
        GrantStatus_DELETED,
        GrantStatus_DISABLED,
        GrantStatus_FAILED_WORKFLOW,
        GrantStatus_PENDING_ACCEPT,
        GrantStatus_PENDING_DELETE,
        GrantStatus_PENDING_WORKFLOW,
        GrantStatus_REJECTED,
        GrantStatus_WORKFLOW_COMPLETED
      ),
  )
where

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

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

pattern GrantStatus_ACTIVE :: GrantStatus
pattern $bGrantStatus_ACTIVE :: GrantStatus
$mGrantStatus_ACTIVE :: forall r. GrantStatus -> (Void# -> r) -> (Void# -> r) -> r
GrantStatus_ACTIVE = GrantStatus' "ACTIVE"

pattern GrantStatus_DELETED :: GrantStatus
pattern $bGrantStatus_DELETED :: GrantStatus
$mGrantStatus_DELETED :: forall r. GrantStatus -> (Void# -> r) -> (Void# -> r) -> r
GrantStatus_DELETED = GrantStatus' "DELETED"

pattern GrantStatus_DISABLED :: GrantStatus
pattern $bGrantStatus_DISABLED :: GrantStatus
$mGrantStatus_DISABLED :: forall r. GrantStatus -> (Void# -> r) -> (Void# -> r) -> r
GrantStatus_DISABLED = GrantStatus' "DISABLED"

pattern GrantStatus_FAILED_WORKFLOW :: GrantStatus
pattern $bGrantStatus_FAILED_WORKFLOW :: GrantStatus
$mGrantStatus_FAILED_WORKFLOW :: forall r. GrantStatus -> (Void# -> r) -> (Void# -> r) -> r
GrantStatus_FAILED_WORKFLOW = GrantStatus' "FAILED_WORKFLOW"

pattern GrantStatus_PENDING_ACCEPT :: GrantStatus
pattern $bGrantStatus_PENDING_ACCEPT :: GrantStatus
$mGrantStatus_PENDING_ACCEPT :: forall r. GrantStatus -> (Void# -> r) -> (Void# -> r) -> r
GrantStatus_PENDING_ACCEPT = GrantStatus' "PENDING_ACCEPT"

pattern GrantStatus_PENDING_DELETE :: GrantStatus
pattern $bGrantStatus_PENDING_DELETE :: GrantStatus
$mGrantStatus_PENDING_DELETE :: forall r. GrantStatus -> (Void# -> r) -> (Void# -> r) -> r
GrantStatus_PENDING_DELETE = GrantStatus' "PENDING_DELETE"

pattern GrantStatus_PENDING_WORKFLOW :: GrantStatus
pattern $bGrantStatus_PENDING_WORKFLOW :: GrantStatus
$mGrantStatus_PENDING_WORKFLOW :: forall r. GrantStatus -> (Void# -> r) -> (Void# -> r) -> r
GrantStatus_PENDING_WORKFLOW = GrantStatus' "PENDING_WORKFLOW"

pattern GrantStatus_REJECTED :: GrantStatus
pattern $bGrantStatus_REJECTED :: GrantStatus
$mGrantStatus_REJECTED :: forall r. GrantStatus -> (Void# -> r) -> (Void# -> r) -> r
GrantStatus_REJECTED = GrantStatus' "REJECTED"

pattern GrantStatus_WORKFLOW_COMPLETED :: GrantStatus
pattern $bGrantStatus_WORKFLOW_COMPLETED :: GrantStatus
$mGrantStatus_WORKFLOW_COMPLETED :: forall r. GrantStatus -> (Void# -> r) -> (Void# -> r) -> r
GrantStatus_WORKFLOW_COMPLETED = GrantStatus' "WORKFLOW_COMPLETED"

{-# COMPLETE
  GrantStatus_ACTIVE,
  GrantStatus_DELETED,
  GrantStatus_DISABLED,
  GrantStatus_FAILED_WORKFLOW,
  GrantStatus_PENDING_ACCEPT,
  GrantStatus_PENDING_DELETE,
  GrantStatus_PENDING_WORKFLOW,
  GrantStatus_REJECTED,
  GrantStatus_WORKFLOW_COMPLETED,
  GrantStatus'
  #-}