{-# 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.SageMaker.Types.ImageVersionStatus
-- 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.SageMaker.Types.ImageVersionStatus
  ( ImageVersionStatus
      ( ..,
        ImageVersionStatus_CREATED,
        ImageVersionStatus_CREATE_FAILED,
        ImageVersionStatus_CREATING,
        ImageVersionStatus_DELETE_FAILED,
        ImageVersionStatus_DELETING
      ),
  )
where

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

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

pattern ImageVersionStatus_CREATED :: ImageVersionStatus
pattern $bImageVersionStatus_CREATED :: ImageVersionStatus
$mImageVersionStatus_CREATED :: forall r. ImageVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageVersionStatus_CREATED = ImageVersionStatus' "CREATED"

pattern ImageVersionStatus_CREATE_FAILED :: ImageVersionStatus
pattern $bImageVersionStatus_CREATE_FAILED :: ImageVersionStatus
$mImageVersionStatus_CREATE_FAILED :: forall r. ImageVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageVersionStatus_CREATE_FAILED = ImageVersionStatus' "CREATE_FAILED"

pattern ImageVersionStatus_CREATING :: ImageVersionStatus
pattern $bImageVersionStatus_CREATING :: ImageVersionStatus
$mImageVersionStatus_CREATING :: forall r. ImageVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageVersionStatus_CREATING = ImageVersionStatus' "CREATING"

pattern ImageVersionStatus_DELETE_FAILED :: ImageVersionStatus
pattern $bImageVersionStatus_DELETE_FAILED :: ImageVersionStatus
$mImageVersionStatus_DELETE_FAILED :: forall r. ImageVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageVersionStatus_DELETE_FAILED = ImageVersionStatus' "DELETE_FAILED"

pattern ImageVersionStatus_DELETING :: ImageVersionStatus
pattern $bImageVersionStatus_DELETING :: ImageVersionStatus
$mImageVersionStatus_DELETING :: forall r. ImageVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
ImageVersionStatus_DELETING = ImageVersionStatus' "DELETING"

{-# COMPLETE
  ImageVersionStatus_CREATED,
  ImageVersionStatus_CREATE_FAILED,
  ImageVersionStatus_CREATING,
  ImageVersionStatus_DELETE_FAILED,
  ImageVersionStatus_DELETING,
  ImageVersionStatus'
  #-}