{-# 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.GuardDuty.Types.AdminStatus
-- 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.GuardDuty.Types.AdminStatus
  ( AdminStatus
      ( ..,
        AdminStatus_DISABLE_IN_PROGRESS,
        AdminStatus_ENABLED
      ),
  )
where

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

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

pattern AdminStatus_DISABLE_IN_PROGRESS :: AdminStatus
pattern $bAdminStatus_DISABLE_IN_PROGRESS :: AdminStatus
$mAdminStatus_DISABLE_IN_PROGRESS :: forall r. AdminStatus -> (Void# -> r) -> (Void# -> r) -> r
AdminStatus_DISABLE_IN_PROGRESS = AdminStatus' "DISABLE_IN_PROGRESS"

pattern AdminStatus_ENABLED :: AdminStatus
pattern $bAdminStatus_ENABLED :: AdminStatus
$mAdminStatus_ENABLED :: forall r. AdminStatus -> (Void# -> r) -> (Void# -> r) -> r
AdminStatus_ENABLED = AdminStatus' "ENABLED"

{-# COMPLETE
  AdminStatus_DISABLE_IN_PROGRESS,
  AdminStatus_ENABLED,
  AdminStatus'
  #-}