{-# 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.Inspector2.Types.ScanStatusCode
-- 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.Inspector2.Types.ScanStatusCode
  ( ScanStatusCode
      ( ..,
        ScanStatusCode_ACTIVE,
        ScanStatusCode_INACTIVE
      ),
  )
where

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

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

pattern ScanStatusCode_ACTIVE :: ScanStatusCode
pattern $bScanStatusCode_ACTIVE :: ScanStatusCode
$mScanStatusCode_ACTIVE :: forall {r}. ScanStatusCode -> ((# #) -> r) -> ((# #) -> r) -> r
ScanStatusCode_ACTIVE = ScanStatusCode' "ACTIVE"

pattern ScanStatusCode_INACTIVE :: ScanStatusCode
pattern $bScanStatusCode_INACTIVE :: ScanStatusCode
$mScanStatusCode_INACTIVE :: forall {r}. ScanStatusCode -> ((# #) -> r) -> ((# #) -> r) -> r
ScanStatusCode_INACTIVE = ScanStatusCode' "INACTIVE"

{-# COMPLETE
  ScanStatusCode_ACTIVE,
  ScanStatusCode_INACTIVE,
  ScanStatusCode'
  #-}