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