{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.AppStream.Types.ImageBuilderStateChangeReasonCode
( ImageBuilderStateChangeReasonCode
( ..,
ImageBuilderStateChangeReasonCode_IMAGE_UNAVAILABLE,
ImageBuilderStateChangeReasonCode_INTERNAL_ERROR
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ImageBuilderStateChangeReasonCode = ImageBuilderStateChangeReasonCode'
{ ImageBuilderStateChangeReasonCode -> Text
fromImageBuilderStateChangeReasonCode ::
Core.Text
}
deriving stock
( Int -> ImageBuilderStateChangeReasonCode -> ShowS
[ImageBuilderStateChangeReasonCode] -> ShowS
ImageBuilderStateChangeReasonCode -> String
(Int -> ImageBuilderStateChangeReasonCode -> ShowS)
-> (ImageBuilderStateChangeReasonCode -> String)
-> ([ImageBuilderStateChangeReasonCode] -> ShowS)
-> Show ImageBuilderStateChangeReasonCode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImageBuilderStateChangeReasonCode] -> ShowS
$cshowList :: [ImageBuilderStateChangeReasonCode] -> ShowS
show :: ImageBuilderStateChangeReasonCode -> String
$cshow :: ImageBuilderStateChangeReasonCode -> String
showsPrec :: Int -> ImageBuilderStateChangeReasonCode -> ShowS
$cshowsPrec :: Int -> ImageBuilderStateChangeReasonCode -> ShowS
Prelude.Show,
ReadPrec [ImageBuilderStateChangeReasonCode]
ReadPrec ImageBuilderStateChangeReasonCode
Int -> ReadS ImageBuilderStateChangeReasonCode
ReadS [ImageBuilderStateChangeReasonCode]
(Int -> ReadS ImageBuilderStateChangeReasonCode)
-> ReadS [ImageBuilderStateChangeReasonCode]
-> ReadPrec ImageBuilderStateChangeReasonCode
-> ReadPrec [ImageBuilderStateChangeReasonCode]
-> Read ImageBuilderStateChangeReasonCode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImageBuilderStateChangeReasonCode]
$creadListPrec :: ReadPrec [ImageBuilderStateChangeReasonCode]
readPrec :: ReadPrec ImageBuilderStateChangeReasonCode
$creadPrec :: ReadPrec ImageBuilderStateChangeReasonCode
readList :: ReadS [ImageBuilderStateChangeReasonCode]
$creadList :: ReadS [ImageBuilderStateChangeReasonCode]
readsPrec :: Int -> ReadS ImageBuilderStateChangeReasonCode
$creadsPrec :: Int -> ReadS ImageBuilderStateChangeReasonCode
Prelude.Read,
ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool
(ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool)
-> (ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool)
-> Eq ImageBuilderStateChangeReasonCode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool
$c/= :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool
== :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool
$c== :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool
Prelude.Eq,
Eq ImageBuilderStateChangeReasonCode
Eq ImageBuilderStateChangeReasonCode
-> (ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Ordering)
-> (ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool)
-> (ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool)
-> (ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool)
-> (ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool)
-> (ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode)
-> (ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode)
-> Ord ImageBuilderStateChangeReasonCode
ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool
ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Ordering
ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode
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 :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode
$cmin :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode
max :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode
$cmax :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode
>= :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool
$c>= :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool
> :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool
$c> :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool
<= :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool
$c<= :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool
< :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool
$c< :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Bool
compare :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Ordering
$ccompare :: ImageBuilderStateChangeReasonCode
-> ImageBuilderStateChangeReasonCode -> Ordering
$cp1Ord :: Eq ImageBuilderStateChangeReasonCode
Prelude.Ord,
(forall x.
ImageBuilderStateChangeReasonCode
-> Rep ImageBuilderStateChangeReasonCode x)
-> (forall x.
Rep ImageBuilderStateChangeReasonCode x
-> ImageBuilderStateChangeReasonCode)
-> Generic ImageBuilderStateChangeReasonCode
forall x.
Rep ImageBuilderStateChangeReasonCode x
-> ImageBuilderStateChangeReasonCode
forall x.
ImageBuilderStateChangeReasonCode
-> Rep ImageBuilderStateChangeReasonCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ImageBuilderStateChangeReasonCode x
-> ImageBuilderStateChangeReasonCode
$cfrom :: forall x.
ImageBuilderStateChangeReasonCode
-> Rep ImageBuilderStateChangeReasonCode x
Prelude.Generic
)
deriving newtype
( Int -> ImageBuilderStateChangeReasonCode -> Int
ImageBuilderStateChangeReasonCode -> Int
(Int -> ImageBuilderStateChangeReasonCode -> Int)
-> (ImageBuilderStateChangeReasonCode -> Int)
-> Hashable ImageBuilderStateChangeReasonCode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ImageBuilderStateChangeReasonCode -> Int
$chash :: ImageBuilderStateChangeReasonCode -> Int
hashWithSalt :: Int -> ImageBuilderStateChangeReasonCode -> Int
$chashWithSalt :: Int -> ImageBuilderStateChangeReasonCode -> Int
Prelude.Hashable,
ImageBuilderStateChangeReasonCode -> ()
(ImageBuilderStateChangeReasonCode -> ())
-> NFData ImageBuilderStateChangeReasonCode
forall a. (a -> ()) -> NFData a
rnf :: ImageBuilderStateChangeReasonCode -> ()
$crnf :: ImageBuilderStateChangeReasonCode -> ()
Prelude.NFData,
Text -> Either String ImageBuilderStateChangeReasonCode
(Text -> Either String ImageBuilderStateChangeReasonCode)
-> FromText ImageBuilderStateChangeReasonCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ImageBuilderStateChangeReasonCode
$cfromText :: Text -> Either String ImageBuilderStateChangeReasonCode
Core.FromText,
ImageBuilderStateChangeReasonCode -> Text
(ImageBuilderStateChangeReasonCode -> Text)
-> ToText ImageBuilderStateChangeReasonCode
forall a. (a -> Text) -> ToText a
toText :: ImageBuilderStateChangeReasonCode -> Text
$ctoText :: ImageBuilderStateChangeReasonCode -> Text
Core.ToText,
ImageBuilderStateChangeReasonCode -> ByteString
(ImageBuilderStateChangeReasonCode -> ByteString)
-> ToByteString ImageBuilderStateChangeReasonCode
forall a. (a -> ByteString) -> ToByteString a
toBS :: ImageBuilderStateChangeReasonCode -> ByteString
$ctoBS :: ImageBuilderStateChangeReasonCode -> ByteString
Core.ToByteString,
ImageBuilderStateChangeReasonCode -> ByteStringBuilder
(ImageBuilderStateChangeReasonCode -> ByteStringBuilder)
-> ToLog ImageBuilderStateChangeReasonCode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ImageBuilderStateChangeReasonCode -> ByteStringBuilder
$cbuild :: ImageBuilderStateChangeReasonCode -> ByteStringBuilder
Core.ToLog,
HeaderName -> ImageBuilderStateChangeReasonCode -> [Header]
(HeaderName -> ImageBuilderStateChangeReasonCode -> [Header])
-> ToHeader ImageBuilderStateChangeReasonCode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ImageBuilderStateChangeReasonCode -> [Header]
$ctoHeader :: HeaderName -> ImageBuilderStateChangeReasonCode -> [Header]
Core.ToHeader,
ImageBuilderStateChangeReasonCode -> QueryString
(ImageBuilderStateChangeReasonCode -> QueryString)
-> ToQuery ImageBuilderStateChangeReasonCode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ImageBuilderStateChangeReasonCode -> QueryString
$ctoQuery :: ImageBuilderStateChangeReasonCode -> QueryString
Core.ToQuery,
Value -> Parser [ImageBuilderStateChangeReasonCode]
Value -> Parser ImageBuilderStateChangeReasonCode
(Value -> Parser ImageBuilderStateChangeReasonCode)
-> (Value -> Parser [ImageBuilderStateChangeReasonCode])
-> FromJSON ImageBuilderStateChangeReasonCode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ImageBuilderStateChangeReasonCode]
$cparseJSONList :: Value -> Parser [ImageBuilderStateChangeReasonCode]
parseJSON :: Value -> Parser ImageBuilderStateChangeReasonCode
$cparseJSON :: Value -> Parser ImageBuilderStateChangeReasonCode
Core.FromJSON,
FromJSONKeyFunction [ImageBuilderStateChangeReasonCode]
FromJSONKeyFunction ImageBuilderStateChangeReasonCode
FromJSONKeyFunction ImageBuilderStateChangeReasonCode
-> FromJSONKeyFunction [ImageBuilderStateChangeReasonCode]
-> FromJSONKey ImageBuilderStateChangeReasonCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ImageBuilderStateChangeReasonCode]
$cfromJSONKeyList :: FromJSONKeyFunction [ImageBuilderStateChangeReasonCode]
fromJSONKey :: FromJSONKeyFunction ImageBuilderStateChangeReasonCode
$cfromJSONKey :: FromJSONKeyFunction ImageBuilderStateChangeReasonCode
Core.FromJSONKey,
[ImageBuilderStateChangeReasonCode] -> Encoding
[ImageBuilderStateChangeReasonCode] -> Value
ImageBuilderStateChangeReasonCode -> Encoding
ImageBuilderStateChangeReasonCode -> Value
(ImageBuilderStateChangeReasonCode -> Value)
-> (ImageBuilderStateChangeReasonCode -> Encoding)
-> ([ImageBuilderStateChangeReasonCode] -> Value)
-> ([ImageBuilderStateChangeReasonCode] -> Encoding)
-> ToJSON ImageBuilderStateChangeReasonCode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ImageBuilderStateChangeReasonCode] -> Encoding
$ctoEncodingList :: [ImageBuilderStateChangeReasonCode] -> Encoding
toJSONList :: [ImageBuilderStateChangeReasonCode] -> Value
$ctoJSONList :: [ImageBuilderStateChangeReasonCode] -> Value
toEncoding :: ImageBuilderStateChangeReasonCode -> Encoding
$ctoEncoding :: ImageBuilderStateChangeReasonCode -> Encoding
toJSON :: ImageBuilderStateChangeReasonCode -> Value
$ctoJSON :: ImageBuilderStateChangeReasonCode -> Value
Core.ToJSON,
ToJSONKeyFunction [ImageBuilderStateChangeReasonCode]
ToJSONKeyFunction ImageBuilderStateChangeReasonCode
ToJSONKeyFunction ImageBuilderStateChangeReasonCode
-> ToJSONKeyFunction [ImageBuilderStateChangeReasonCode]
-> ToJSONKey ImageBuilderStateChangeReasonCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ImageBuilderStateChangeReasonCode]
$ctoJSONKeyList :: ToJSONKeyFunction [ImageBuilderStateChangeReasonCode]
toJSONKey :: ToJSONKeyFunction ImageBuilderStateChangeReasonCode
$ctoJSONKey :: ToJSONKeyFunction ImageBuilderStateChangeReasonCode
Core.ToJSONKey,
[Node] -> Either String ImageBuilderStateChangeReasonCode
([Node] -> Either String ImageBuilderStateChangeReasonCode)
-> FromXML ImageBuilderStateChangeReasonCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ImageBuilderStateChangeReasonCode
$cparseXML :: [Node] -> Either String ImageBuilderStateChangeReasonCode
Core.FromXML,
ImageBuilderStateChangeReasonCode -> XML
(ImageBuilderStateChangeReasonCode -> XML)
-> ToXML ImageBuilderStateChangeReasonCode
forall a. (a -> XML) -> ToXML a
toXML :: ImageBuilderStateChangeReasonCode -> XML
$ctoXML :: ImageBuilderStateChangeReasonCode -> XML
Core.ToXML
)
pattern ImageBuilderStateChangeReasonCode_IMAGE_UNAVAILABLE :: ImageBuilderStateChangeReasonCode
pattern $bImageBuilderStateChangeReasonCode_IMAGE_UNAVAILABLE :: ImageBuilderStateChangeReasonCode
$mImageBuilderStateChangeReasonCode_IMAGE_UNAVAILABLE :: forall r.
ImageBuilderStateChangeReasonCode
-> (Void# -> r) -> (Void# -> r) -> r
ImageBuilderStateChangeReasonCode_IMAGE_UNAVAILABLE = ImageBuilderStateChangeReasonCode' "IMAGE_UNAVAILABLE"
pattern ImageBuilderStateChangeReasonCode_INTERNAL_ERROR :: ImageBuilderStateChangeReasonCode
pattern $bImageBuilderStateChangeReasonCode_INTERNAL_ERROR :: ImageBuilderStateChangeReasonCode
$mImageBuilderStateChangeReasonCode_INTERNAL_ERROR :: forall r.
ImageBuilderStateChangeReasonCode
-> (Void# -> r) -> (Void# -> r) -> r
ImageBuilderStateChangeReasonCode_INTERNAL_ERROR = ImageBuilderStateChangeReasonCode' "INTERNAL_ERROR"
{-# COMPLETE
ImageBuilderStateChangeReasonCode_IMAGE_UNAVAILABLE,
ImageBuilderStateChangeReasonCode_INTERNAL_ERROR,
ImageBuilderStateChangeReasonCode'
#-}