{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.GuardDuty.Types.DetectorStatus
( DetectorStatus
( ..,
DetectorStatus_DISABLED,
DetectorStatus_ENABLED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype DetectorStatus = DetectorStatus'
{ DetectorStatus -> Text
fromDetectorStatus ::
Core.Text
}
deriving stock
( Int -> DetectorStatus -> ShowS
[DetectorStatus] -> ShowS
DetectorStatus -> String
(Int -> DetectorStatus -> ShowS)
-> (DetectorStatus -> String)
-> ([DetectorStatus] -> ShowS)
-> Show DetectorStatus
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]
(Int -> ReadS DetectorStatus)
-> ReadS [DetectorStatus]
-> ReadPrec DetectorStatus
-> ReadPrec [DetectorStatus]
-> Read 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
(DetectorStatus -> DetectorStatus -> Bool)
-> (DetectorStatus -> DetectorStatus -> Bool) -> Eq DetectorStatus
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
Eq DetectorStatus
-> (DetectorStatus -> DetectorStatus -> Ordering)
-> (DetectorStatus -> DetectorStatus -> Bool)
-> (DetectorStatus -> DetectorStatus -> Bool)
-> (DetectorStatus -> DetectorStatus -> Bool)
-> (DetectorStatus -> DetectorStatus -> Bool)
-> (DetectorStatus -> DetectorStatus -> DetectorStatus)
-> (DetectorStatus -> DetectorStatus -> DetectorStatus)
-> Ord 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
$cp1Ord :: Eq DetectorStatus
Prelude.Ord,
(forall x. DetectorStatus -> Rep DetectorStatus x)
-> (forall x. Rep DetectorStatus x -> DetectorStatus)
-> Generic DetectorStatus
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
( Int -> DetectorStatus -> Int
DetectorStatus -> Int
(Int -> DetectorStatus -> Int)
-> (DetectorStatus -> Int) -> Hashable DetectorStatus
forall 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 -> ()
(DetectorStatus -> ()) -> NFData DetectorStatus
forall a. (a -> ()) -> NFData a
rnf :: DetectorStatus -> ()
$crnf :: DetectorStatus -> ()
Prelude.NFData,
Text -> Either String DetectorStatus
(Text -> Either String DetectorStatus) -> FromText DetectorStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DetectorStatus
$cfromText :: Text -> Either String DetectorStatus
Core.FromText,
DetectorStatus -> Text
(DetectorStatus -> Text) -> ToText DetectorStatus
forall a. (a -> Text) -> ToText a
toText :: DetectorStatus -> Text
$ctoText :: DetectorStatus -> Text
Core.ToText,
DetectorStatus -> ByteString
(DetectorStatus -> ByteString) -> ToByteString DetectorStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: DetectorStatus -> ByteString
$ctoBS :: DetectorStatus -> ByteString
Core.ToByteString,
DetectorStatus -> ByteStringBuilder
(DetectorStatus -> ByteStringBuilder) -> ToLog DetectorStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DetectorStatus -> ByteStringBuilder
$cbuild :: DetectorStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> DetectorStatus -> [Header]
(HeaderName -> DetectorStatus -> [Header])
-> ToHeader DetectorStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DetectorStatus -> [Header]
$ctoHeader :: HeaderName -> DetectorStatus -> [Header]
Core.ToHeader,
DetectorStatus -> QueryString
(DetectorStatus -> QueryString) -> ToQuery DetectorStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DetectorStatus -> QueryString
$ctoQuery :: DetectorStatus -> QueryString
Core.ToQuery,
Value -> Parser [DetectorStatus]
Value -> Parser DetectorStatus
(Value -> Parser DetectorStatus)
-> (Value -> Parser [DetectorStatus]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [DetectorStatus]
FromJSONKeyFunction DetectorStatus
FromJSONKeyFunction DetectorStatus
-> FromJSONKeyFunction [DetectorStatus]
-> FromJSONKey DetectorStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DetectorStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [DetectorStatus]
fromJSONKey :: FromJSONKeyFunction DetectorStatus
$cfromJSONKey :: FromJSONKeyFunction DetectorStatus
Core.FromJSONKey,
[DetectorStatus] -> Encoding
[DetectorStatus] -> Value
DetectorStatus -> Encoding
DetectorStatus -> Value
(DetectorStatus -> Value)
-> (DetectorStatus -> Encoding)
-> ([DetectorStatus] -> Value)
-> ([DetectorStatus] -> Encoding)
-> ToJSON DetectorStatus
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
Core.ToJSON,
ToJSONKeyFunction [DetectorStatus]
ToJSONKeyFunction DetectorStatus
ToJSONKeyFunction DetectorStatus
-> ToJSONKeyFunction [DetectorStatus] -> ToJSONKey DetectorStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DetectorStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [DetectorStatus]
toJSONKey :: ToJSONKeyFunction DetectorStatus
$ctoJSONKey :: ToJSONKeyFunction DetectorStatus
Core.ToJSONKey,
[Node] -> Either String DetectorStatus
([Node] -> Either String DetectorStatus) -> FromXML DetectorStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DetectorStatus
$cparseXML :: [Node] -> Either String DetectorStatus
Core.FromXML,
DetectorStatus -> XML
(DetectorStatus -> XML) -> ToXML DetectorStatus
forall a. (a -> XML) -> ToXML a
toXML :: DetectorStatus -> XML
$ctoXML :: DetectorStatus -> XML
Core.ToXML
)
pattern DetectorStatus_DISABLED :: DetectorStatus
pattern $bDetectorStatus_DISABLED :: DetectorStatus
$mDetectorStatus_DISABLED :: forall r. DetectorStatus -> (Void# -> r) -> (Void# -> r) -> r
DetectorStatus_DISABLED = DetectorStatus' "DISABLED"
pattern DetectorStatus_ENABLED :: DetectorStatus
pattern $bDetectorStatus_ENABLED :: DetectorStatus
$mDetectorStatus_ENABLED :: forall r. DetectorStatus -> (Void# -> r) -> (Void# -> r) -> r
DetectorStatus_ENABLED = DetectorStatus' "ENABLED"
{-# COMPLETE
DetectorStatus_DISABLED,
DetectorStatus_ENABLED,
DetectorStatus'
#-}