{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ServiceCatalog.Types.ShareStatus
( ShareStatus
( ..,
ShareStatus_COMPLETED,
ShareStatus_COMPLETED_WITH_ERRORS,
ShareStatus_ERROR,
ShareStatus_IN_PROGRESS,
ShareStatus_NOT_STARTED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ShareStatus = ShareStatus'
{ ShareStatus -> Text
fromShareStatus ::
Core.Text
}
deriving stock
( Int -> ShareStatus -> ShowS
[ShareStatus] -> ShowS
ShareStatus -> String
(Int -> ShareStatus -> ShowS)
-> (ShareStatus -> String)
-> ([ShareStatus] -> ShowS)
-> Show ShareStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ShareStatus] -> ShowS
$cshowList :: [ShareStatus] -> ShowS
show :: ShareStatus -> String
$cshow :: ShareStatus -> String
showsPrec :: Int -> ShareStatus -> ShowS
$cshowsPrec :: Int -> ShareStatus -> ShowS
Prelude.Show,
ReadPrec [ShareStatus]
ReadPrec ShareStatus
Int -> ReadS ShareStatus
ReadS [ShareStatus]
(Int -> ReadS ShareStatus)
-> ReadS [ShareStatus]
-> ReadPrec ShareStatus
-> ReadPrec [ShareStatus]
-> Read ShareStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ShareStatus]
$creadListPrec :: ReadPrec [ShareStatus]
readPrec :: ReadPrec ShareStatus
$creadPrec :: ReadPrec ShareStatus
readList :: ReadS [ShareStatus]
$creadList :: ReadS [ShareStatus]
readsPrec :: Int -> ReadS ShareStatus
$creadsPrec :: Int -> ReadS ShareStatus
Prelude.Read,
ShareStatus -> ShareStatus -> Bool
(ShareStatus -> ShareStatus -> Bool)
-> (ShareStatus -> ShareStatus -> Bool) -> Eq ShareStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ShareStatus -> ShareStatus -> Bool
$c/= :: ShareStatus -> ShareStatus -> Bool
== :: ShareStatus -> ShareStatus -> Bool
$c== :: ShareStatus -> ShareStatus -> Bool
Prelude.Eq,
Eq ShareStatus
Eq ShareStatus
-> (ShareStatus -> ShareStatus -> Ordering)
-> (ShareStatus -> ShareStatus -> Bool)
-> (ShareStatus -> ShareStatus -> Bool)
-> (ShareStatus -> ShareStatus -> Bool)
-> (ShareStatus -> ShareStatus -> Bool)
-> (ShareStatus -> ShareStatus -> ShareStatus)
-> (ShareStatus -> ShareStatus -> ShareStatus)
-> Ord ShareStatus
ShareStatus -> ShareStatus -> Bool
ShareStatus -> ShareStatus -> Ordering
ShareStatus -> ShareStatus -> ShareStatus
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 :: ShareStatus -> ShareStatus -> ShareStatus
$cmin :: ShareStatus -> ShareStatus -> ShareStatus
max :: ShareStatus -> ShareStatus -> ShareStatus
$cmax :: ShareStatus -> ShareStatus -> ShareStatus
>= :: ShareStatus -> ShareStatus -> Bool
$c>= :: ShareStatus -> ShareStatus -> Bool
> :: ShareStatus -> ShareStatus -> Bool
$c> :: ShareStatus -> ShareStatus -> Bool
<= :: ShareStatus -> ShareStatus -> Bool
$c<= :: ShareStatus -> ShareStatus -> Bool
< :: ShareStatus -> ShareStatus -> Bool
$c< :: ShareStatus -> ShareStatus -> Bool
compare :: ShareStatus -> ShareStatus -> Ordering
$ccompare :: ShareStatus -> ShareStatus -> Ordering
$cp1Ord :: Eq ShareStatus
Prelude.Ord,
(forall x. ShareStatus -> Rep ShareStatus x)
-> (forall x. Rep ShareStatus x -> ShareStatus)
-> Generic ShareStatus
forall x. Rep ShareStatus x -> ShareStatus
forall x. ShareStatus -> Rep ShareStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ShareStatus x -> ShareStatus
$cfrom :: forall x. ShareStatus -> Rep ShareStatus x
Prelude.Generic
)
deriving newtype
( Int -> ShareStatus -> Int
ShareStatus -> Int
(Int -> ShareStatus -> Int)
-> (ShareStatus -> Int) -> Hashable ShareStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ShareStatus -> Int
$chash :: ShareStatus -> Int
hashWithSalt :: Int -> ShareStatus -> Int
$chashWithSalt :: Int -> ShareStatus -> Int
Prelude.Hashable,
ShareStatus -> ()
(ShareStatus -> ()) -> NFData ShareStatus
forall a. (a -> ()) -> NFData a
rnf :: ShareStatus -> ()
$crnf :: ShareStatus -> ()
Prelude.NFData,
Text -> Either String ShareStatus
(Text -> Either String ShareStatus) -> FromText ShareStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ShareStatus
$cfromText :: Text -> Either String ShareStatus
Core.FromText,
ShareStatus -> Text
(ShareStatus -> Text) -> ToText ShareStatus
forall a. (a -> Text) -> ToText a
toText :: ShareStatus -> Text
$ctoText :: ShareStatus -> Text
Core.ToText,
ShareStatus -> ByteString
(ShareStatus -> ByteString) -> ToByteString ShareStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ShareStatus -> ByteString
$ctoBS :: ShareStatus -> ByteString
Core.ToByteString,
ShareStatus -> ByteStringBuilder
(ShareStatus -> ByteStringBuilder) -> ToLog ShareStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ShareStatus -> ByteStringBuilder
$cbuild :: ShareStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ShareStatus -> [Header]
(HeaderName -> ShareStatus -> [Header]) -> ToHeader ShareStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ShareStatus -> [Header]
$ctoHeader :: HeaderName -> ShareStatus -> [Header]
Core.ToHeader,
ShareStatus -> QueryString
(ShareStatus -> QueryString) -> ToQuery ShareStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ShareStatus -> QueryString
$ctoQuery :: ShareStatus -> QueryString
Core.ToQuery,
Value -> Parser [ShareStatus]
Value -> Parser ShareStatus
(Value -> Parser ShareStatus)
-> (Value -> Parser [ShareStatus]) -> FromJSON ShareStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ShareStatus]
$cparseJSONList :: Value -> Parser [ShareStatus]
parseJSON :: Value -> Parser ShareStatus
$cparseJSON :: Value -> Parser ShareStatus
Core.FromJSON,
FromJSONKeyFunction [ShareStatus]
FromJSONKeyFunction ShareStatus
FromJSONKeyFunction ShareStatus
-> FromJSONKeyFunction [ShareStatus] -> FromJSONKey ShareStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ShareStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ShareStatus]
fromJSONKey :: FromJSONKeyFunction ShareStatus
$cfromJSONKey :: FromJSONKeyFunction ShareStatus
Core.FromJSONKey,
[ShareStatus] -> Encoding
[ShareStatus] -> Value
ShareStatus -> Encoding
ShareStatus -> Value
(ShareStatus -> Value)
-> (ShareStatus -> Encoding)
-> ([ShareStatus] -> Value)
-> ([ShareStatus] -> Encoding)
-> ToJSON ShareStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ShareStatus] -> Encoding
$ctoEncodingList :: [ShareStatus] -> Encoding
toJSONList :: [ShareStatus] -> Value
$ctoJSONList :: [ShareStatus] -> Value
toEncoding :: ShareStatus -> Encoding
$ctoEncoding :: ShareStatus -> Encoding
toJSON :: ShareStatus -> Value
$ctoJSON :: ShareStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [ShareStatus]
ToJSONKeyFunction ShareStatus
ToJSONKeyFunction ShareStatus
-> ToJSONKeyFunction [ShareStatus] -> ToJSONKey ShareStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ShareStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ShareStatus]
toJSONKey :: ToJSONKeyFunction ShareStatus
$ctoJSONKey :: ToJSONKeyFunction ShareStatus
Core.ToJSONKey,
[Node] -> Either String ShareStatus
([Node] -> Either String ShareStatus) -> FromXML ShareStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ShareStatus
$cparseXML :: [Node] -> Either String ShareStatus
Core.FromXML,
ShareStatus -> XML
(ShareStatus -> XML) -> ToXML ShareStatus
forall a. (a -> XML) -> ToXML a
toXML :: ShareStatus -> XML
$ctoXML :: ShareStatus -> XML
Core.ToXML
)
pattern ShareStatus_COMPLETED :: ShareStatus
pattern $bShareStatus_COMPLETED :: ShareStatus
$mShareStatus_COMPLETED :: forall r. ShareStatus -> (Void# -> r) -> (Void# -> r) -> r
ShareStatus_COMPLETED = ShareStatus' "COMPLETED"
pattern ShareStatus_COMPLETED_WITH_ERRORS :: ShareStatus
pattern $bShareStatus_COMPLETED_WITH_ERRORS :: ShareStatus
$mShareStatus_COMPLETED_WITH_ERRORS :: forall r. ShareStatus -> (Void# -> r) -> (Void# -> r) -> r
ShareStatus_COMPLETED_WITH_ERRORS = ShareStatus' "COMPLETED_WITH_ERRORS"
pattern ShareStatus_ERROR :: ShareStatus
pattern $bShareStatus_ERROR :: ShareStatus
$mShareStatus_ERROR :: forall r. ShareStatus -> (Void# -> r) -> (Void# -> r) -> r
ShareStatus_ERROR = ShareStatus' "ERROR"
pattern ShareStatus_IN_PROGRESS :: ShareStatus
pattern $bShareStatus_IN_PROGRESS :: ShareStatus
$mShareStatus_IN_PROGRESS :: forall r. ShareStatus -> (Void# -> r) -> (Void# -> r) -> r
ShareStatus_IN_PROGRESS = ShareStatus' "IN_PROGRESS"
pattern ShareStatus_NOT_STARTED :: ShareStatus
pattern $bShareStatus_NOT_STARTED :: ShareStatus
$mShareStatus_NOT_STARTED :: forall r. ShareStatus -> (Void# -> r) -> (Void# -> r) -> r
ShareStatus_NOT_STARTED = ShareStatus' "NOT_STARTED"
{-# COMPLETE
ShareStatus_COMPLETED,
ShareStatus_COMPLETED_WITH_ERRORS,
ShareStatus_ERROR,
ShareStatus_IN_PROGRESS,
ShareStatus_NOT_STARTED,
ShareStatus'
#-}