{-# 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.ShareStatusType
( ShareStatusType
( ..,
ShareStatusType_FAILURE,
ShareStatusType_SUCCESS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ShareStatusType = ShareStatusType'
{ ShareStatusType -> Text
fromShareStatusType ::
Core.Text
}
deriving stock
( Int -> ShareStatusType -> ShowS
[ShareStatusType] -> ShowS
ShareStatusType -> String
(Int -> ShareStatusType -> ShowS)
-> (ShareStatusType -> String)
-> ([ShareStatusType] -> ShowS)
-> Show ShareStatusType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ShareStatusType] -> ShowS
$cshowList :: [ShareStatusType] -> ShowS
show :: ShareStatusType -> String
$cshow :: ShareStatusType -> String
showsPrec :: Int -> ShareStatusType -> ShowS
$cshowsPrec :: Int -> ShareStatusType -> ShowS
Prelude.Show,
ReadPrec [ShareStatusType]
ReadPrec ShareStatusType
Int -> ReadS ShareStatusType
ReadS [ShareStatusType]
(Int -> ReadS ShareStatusType)
-> ReadS [ShareStatusType]
-> ReadPrec ShareStatusType
-> ReadPrec [ShareStatusType]
-> Read ShareStatusType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ShareStatusType]
$creadListPrec :: ReadPrec [ShareStatusType]
readPrec :: ReadPrec ShareStatusType
$creadPrec :: ReadPrec ShareStatusType
readList :: ReadS [ShareStatusType]
$creadList :: ReadS [ShareStatusType]
readsPrec :: Int -> ReadS ShareStatusType
$creadsPrec :: Int -> ReadS ShareStatusType
Prelude.Read,
ShareStatusType -> ShareStatusType -> Bool
(ShareStatusType -> ShareStatusType -> Bool)
-> (ShareStatusType -> ShareStatusType -> Bool)
-> Eq ShareStatusType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ShareStatusType -> ShareStatusType -> Bool
$c/= :: ShareStatusType -> ShareStatusType -> Bool
== :: ShareStatusType -> ShareStatusType -> Bool
$c== :: ShareStatusType -> ShareStatusType -> Bool
Prelude.Eq,
Eq ShareStatusType
Eq ShareStatusType
-> (ShareStatusType -> ShareStatusType -> Ordering)
-> (ShareStatusType -> ShareStatusType -> Bool)
-> (ShareStatusType -> ShareStatusType -> Bool)
-> (ShareStatusType -> ShareStatusType -> Bool)
-> (ShareStatusType -> ShareStatusType -> Bool)
-> (ShareStatusType -> ShareStatusType -> ShareStatusType)
-> (ShareStatusType -> ShareStatusType -> ShareStatusType)
-> Ord ShareStatusType
ShareStatusType -> ShareStatusType -> Bool
ShareStatusType -> ShareStatusType -> Ordering
ShareStatusType -> ShareStatusType -> ShareStatusType
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 :: ShareStatusType -> ShareStatusType -> ShareStatusType
$cmin :: ShareStatusType -> ShareStatusType -> ShareStatusType
max :: ShareStatusType -> ShareStatusType -> ShareStatusType
$cmax :: ShareStatusType -> ShareStatusType -> ShareStatusType
>= :: ShareStatusType -> ShareStatusType -> Bool
$c>= :: ShareStatusType -> ShareStatusType -> Bool
> :: ShareStatusType -> ShareStatusType -> Bool
$c> :: ShareStatusType -> ShareStatusType -> Bool
<= :: ShareStatusType -> ShareStatusType -> Bool
$c<= :: ShareStatusType -> ShareStatusType -> Bool
< :: ShareStatusType -> ShareStatusType -> Bool
$c< :: ShareStatusType -> ShareStatusType -> Bool
compare :: ShareStatusType -> ShareStatusType -> Ordering
$ccompare :: ShareStatusType -> ShareStatusType -> Ordering
$cp1Ord :: Eq ShareStatusType
Prelude.Ord,
(forall x. ShareStatusType -> Rep ShareStatusType x)
-> (forall x. Rep ShareStatusType x -> ShareStatusType)
-> Generic ShareStatusType
forall x. Rep ShareStatusType x -> ShareStatusType
forall x. ShareStatusType -> Rep ShareStatusType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ShareStatusType x -> ShareStatusType
$cfrom :: forall x. ShareStatusType -> Rep ShareStatusType x
Prelude.Generic
)
deriving newtype
( Int -> ShareStatusType -> Int
ShareStatusType -> Int
(Int -> ShareStatusType -> Int)
-> (ShareStatusType -> Int) -> Hashable ShareStatusType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ShareStatusType -> Int
$chash :: ShareStatusType -> Int
hashWithSalt :: Int -> ShareStatusType -> Int
$chashWithSalt :: Int -> ShareStatusType -> Int
Prelude.Hashable,
ShareStatusType -> ()
(ShareStatusType -> ()) -> NFData ShareStatusType
forall a. (a -> ()) -> NFData a
rnf :: ShareStatusType -> ()
$crnf :: ShareStatusType -> ()
Prelude.NFData,
Text -> Either String ShareStatusType
(Text -> Either String ShareStatusType) -> FromText ShareStatusType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ShareStatusType
$cfromText :: Text -> Either String ShareStatusType
Core.FromText,
ShareStatusType -> Text
(ShareStatusType -> Text) -> ToText ShareStatusType
forall a. (a -> Text) -> ToText a
toText :: ShareStatusType -> Text
$ctoText :: ShareStatusType -> Text
Core.ToText,
ShareStatusType -> ByteString
(ShareStatusType -> ByteString) -> ToByteString ShareStatusType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ShareStatusType -> ByteString
$ctoBS :: ShareStatusType -> ByteString
Core.ToByteString,
ShareStatusType -> ByteStringBuilder
(ShareStatusType -> ByteStringBuilder) -> ToLog ShareStatusType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ShareStatusType -> ByteStringBuilder
$cbuild :: ShareStatusType -> ByteStringBuilder
Core.ToLog,
HeaderName -> ShareStatusType -> [Header]
(HeaderName -> ShareStatusType -> [Header])
-> ToHeader ShareStatusType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ShareStatusType -> [Header]
$ctoHeader :: HeaderName -> ShareStatusType -> [Header]
Core.ToHeader,
ShareStatusType -> QueryString
(ShareStatusType -> QueryString) -> ToQuery ShareStatusType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ShareStatusType -> QueryString
$ctoQuery :: ShareStatusType -> QueryString
Core.ToQuery,
Value -> Parser [ShareStatusType]
Value -> Parser ShareStatusType
(Value -> Parser ShareStatusType)
-> (Value -> Parser [ShareStatusType]) -> FromJSON ShareStatusType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ShareStatusType]
$cparseJSONList :: Value -> Parser [ShareStatusType]
parseJSON :: Value -> Parser ShareStatusType
$cparseJSON :: Value -> Parser ShareStatusType
Core.FromJSON,
FromJSONKeyFunction [ShareStatusType]
FromJSONKeyFunction ShareStatusType
FromJSONKeyFunction ShareStatusType
-> FromJSONKeyFunction [ShareStatusType]
-> FromJSONKey ShareStatusType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ShareStatusType]
$cfromJSONKeyList :: FromJSONKeyFunction [ShareStatusType]
fromJSONKey :: FromJSONKeyFunction ShareStatusType
$cfromJSONKey :: FromJSONKeyFunction ShareStatusType
Core.FromJSONKey,
[ShareStatusType] -> Encoding
[ShareStatusType] -> Value
ShareStatusType -> Encoding
ShareStatusType -> Value
(ShareStatusType -> Value)
-> (ShareStatusType -> Encoding)
-> ([ShareStatusType] -> Value)
-> ([ShareStatusType] -> Encoding)
-> ToJSON ShareStatusType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ShareStatusType] -> Encoding
$ctoEncodingList :: [ShareStatusType] -> Encoding
toJSONList :: [ShareStatusType] -> Value
$ctoJSONList :: [ShareStatusType] -> Value
toEncoding :: ShareStatusType -> Encoding
$ctoEncoding :: ShareStatusType -> Encoding
toJSON :: ShareStatusType -> Value
$ctoJSON :: ShareStatusType -> Value
Core.ToJSON,
ToJSONKeyFunction [ShareStatusType]
ToJSONKeyFunction ShareStatusType
ToJSONKeyFunction ShareStatusType
-> ToJSONKeyFunction [ShareStatusType] -> ToJSONKey ShareStatusType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ShareStatusType]
$ctoJSONKeyList :: ToJSONKeyFunction [ShareStatusType]
toJSONKey :: ToJSONKeyFunction ShareStatusType
$ctoJSONKey :: ToJSONKeyFunction ShareStatusType
Core.ToJSONKey,
[Node] -> Either String ShareStatusType
([Node] -> Either String ShareStatusType)
-> FromXML ShareStatusType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ShareStatusType
$cparseXML :: [Node] -> Either String ShareStatusType
Core.FromXML,
ShareStatusType -> XML
(ShareStatusType -> XML) -> ToXML ShareStatusType
forall a. (a -> XML) -> ToXML a
toXML :: ShareStatusType -> XML
$ctoXML :: ShareStatusType -> XML
Core.ToXML
)
pattern ShareStatusType_FAILURE :: ShareStatusType
pattern $bShareStatusType_FAILURE :: ShareStatusType
$mShareStatusType_FAILURE :: forall r. ShareStatusType -> (Void# -> r) -> (Void# -> r) -> r
ShareStatusType_FAILURE = ShareStatusType' "FAILURE"
pattern ShareStatusType_SUCCESS :: ShareStatusType
pattern $bShareStatusType_SUCCESS :: ShareStatusType
$mShareStatusType_SUCCESS :: forall r. ShareStatusType -> (Void# -> r) -> (Void# -> r) -> r
ShareStatusType_SUCCESS = ShareStatusType' "SUCCESS"
{-# COMPLETE
ShareStatusType_FAILURE,
ShareStatusType_SUCCESS,
ShareStatusType'
#-}