{-# 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.ImageBuilder.Types.ImageStatus
-- 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.ImageBuilder.Types.ImageStatus
  ( ImageStatus
      ( ..,
        ImageStatus_AVAILABLE,
        ImageStatus_BUILDING,
        ImageStatus_CANCELLED,
        ImageStatus_CREATING,
        ImageStatus_DELETED,
        ImageStatus_DEPRECATED,
        ImageStatus_DISTRIBUTING,
        ImageStatus_FAILED,
        ImageStatus_INTEGRATING,
        ImageStatus_PENDING,
        ImageStatus_TESTING
      ),
  )
where

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

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

pattern ImageStatus_AVAILABLE :: ImageStatus
pattern $bImageStatus_AVAILABLE :: ImageStatus
$mImageStatus_AVAILABLE :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_AVAILABLE = ImageStatus' "AVAILABLE"

pattern ImageStatus_BUILDING :: ImageStatus
pattern $bImageStatus_BUILDING :: ImageStatus
$mImageStatus_BUILDING :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_BUILDING = ImageStatus' "BUILDING"

pattern ImageStatus_CANCELLED :: ImageStatus
pattern $bImageStatus_CANCELLED :: ImageStatus
$mImageStatus_CANCELLED :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_CANCELLED = ImageStatus' "CANCELLED"

pattern ImageStatus_CREATING :: ImageStatus
pattern $bImageStatus_CREATING :: ImageStatus
$mImageStatus_CREATING :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_CREATING = ImageStatus' "CREATING"

pattern ImageStatus_DELETED :: ImageStatus
pattern $bImageStatus_DELETED :: ImageStatus
$mImageStatus_DELETED :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_DELETED = ImageStatus' "DELETED"

pattern ImageStatus_DEPRECATED :: ImageStatus
pattern $bImageStatus_DEPRECATED :: ImageStatus
$mImageStatus_DEPRECATED :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_DEPRECATED = ImageStatus' "DEPRECATED"

pattern ImageStatus_DISTRIBUTING :: ImageStatus
pattern $bImageStatus_DISTRIBUTING :: ImageStatus
$mImageStatus_DISTRIBUTING :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_DISTRIBUTING = ImageStatus' "DISTRIBUTING"

pattern ImageStatus_FAILED :: ImageStatus
pattern $bImageStatus_FAILED :: ImageStatus
$mImageStatus_FAILED :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_FAILED = ImageStatus' "FAILED"

pattern ImageStatus_INTEGRATING :: ImageStatus
pattern $bImageStatus_INTEGRATING :: ImageStatus
$mImageStatus_INTEGRATING :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_INTEGRATING = ImageStatus' "INTEGRATING"

pattern ImageStatus_PENDING :: ImageStatus
pattern $bImageStatus_PENDING :: ImageStatus
$mImageStatus_PENDING :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_PENDING = ImageStatus' "PENDING"

pattern ImageStatus_TESTING :: ImageStatus
pattern $bImageStatus_TESTING :: ImageStatus
$mImageStatus_TESTING :: forall r. ImageStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageStatus_TESTING = ImageStatus' "TESTING"

{-# COMPLETE
  ImageStatus_AVAILABLE,
  ImageStatus_BUILDING,
  ImageStatus_CANCELLED,
  ImageStatus_CREATING,
  ImageStatus_DELETED,
  ImageStatus_DEPRECATED,
  ImageStatus_DISTRIBUTING,
  ImageStatus_FAILED,
  ImageStatus_INTEGRATING,
  ImageStatus_PENDING,
  ImageStatus_TESTING,
  ImageStatus'
  #-}