{-# 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.DetectorStatus
-- 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.GuardDuty.Types.DetectorStatus
  ( DetectorStatus
      ( ..,
        DetectorStatus_DISABLED,
        DetectorStatus_ENABLED
      ),
  )
where

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

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

pattern DetectorStatus_DISABLED :: DetectorStatus
pattern $bDetectorStatus_DISABLED :: DetectorStatus
$mDetectorStatus_DISABLED :: forall {r}. DetectorStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DetectorStatus_DISABLED = DetectorStatus' "DISABLED"

pattern DetectorStatus_ENABLED :: DetectorStatus
pattern $bDetectorStatus_ENABLED :: DetectorStatus
$mDetectorStatus_ENABLED :: forall {r}. DetectorStatus -> ((# #) -> r) -> ((# #) -> r) -> r
DetectorStatus_ENABLED = DetectorStatus' "ENABLED"

{-# COMPLETE
  DetectorStatus_DISABLED,
  DetectorStatus_ENABLED,
  DetectorStatus'
  #-}