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