{-# 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.ReportStatus
-- 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.ReportStatus
  ( ReportStatus
      ( ..,
        ReportStatus_COMPLETED,
        ReportStatus_FAILED,
        ReportStatus_WORK_IN_PROGRESS
      ),
  )
where

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

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

pattern ReportStatus_COMPLETED :: ReportStatus
pattern $bReportStatus_COMPLETED :: ReportStatus
$mReportStatus_COMPLETED :: forall {r}. ReportStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ReportStatus_COMPLETED = ReportStatus' "COMPLETED"

pattern ReportStatus_FAILED :: ReportStatus
pattern $bReportStatus_FAILED :: ReportStatus
$mReportStatus_FAILED :: forall {r}. ReportStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ReportStatus_FAILED = ReportStatus' "FAILED"

pattern ReportStatus_WORK_IN_PROGRESS :: ReportStatus
pattern $bReportStatus_WORK_IN_PROGRESS :: ReportStatus
$mReportStatus_WORK_IN_PROGRESS :: forall {r}. ReportStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ReportStatus_WORK_IN_PROGRESS = ReportStatus' "WORK_IN_PROGRESS"

{-# COMPLETE
  ReportStatus_COMPLETED,
  ReportStatus_FAILED,
  ReportStatus_WORK_IN_PROGRESS,
  ReportStatus'
  #-}