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