{-# 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.Inspector.Types.StopAction
-- 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.Inspector.Types.StopAction
  ( StopAction
      ( ..,
        StopAction_SKIP_EVALUATION,
        StopAction_START_EVALUATION
      ),
  )
where

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

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

pattern StopAction_SKIP_EVALUATION :: StopAction
pattern $bStopAction_SKIP_EVALUATION :: StopAction
$mStopAction_SKIP_EVALUATION :: forall {r}. StopAction -> ((# #) -> r) -> ((# #) -> r) -> r
StopAction_SKIP_EVALUATION = StopAction' "SKIP_EVALUATION"

pattern StopAction_START_EVALUATION :: StopAction
pattern $bStopAction_START_EVALUATION :: StopAction
$mStopAction_START_EVALUATION :: forall {r}. StopAction -> ((# #) -> r) -> ((# #) -> r) -> r
StopAction_START_EVALUATION = StopAction' "START_EVALUATION"

{-# COMPLETE
  StopAction_SKIP_EVALUATION,
  StopAction_START_EVALUATION,
  StopAction'
  #-}