{-# 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.ECR.Types.ScanStatus
-- 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.ECR.Types.ScanStatus
  ( ScanStatus
      ( ..,
        ScanStatus_COMPLETE,
        ScanStatus_FAILED,
        ScanStatus_IN_PROGRESS
      ),
  )
where

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

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

pattern ScanStatus_COMPLETE :: ScanStatus
pattern $bScanStatus_COMPLETE :: ScanStatus
$mScanStatus_COMPLETE :: forall r. ScanStatus -> (Void# -> r) -> (Void# -> r) -> r
ScanStatus_COMPLETE = ScanStatus' "COMPLETE"

pattern ScanStatus_FAILED :: ScanStatus
pattern $bScanStatus_FAILED :: ScanStatus
$mScanStatus_FAILED :: forall r. ScanStatus -> (Void# -> r) -> (Void# -> r) -> r
ScanStatus_FAILED = ScanStatus' "FAILED"

pattern ScanStatus_IN_PROGRESS :: ScanStatus
pattern $bScanStatus_IN_PROGRESS :: ScanStatus
$mScanStatus_IN_PROGRESS :: forall r. ScanStatus -> (Void# -> r) -> (Void# -> r) -> r
ScanStatus_IN_PROGRESS = ScanStatus' "IN_PROGRESS"

{-# COMPLETE
  ScanStatus_COMPLETE,
  ScanStatus_FAILED,
  ScanStatus_IN_PROGRESS,
  ScanStatus'
  #-}