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