{-# 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.MacieStatus
-- 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.MacieV2.Types.MacieStatus
  ( MacieStatus
      ( ..,
        MacieStatus_ENABLED,
        MacieStatus_PAUSED
      ),
  )
where

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

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

pattern MacieStatus_ENABLED :: MacieStatus
pattern $bMacieStatus_ENABLED :: MacieStatus
$mMacieStatus_ENABLED :: forall r. MacieStatus -> (Void# -> r) -> (Void# -> r) -> r
MacieStatus_ENABLED = MacieStatus' "ENABLED"

pattern MacieStatus_PAUSED :: MacieStatus
pattern $bMacieStatus_PAUSED :: MacieStatus
$mMacieStatus_PAUSED :: forall r. MacieStatus -> (Void# -> r) -> (Void# -> r) -> r
MacieStatus_PAUSED = MacieStatus' "PAUSED"

{-# COMPLETE
  MacieStatus_ENABLED,
  MacieStatus_PAUSED,
  MacieStatus'
  #-}