{-# 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.VolumeState
( VolumeState
( ..,
VolumeState_Available,
VolumeState_Creating,
VolumeState_Deleted,
VolumeState_Deleting,
VolumeState_Error,
VolumeState_In_use
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude
newtype VolumeState = VolumeState'
{ VolumeState -> Text
fromVolumeState ::
Data.Text
}
deriving stock
( Int -> VolumeState -> ShowS
[VolumeState] -> ShowS
VolumeState -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VolumeState] -> ShowS
$cshowList :: [VolumeState] -> ShowS
show :: VolumeState -> String
$cshow :: VolumeState -> String
showsPrec :: Int -> VolumeState -> ShowS
$cshowsPrec :: Int -> VolumeState -> ShowS
Prelude.Show,
ReadPrec [VolumeState]
ReadPrec VolumeState
Int -> ReadS VolumeState
ReadS [VolumeState]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VolumeState]
$creadListPrec :: ReadPrec [VolumeState]
readPrec :: ReadPrec VolumeState
$creadPrec :: ReadPrec VolumeState
readList :: ReadS [VolumeState]
$creadList :: ReadS [VolumeState]
readsPrec :: Int -> ReadS VolumeState
$creadsPrec :: Int -> ReadS VolumeState
Prelude.Read,
VolumeState -> VolumeState -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VolumeState -> VolumeState -> Bool
$c/= :: VolumeState -> VolumeState -> Bool
== :: VolumeState -> VolumeState -> Bool
$c== :: VolumeState -> VolumeState -> Bool
Prelude.Eq,
Eq VolumeState
VolumeState -> VolumeState -> Bool
VolumeState -> VolumeState -> Ordering
VolumeState -> VolumeState -> VolumeState
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 :: VolumeState -> VolumeState -> VolumeState
$cmin :: VolumeState -> VolumeState -> VolumeState
max :: VolumeState -> VolumeState -> VolumeState
$cmax :: VolumeState -> VolumeState -> VolumeState
>= :: VolumeState -> VolumeState -> Bool
$c>= :: VolumeState -> VolumeState -> Bool
> :: VolumeState -> VolumeState -> Bool
$c> :: VolumeState -> VolumeState -> Bool
<= :: VolumeState -> VolumeState -> Bool
$c<= :: VolumeState -> VolumeState -> Bool
< :: VolumeState -> VolumeState -> Bool
$c< :: VolumeState -> VolumeState -> Bool
compare :: VolumeState -> VolumeState -> Ordering
$ccompare :: VolumeState -> VolumeState -> Ordering
Prelude.Ord,
forall x. Rep VolumeState x -> VolumeState
forall x. VolumeState -> Rep VolumeState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep VolumeState x -> VolumeState
$cfrom :: forall x. VolumeState -> Rep VolumeState x
Prelude.Generic
)
deriving newtype
( Eq VolumeState
Int -> VolumeState -> Int
VolumeState -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: VolumeState -> Int
$chash :: VolumeState -> Int
hashWithSalt :: Int -> VolumeState -> Int
$chashWithSalt :: Int -> VolumeState -> Int
Prelude.Hashable,
VolumeState -> ()
forall a. (a -> ()) -> NFData a
rnf :: VolumeState -> ()
$crnf :: VolumeState -> ()
Prelude.NFData,
Text -> Either String VolumeState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String VolumeState
$cfromText :: Text -> Either String VolumeState
Data.FromText,
VolumeState -> Text
forall a. (a -> Text) -> ToText a
toText :: VolumeState -> Text
$ctoText :: VolumeState -> Text
Data.ToText,
VolumeState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: VolumeState -> ByteString
$ctoBS :: VolumeState -> ByteString
Data.ToByteString,
VolumeState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: VolumeState -> ByteStringBuilder
$cbuild :: VolumeState -> ByteStringBuilder
Data.ToLog,
HeaderName -> VolumeState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> VolumeState -> [Header]
$ctoHeader :: HeaderName -> VolumeState -> [Header]
Data.ToHeader,
VolumeState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: VolumeState -> QueryString
$ctoQuery :: VolumeState -> QueryString
Data.ToQuery,
Value -> Parser [VolumeState]
Value -> Parser VolumeState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [VolumeState]
$cparseJSONList :: Value -> Parser [VolumeState]
parseJSON :: Value -> Parser VolumeState
$cparseJSON :: Value -> Parser VolumeState
Data.FromJSON,
FromJSONKeyFunction [VolumeState]
FromJSONKeyFunction VolumeState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [VolumeState]
$cfromJSONKeyList :: FromJSONKeyFunction [VolumeState]
fromJSONKey :: FromJSONKeyFunction VolumeState
$cfromJSONKey :: FromJSONKeyFunction VolumeState
Data.FromJSONKey,
[VolumeState] -> Encoding
[VolumeState] -> Value
VolumeState -> Encoding
VolumeState -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [VolumeState] -> Encoding
$ctoEncodingList :: [VolumeState] -> Encoding
toJSONList :: [VolumeState] -> Value
$ctoJSONList :: [VolumeState] -> Value
toEncoding :: VolumeState -> Encoding
$ctoEncoding :: VolumeState -> Encoding
toJSON :: VolumeState -> Value
$ctoJSON :: VolumeState -> Value
Data.ToJSON,
ToJSONKeyFunction [VolumeState]
ToJSONKeyFunction VolumeState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [VolumeState]
$ctoJSONKeyList :: ToJSONKeyFunction [VolumeState]
toJSONKey :: ToJSONKeyFunction VolumeState
$ctoJSONKey :: ToJSONKeyFunction VolumeState
Data.ToJSONKey,
[Node] -> Either String VolumeState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String VolumeState
$cparseXML :: [Node] -> Either String VolumeState
Data.FromXML,
VolumeState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: VolumeState -> XML
$ctoXML :: VolumeState -> XML
Data.ToXML
)
pattern VolumeState_Available :: VolumeState
pattern $bVolumeState_Available :: VolumeState
$mVolumeState_Available :: forall {r}. VolumeState -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeState_Available = VolumeState' "available"
pattern VolumeState_Creating :: VolumeState
pattern $bVolumeState_Creating :: VolumeState
$mVolumeState_Creating :: forall {r}. VolumeState -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeState_Creating = VolumeState' "creating"
pattern VolumeState_Deleted :: VolumeState
pattern $bVolumeState_Deleted :: VolumeState
$mVolumeState_Deleted :: forall {r}. VolumeState -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeState_Deleted = VolumeState' "deleted"
pattern VolumeState_Deleting :: VolumeState
pattern $bVolumeState_Deleting :: VolumeState
$mVolumeState_Deleting :: forall {r}. VolumeState -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeState_Deleting = VolumeState' "deleting"
pattern VolumeState_Error :: VolumeState
pattern $bVolumeState_Error :: VolumeState
$mVolumeState_Error :: forall {r}. VolumeState -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeState_Error = VolumeState' "error"
pattern VolumeState_In_use :: VolumeState
pattern $bVolumeState_In_use :: VolumeState
$mVolumeState_In_use :: forall {r}. VolumeState -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeState_In_use = VolumeState' "in-use"
{-# COMPLETE
VolumeState_Available,
VolumeState_Creating,
VolumeState_Deleted,
VolumeState_Deleting,
VolumeState_Error,
VolumeState_In_use,
VolumeState'
#-}