{-# 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.MacieV2.Types.RevealStatus
-- 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.MacieV2.Types.RevealStatus
  ( RevealStatus
      ( ..,
        RevealStatus_DISABLED,
        RevealStatus_ENABLED
      ),
  )
where

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

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

pattern RevealStatus_DISABLED :: RevealStatus
pattern $bRevealStatus_DISABLED :: RevealStatus
$mRevealStatus_DISABLED :: forall {r}. RevealStatus -> ((# #) -> r) -> ((# #) -> r) -> r
RevealStatus_DISABLED = RevealStatus' "DISABLED"

pattern RevealStatus_ENABLED :: RevealStatus
pattern $bRevealStatus_ENABLED :: RevealStatus
$mRevealStatus_ENABLED :: forall {r}. RevealStatus -> ((# #) -> r) -> ((# #) -> r) -> r
RevealStatus_ENABLED = RevealStatus' "ENABLED"

{-# COMPLETE
  RevealStatus_DISABLED,
  RevealStatus_ENABLED,
  RevealStatus'
  #-}