{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Panorama.Types.UpdateProgress
( UpdateProgress
( ..,
UpdateProgress_COMPLETED,
UpdateProgress_DOWNLOADING,
UpdateProgress_FAILED,
UpdateProgress_IN_PROGRESS,
UpdateProgress_PENDING,
UpdateProgress_REBOOTING,
UpdateProgress_VERIFYING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype UpdateProgress = UpdateProgress'
{ UpdateProgress -> Text
fromUpdateProgress ::
Core.Text
}
deriving stock
( Int -> UpdateProgress -> ShowS
[UpdateProgress] -> ShowS
UpdateProgress -> String
(Int -> UpdateProgress -> ShowS)
-> (UpdateProgress -> String)
-> ([UpdateProgress] -> ShowS)
-> Show UpdateProgress
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateProgress] -> ShowS
$cshowList :: [UpdateProgress] -> ShowS
show :: UpdateProgress -> String
$cshow :: UpdateProgress -> String
showsPrec :: Int -> UpdateProgress -> ShowS
$cshowsPrec :: Int -> UpdateProgress -> ShowS
Prelude.Show,
ReadPrec [UpdateProgress]
ReadPrec UpdateProgress
Int -> ReadS UpdateProgress
ReadS [UpdateProgress]
(Int -> ReadS UpdateProgress)
-> ReadS [UpdateProgress]
-> ReadPrec UpdateProgress
-> ReadPrec [UpdateProgress]
-> Read UpdateProgress
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateProgress]
$creadListPrec :: ReadPrec [UpdateProgress]
readPrec :: ReadPrec UpdateProgress
$creadPrec :: ReadPrec UpdateProgress
readList :: ReadS [UpdateProgress]
$creadList :: ReadS [UpdateProgress]
readsPrec :: Int -> ReadS UpdateProgress
$creadsPrec :: Int -> ReadS UpdateProgress
Prelude.Read,
UpdateProgress -> UpdateProgress -> Bool
(UpdateProgress -> UpdateProgress -> Bool)
-> (UpdateProgress -> UpdateProgress -> Bool) -> Eq UpdateProgress
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateProgress -> UpdateProgress -> Bool
$c/= :: UpdateProgress -> UpdateProgress -> Bool
== :: UpdateProgress -> UpdateProgress -> Bool
$c== :: UpdateProgress -> UpdateProgress -> Bool
Prelude.Eq,
Eq UpdateProgress
Eq UpdateProgress
-> (UpdateProgress -> UpdateProgress -> Ordering)
-> (UpdateProgress -> UpdateProgress -> Bool)
-> (UpdateProgress -> UpdateProgress -> Bool)
-> (UpdateProgress -> UpdateProgress -> Bool)
-> (UpdateProgress -> UpdateProgress -> Bool)
-> (UpdateProgress -> UpdateProgress -> UpdateProgress)
-> (UpdateProgress -> UpdateProgress -> UpdateProgress)
-> Ord UpdateProgress
UpdateProgress -> UpdateProgress -> Bool
UpdateProgress -> UpdateProgress -> Ordering
UpdateProgress -> UpdateProgress -> UpdateProgress
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 :: UpdateProgress -> UpdateProgress -> UpdateProgress
$cmin :: UpdateProgress -> UpdateProgress -> UpdateProgress
max :: UpdateProgress -> UpdateProgress -> UpdateProgress
$cmax :: UpdateProgress -> UpdateProgress -> UpdateProgress
>= :: UpdateProgress -> UpdateProgress -> Bool
$c>= :: UpdateProgress -> UpdateProgress -> Bool
> :: UpdateProgress -> UpdateProgress -> Bool
$c> :: UpdateProgress -> UpdateProgress -> Bool
<= :: UpdateProgress -> UpdateProgress -> Bool
$c<= :: UpdateProgress -> UpdateProgress -> Bool
< :: UpdateProgress -> UpdateProgress -> Bool
$c< :: UpdateProgress -> UpdateProgress -> Bool
compare :: UpdateProgress -> UpdateProgress -> Ordering
$ccompare :: UpdateProgress -> UpdateProgress -> Ordering
$cp1Ord :: Eq UpdateProgress
Prelude.Ord,
(forall x. UpdateProgress -> Rep UpdateProgress x)
-> (forall x. Rep UpdateProgress x -> UpdateProgress)
-> Generic UpdateProgress
forall x. Rep UpdateProgress x -> UpdateProgress
forall x. UpdateProgress -> Rep UpdateProgress x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateProgress x -> UpdateProgress
$cfrom :: forall x. UpdateProgress -> Rep UpdateProgress x
Prelude.Generic
)
deriving newtype
( Int -> UpdateProgress -> Int
UpdateProgress -> Int
(Int -> UpdateProgress -> Int)
-> (UpdateProgress -> Int) -> Hashable UpdateProgress
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: UpdateProgress -> Int
$chash :: UpdateProgress -> Int
hashWithSalt :: Int -> UpdateProgress -> Int
$chashWithSalt :: Int -> UpdateProgress -> Int
Prelude.Hashable,
UpdateProgress -> ()
(UpdateProgress -> ()) -> NFData UpdateProgress
forall a. (a -> ()) -> NFData a
rnf :: UpdateProgress -> ()
$crnf :: UpdateProgress -> ()
Prelude.NFData,
Text -> Either String UpdateProgress
(Text -> Either String UpdateProgress) -> FromText UpdateProgress
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String UpdateProgress
$cfromText :: Text -> Either String UpdateProgress
Core.FromText,
UpdateProgress -> Text
(UpdateProgress -> Text) -> ToText UpdateProgress
forall a. (a -> Text) -> ToText a
toText :: UpdateProgress -> Text
$ctoText :: UpdateProgress -> Text
Core.ToText,
UpdateProgress -> ByteString
(UpdateProgress -> ByteString) -> ToByteString UpdateProgress
forall a. (a -> ByteString) -> ToByteString a
toBS :: UpdateProgress -> ByteString
$ctoBS :: UpdateProgress -> ByteString
Core.ToByteString,
UpdateProgress -> ByteStringBuilder
(UpdateProgress -> ByteStringBuilder) -> ToLog UpdateProgress
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: UpdateProgress -> ByteStringBuilder
$cbuild :: UpdateProgress -> ByteStringBuilder
Core.ToLog,
HeaderName -> UpdateProgress -> [Header]
(HeaderName -> UpdateProgress -> [Header])
-> ToHeader UpdateProgress
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> UpdateProgress -> [Header]
$ctoHeader :: HeaderName -> UpdateProgress -> [Header]
Core.ToHeader,
UpdateProgress -> QueryString
(UpdateProgress -> QueryString) -> ToQuery UpdateProgress
forall a. (a -> QueryString) -> ToQuery a
toQuery :: UpdateProgress -> QueryString
$ctoQuery :: UpdateProgress -> QueryString
Core.ToQuery,
Value -> Parser [UpdateProgress]
Value -> Parser UpdateProgress
(Value -> Parser UpdateProgress)
-> (Value -> Parser [UpdateProgress]) -> FromJSON UpdateProgress
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [UpdateProgress]
$cparseJSONList :: Value -> Parser [UpdateProgress]
parseJSON :: Value -> Parser UpdateProgress
$cparseJSON :: Value -> Parser UpdateProgress
Core.FromJSON,
FromJSONKeyFunction [UpdateProgress]
FromJSONKeyFunction UpdateProgress
FromJSONKeyFunction UpdateProgress
-> FromJSONKeyFunction [UpdateProgress]
-> FromJSONKey UpdateProgress
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [UpdateProgress]
$cfromJSONKeyList :: FromJSONKeyFunction [UpdateProgress]
fromJSONKey :: FromJSONKeyFunction UpdateProgress
$cfromJSONKey :: FromJSONKeyFunction UpdateProgress
Core.FromJSONKey,
[UpdateProgress] -> Encoding
[UpdateProgress] -> Value
UpdateProgress -> Encoding
UpdateProgress -> Value
(UpdateProgress -> Value)
-> (UpdateProgress -> Encoding)
-> ([UpdateProgress] -> Value)
-> ([UpdateProgress] -> Encoding)
-> ToJSON UpdateProgress
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [UpdateProgress] -> Encoding
$ctoEncodingList :: [UpdateProgress] -> Encoding
toJSONList :: [UpdateProgress] -> Value
$ctoJSONList :: [UpdateProgress] -> Value
toEncoding :: UpdateProgress -> Encoding
$ctoEncoding :: UpdateProgress -> Encoding
toJSON :: UpdateProgress -> Value
$ctoJSON :: UpdateProgress -> Value
Core.ToJSON,
ToJSONKeyFunction [UpdateProgress]
ToJSONKeyFunction UpdateProgress
ToJSONKeyFunction UpdateProgress
-> ToJSONKeyFunction [UpdateProgress] -> ToJSONKey UpdateProgress
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [UpdateProgress]
$ctoJSONKeyList :: ToJSONKeyFunction [UpdateProgress]
toJSONKey :: ToJSONKeyFunction UpdateProgress
$ctoJSONKey :: ToJSONKeyFunction UpdateProgress
Core.ToJSONKey,
[Node] -> Either String UpdateProgress
([Node] -> Either String UpdateProgress) -> FromXML UpdateProgress
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String UpdateProgress
$cparseXML :: [Node] -> Either String UpdateProgress
Core.FromXML,
UpdateProgress -> XML
(UpdateProgress -> XML) -> ToXML UpdateProgress
forall a. (a -> XML) -> ToXML a
toXML :: UpdateProgress -> XML
$ctoXML :: UpdateProgress -> XML
Core.ToXML
)
pattern UpdateProgress_COMPLETED :: UpdateProgress
pattern $bUpdateProgress_COMPLETED :: UpdateProgress
$mUpdateProgress_COMPLETED :: forall r. UpdateProgress -> (Void# -> r) -> (Void# -> r) -> r
UpdateProgress_COMPLETED = UpdateProgress' "COMPLETED"
pattern UpdateProgress_DOWNLOADING :: UpdateProgress
pattern $bUpdateProgress_DOWNLOADING :: UpdateProgress
$mUpdateProgress_DOWNLOADING :: forall r. UpdateProgress -> (Void# -> r) -> (Void# -> r) -> r
UpdateProgress_DOWNLOADING = UpdateProgress' "DOWNLOADING"
pattern UpdateProgress_FAILED :: UpdateProgress
pattern $bUpdateProgress_FAILED :: UpdateProgress
$mUpdateProgress_FAILED :: forall r. UpdateProgress -> (Void# -> r) -> (Void# -> r) -> r
UpdateProgress_FAILED = UpdateProgress' "FAILED"
pattern UpdateProgress_IN_PROGRESS :: UpdateProgress
pattern $bUpdateProgress_IN_PROGRESS :: UpdateProgress
$mUpdateProgress_IN_PROGRESS :: forall r. UpdateProgress -> (Void# -> r) -> (Void# -> r) -> r
UpdateProgress_IN_PROGRESS = UpdateProgress' "IN_PROGRESS"
pattern UpdateProgress_PENDING :: UpdateProgress
pattern $bUpdateProgress_PENDING :: UpdateProgress
$mUpdateProgress_PENDING :: forall r. UpdateProgress -> (Void# -> r) -> (Void# -> r) -> r
UpdateProgress_PENDING = UpdateProgress' "PENDING"
pattern UpdateProgress_REBOOTING :: UpdateProgress
pattern $bUpdateProgress_REBOOTING :: UpdateProgress
$mUpdateProgress_REBOOTING :: forall r. UpdateProgress -> (Void# -> r) -> (Void# -> r) -> r
UpdateProgress_REBOOTING = UpdateProgress' "REBOOTING"
pattern UpdateProgress_VERIFYING :: UpdateProgress
pattern $bUpdateProgress_VERIFYING :: UpdateProgress
$mUpdateProgress_VERIFYING :: forall r. UpdateProgress -> (Void# -> r) -> (Void# -> r) -> r
UpdateProgress_VERIFYING = UpdateProgress' "VERIFYING"
{-# COMPLETE
UpdateProgress_COMPLETED,
UpdateProgress_DOWNLOADING,
UpdateProgress_FAILED,
UpdateProgress_IN_PROGRESS,
UpdateProgress_PENDING,
UpdateProgress_REBOOTING,
UpdateProgress_VERIFYING,
UpdateProgress'
#-}