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

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

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

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

pattern ReportStatus_FAILED :: ReportStatus
pattern $bReportStatus_FAILED :: ReportStatus
$mReportStatus_FAILED :: forall r. ReportStatus -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
ReportStatus_WORK_IN_PROGRESS = ReportStatus' "WORK_IN_PROGRESS"

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