{-# 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.ImageState
( ImageState
( ..,
ImageState_AVAILABLE,
ImageState_COPYING,
ImageState_CREATING,
ImageState_DELETING,
ImageState_FAILED,
ImageState_IMPORTING,
ImageState_PENDING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ImageState = ImageState'
{ ImageState -> Text
fromImageState ::
Core.Text
}
deriving stock
( Int -> ImageState -> ShowS
[ImageState] -> ShowS
ImageState -> String
(Int -> ImageState -> ShowS)
-> (ImageState -> String)
-> ([ImageState] -> ShowS)
-> Show ImageState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImageState] -> ShowS
$cshowList :: [ImageState] -> ShowS
show :: ImageState -> String
$cshow :: ImageState -> String
showsPrec :: Int -> ImageState -> ShowS
$cshowsPrec :: Int -> ImageState -> ShowS
Prelude.Show,
ReadPrec [ImageState]
ReadPrec ImageState
Int -> ReadS ImageState
ReadS [ImageState]
(Int -> ReadS ImageState)
-> ReadS [ImageState]
-> ReadPrec ImageState
-> ReadPrec [ImageState]
-> Read ImageState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImageState]
$creadListPrec :: ReadPrec [ImageState]
readPrec :: ReadPrec ImageState
$creadPrec :: ReadPrec ImageState
readList :: ReadS [ImageState]
$creadList :: ReadS [ImageState]
readsPrec :: Int -> ReadS ImageState
$creadsPrec :: Int -> ReadS ImageState
Prelude.Read,
ImageState -> ImageState -> Bool
(ImageState -> ImageState -> Bool)
-> (ImageState -> ImageState -> Bool) -> Eq ImageState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImageState -> ImageState -> Bool
$c/= :: ImageState -> ImageState -> Bool
== :: ImageState -> ImageState -> Bool
$c== :: ImageState -> ImageState -> Bool
Prelude.Eq,
Eq ImageState
Eq ImageState
-> (ImageState -> ImageState -> Ordering)
-> (ImageState -> ImageState -> Bool)
-> (ImageState -> ImageState -> Bool)
-> (ImageState -> ImageState -> Bool)
-> (ImageState -> ImageState -> Bool)
-> (ImageState -> ImageState -> ImageState)
-> (ImageState -> ImageState -> ImageState)
-> Ord ImageState
ImageState -> ImageState -> Bool
ImageState -> ImageState -> Ordering
ImageState -> ImageState -> ImageState
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 :: ImageState -> ImageState -> ImageState
$cmin :: ImageState -> ImageState -> ImageState
max :: ImageState -> ImageState -> ImageState
$cmax :: ImageState -> ImageState -> ImageState
>= :: ImageState -> ImageState -> Bool
$c>= :: ImageState -> ImageState -> Bool
> :: ImageState -> ImageState -> Bool
$c> :: ImageState -> ImageState -> Bool
<= :: ImageState -> ImageState -> Bool
$c<= :: ImageState -> ImageState -> Bool
< :: ImageState -> ImageState -> Bool
$c< :: ImageState -> ImageState -> Bool
compare :: ImageState -> ImageState -> Ordering
$ccompare :: ImageState -> ImageState -> Ordering
$cp1Ord :: Eq ImageState
Prelude.Ord,
(forall x. ImageState -> Rep ImageState x)
-> (forall x. Rep ImageState x -> ImageState) -> Generic ImageState
forall x. Rep ImageState x -> ImageState
forall x. ImageState -> Rep ImageState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ImageState x -> ImageState
$cfrom :: forall x. ImageState -> Rep ImageState x
Prelude.Generic
)
deriving newtype
( Int -> ImageState -> Int
ImageState -> Int
(Int -> ImageState -> Int)
-> (ImageState -> Int) -> Hashable ImageState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ImageState -> Int
$chash :: ImageState -> Int
hashWithSalt :: Int -> ImageState -> Int
$chashWithSalt :: Int -> ImageState -> Int
Prelude.Hashable,
ImageState -> ()
(ImageState -> ()) -> NFData ImageState
forall a. (a -> ()) -> NFData a
rnf :: ImageState -> ()
$crnf :: ImageState -> ()
Prelude.NFData,
Text -> Either String ImageState
(Text -> Either String ImageState) -> FromText ImageState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ImageState
$cfromText :: Text -> Either String ImageState
Core.FromText,
ImageState -> Text
(ImageState -> Text) -> ToText ImageState
forall a. (a -> Text) -> ToText a
toText :: ImageState -> Text
$ctoText :: ImageState -> Text
Core.ToText,
ImageState -> ByteString
(ImageState -> ByteString) -> ToByteString ImageState
forall a. (a -> ByteString) -> ToByteString a
toBS :: ImageState -> ByteString
$ctoBS :: ImageState -> ByteString
Core.ToByteString,
ImageState -> ByteStringBuilder
(ImageState -> ByteStringBuilder) -> ToLog ImageState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ImageState -> ByteStringBuilder
$cbuild :: ImageState -> ByteStringBuilder
Core.ToLog,
HeaderName -> ImageState -> [Header]
(HeaderName -> ImageState -> [Header]) -> ToHeader ImageState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ImageState -> [Header]
$ctoHeader :: HeaderName -> ImageState -> [Header]
Core.ToHeader,
ImageState -> QueryString
(ImageState -> QueryString) -> ToQuery ImageState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ImageState -> QueryString
$ctoQuery :: ImageState -> QueryString
Core.ToQuery,
Value -> Parser [ImageState]
Value -> Parser ImageState
(Value -> Parser ImageState)
-> (Value -> Parser [ImageState]) -> FromJSON ImageState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ImageState]
$cparseJSONList :: Value -> Parser [ImageState]
parseJSON :: Value -> Parser ImageState
$cparseJSON :: Value -> Parser ImageState
Core.FromJSON,
FromJSONKeyFunction [ImageState]
FromJSONKeyFunction ImageState
FromJSONKeyFunction ImageState
-> FromJSONKeyFunction [ImageState] -> FromJSONKey ImageState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ImageState]
$cfromJSONKeyList :: FromJSONKeyFunction [ImageState]
fromJSONKey :: FromJSONKeyFunction ImageState
$cfromJSONKey :: FromJSONKeyFunction ImageState
Core.FromJSONKey,
[ImageState] -> Encoding
[ImageState] -> Value
ImageState -> Encoding
ImageState -> Value
(ImageState -> Value)
-> (ImageState -> Encoding)
-> ([ImageState] -> Value)
-> ([ImageState] -> Encoding)
-> ToJSON ImageState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ImageState] -> Encoding
$ctoEncodingList :: [ImageState] -> Encoding
toJSONList :: [ImageState] -> Value
$ctoJSONList :: [ImageState] -> Value
toEncoding :: ImageState -> Encoding
$ctoEncoding :: ImageState -> Encoding
toJSON :: ImageState -> Value
$ctoJSON :: ImageState -> Value
Core.ToJSON,
ToJSONKeyFunction [ImageState]
ToJSONKeyFunction ImageState
ToJSONKeyFunction ImageState
-> ToJSONKeyFunction [ImageState] -> ToJSONKey ImageState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ImageState]
$ctoJSONKeyList :: ToJSONKeyFunction [ImageState]
toJSONKey :: ToJSONKeyFunction ImageState
$ctoJSONKey :: ToJSONKeyFunction ImageState
Core.ToJSONKey,
[Node] -> Either String ImageState
([Node] -> Either String ImageState) -> FromXML ImageState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ImageState
$cparseXML :: [Node] -> Either String ImageState
Core.FromXML,
ImageState -> XML
(ImageState -> XML) -> ToXML ImageState
forall a. (a -> XML) -> ToXML a
toXML :: ImageState -> XML
$ctoXML :: ImageState -> XML
Core.ToXML
)
pattern ImageState_AVAILABLE :: ImageState
pattern $bImageState_AVAILABLE :: ImageState
$mImageState_AVAILABLE :: forall r. ImageState -> (Void# -> r) -> (Void# -> r) -> r
ImageState_AVAILABLE = ImageState' "AVAILABLE"
pattern ImageState_COPYING :: ImageState
pattern $bImageState_COPYING :: ImageState
$mImageState_COPYING :: forall r. ImageState -> (Void# -> r) -> (Void# -> r) -> r
ImageState_COPYING = ImageState' "COPYING"
pattern ImageState_CREATING :: ImageState
pattern $bImageState_CREATING :: ImageState
$mImageState_CREATING :: forall r. ImageState -> (Void# -> r) -> (Void# -> r) -> r
ImageState_CREATING = ImageState' "CREATING"
pattern ImageState_DELETING :: ImageState
pattern $bImageState_DELETING :: ImageState
$mImageState_DELETING :: forall r. ImageState -> (Void# -> r) -> (Void# -> r) -> r
ImageState_DELETING = ImageState' "DELETING"
pattern ImageState_FAILED :: ImageState
pattern $bImageState_FAILED :: ImageState
$mImageState_FAILED :: forall r. ImageState -> (Void# -> r) -> (Void# -> r) -> r
ImageState_FAILED = ImageState' "FAILED"
pattern ImageState_IMPORTING :: ImageState
pattern $bImageState_IMPORTING :: ImageState
$mImageState_IMPORTING :: forall r. ImageState -> (Void# -> r) -> (Void# -> r) -> r
ImageState_IMPORTING = ImageState' "IMPORTING"
pattern ImageState_PENDING :: ImageState
pattern $bImageState_PENDING :: ImageState
$mImageState_PENDING :: forall r. ImageState -> (Void# -> r) -> (Void# -> r) -> r
ImageState_PENDING = ImageState' "PENDING"
{-# COMPLETE
ImageState_AVAILABLE,
ImageState_COPYING,
ImageState_CREATING,
ImageState_DELETING,
ImageState_FAILED,
ImageState_IMPORTING,
ImageState_PENDING,
ImageState'
#-}