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