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

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

newtype StopAction = StopAction'
  { StopAction -> Text
fromStopAction ::
      Core.Text
  }
  deriving stock
    ( Int -> StopAction -> ShowS
[StopAction] -> ShowS
StopAction -> String
(Int -> StopAction -> ShowS)
-> (StopAction -> String)
-> ([StopAction] -> ShowS)
-> Show StopAction
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]
(Int -> ReadS StopAction)
-> ReadS [StopAction]
-> ReadPrec StopAction
-> ReadPrec [StopAction]
-> Read 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
(StopAction -> StopAction -> Bool)
-> (StopAction -> StopAction -> Bool) -> Eq StopAction
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
Eq StopAction
-> (StopAction -> StopAction -> Ordering)
-> (StopAction -> StopAction -> Bool)
-> (StopAction -> StopAction -> Bool)
-> (StopAction -> StopAction -> Bool)
-> (StopAction -> StopAction -> Bool)
-> (StopAction -> StopAction -> StopAction)
-> (StopAction -> StopAction -> StopAction)
-> Ord 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
$cp1Ord :: Eq StopAction
Prelude.Ord,
      (forall x. StopAction -> Rep StopAction x)
-> (forall x. Rep StopAction x -> StopAction) -> Generic StopAction
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
    ( Int -> StopAction -> Int
StopAction -> Int
(Int -> StopAction -> Int)
-> (StopAction -> Int) -> Hashable StopAction
forall 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 -> ()
(StopAction -> ()) -> NFData StopAction
forall a. (a -> ()) -> NFData a
rnf :: StopAction -> ()
$crnf :: StopAction -> ()
Prelude.NFData,
      Text -> Either String StopAction
(Text -> Either String StopAction) -> FromText StopAction
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StopAction
$cfromText :: Text -> Either String StopAction
Core.FromText,
      StopAction -> Text
(StopAction -> Text) -> ToText StopAction
forall a. (a -> Text) -> ToText a
toText :: StopAction -> Text
$ctoText :: StopAction -> Text
Core.ToText,
      StopAction -> ByteString
(StopAction -> ByteString) -> ToByteString StopAction
forall a. (a -> ByteString) -> ToByteString a
toBS :: StopAction -> ByteString
$ctoBS :: StopAction -> ByteString
Core.ToByteString,
      StopAction -> ByteStringBuilder
(StopAction -> ByteStringBuilder) -> ToLog StopAction
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StopAction -> ByteStringBuilder
$cbuild :: StopAction -> ByteStringBuilder
Core.ToLog,
      HeaderName -> StopAction -> [Header]
(HeaderName -> StopAction -> [Header]) -> ToHeader StopAction
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StopAction -> [Header]
$ctoHeader :: HeaderName -> StopAction -> [Header]
Core.ToHeader,
      StopAction -> QueryString
(StopAction -> QueryString) -> ToQuery StopAction
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StopAction -> QueryString
$ctoQuery :: StopAction -> QueryString
Core.ToQuery,
      Value -> Parser [StopAction]
Value -> Parser StopAction
(Value -> Parser StopAction)
-> (Value -> Parser [StopAction]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [StopAction]
FromJSONKeyFunction StopAction
FromJSONKeyFunction StopAction
-> FromJSONKeyFunction [StopAction] -> FromJSONKey StopAction
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StopAction]
$cfromJSONKeyList :: FromJSONKeyFunction [StopAction]
fromJSONKey :: FromJSONKeyFunction StopAction
$cfromJSONKey :: FromJSONKeyFunction StopAction
Core.FromJSONKey,
      [StopAction] -> Encoding
[StopAction] -> Value
StopAction -> Encoding
StopAction -> Value
(StopAction -> Value)
-> (StopAction -> Encoding)
-> ([StopAction] -> Value)
-> ([StopAction] -> Encoding)
-> ToJSON StopAction
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
Core.ToJSON,
      ToJSONKeyFunction [StopAction]
ToJSONKeyFunction StopAction
ToJSONKeyFunction StopAction
-> ToJSONKeyFunction [StopAction] -> ToJSONKey StopAction
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StopAction]
$ctoJSONKeyList :: ToJSONKeyFunction [StopAction]
toJSONKey :: ToJSONKeyFunction StopAction
$ctoJSONKey :: ToJSONKeyFunction StopAction
Core.ToJSONKey,
      [Node] -> Either String StopAction
([Node] -> Either String StopAction) -> FromXML StopAction
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StopAction
$cparseXML :: [Node] -> Either String StopAction
Core.FromXML,
      StopAction -> XML
(StopAction -> XML) -> ToXML StopAction
forall a. (a -> XML) -> ToXML a
toXML :: StopAction -> XML
$ctoXML :: StopAction -> XML
Core.ToXML
    )

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

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

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