{-# 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.AuditManager.Types.DelegationStatus
-- 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.AuditManager.Types.DelegationStatus
  ( DelegationStatus
      ( ..,
        DelegationStatus_COMPLETE,
        DelegationStatus_IN_PROGRESS,
        DelegationStatus_UNDER_REVIEW
      ),
  )
where

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

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

pattern DelegationStatus_COMPLETE :: DelegationStatus
pattern $bDelegationStatus_COMPLETE :: DelegationStatus
$mDelegationStatus_COMPLETE :: forall r. DelegationStatus -> (Void# -> r) -> (Void# -> r) -> r
DelegationStatus_COMPLETE = DelegationStatus' "COMPLETE"

pattern DelegationStatus_IN_PROGRESS :: DelegationStatus
pattern $bDelegationStatus_IN_PROGRESS :: DelegationStatus
$mDelegationStatus_IN_PROGRESS :: forall r. DelegationStatus -> (Void# -> r) -> (Void# -> r) -> r
DelegationStatus_IN_PROGRESS = DelegationStatus' "IN_PROGRESS"

pattern DelegationStatus_UNDER_REVIEW :: DelegationStatus
pattern $bDelegationStatus_UNDER_REVIEW :: DelegationStatus
$mDelegationStatus_UNDER_REVIEW :: forall r. DelegationStatus -> (Void# -> r) -> (Void# -> r) -> r
DelegationStatus_UNDER_REVIEW = DelegationStatus' "UNDER_REVIEW"

{-# COMPLETE
  DelegationStatus_COMPLETE,
  DelegationStatus_IN_PROGRESS,
  DelegationStatus_UNDER_REVIEW,
  DelegationStatus'
  #-}