{-# 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.PreviewStatus
-- 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.PreviewStatus
  ( PreviewStatus
      ( ..,
        PreviewStatus_COMPLETED,
        PreviewStatus_WORK_IN_PROGRESS
      ),
  )
where

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

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

pattern PreviewStatus_COMPLETED :: PreviewStatus
pattern $bPreviewStatus_COMPLETED :: PreviewStatus
$mPreviewStatus_COMPLETED :: forall r. PreviewStatus -> (Void# -> r) -> (Void# -> r) -> r
PreviewStatus_COMPLETED = PreviewStatus' "COMPLETED"

pattern PreviewStatus_WORK_IN_PROGRESS :: PreviewStatus
pattern $bPreviewStatus_WORK_IN_PROGRESS :: PreviewStatus
$mPreviewStatus_WORK_IN_PROGRESS :: forall r. PreviewStatus -> (Void# -> r) -> (Void# -> r) -> r
PreviewStatus_WORK_IN_PROGRESS = PreviewStatus' "WORK_IN_PROGRESS"

{-# COMPLETE
  PreviewStatus_COMPLETED,
  PreviewStatus_WORK_IN_PROGRESS,
  PreviewStatus'
  #-}