{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.RAM.Types.ResourceShareInvitationStatus
( ResourceShareInvitationStatus
( ..,
ResourceShareInvitationStatus_ACCEPTED,
ResourceShareInvitationStatus_EXPIRED,
ResourceShareInvitationStatus_PENDING,
ResourceShareInvitationStatus_REJECTED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ResourceShareInvitationStatus = ResourceShareInvitationStatus'
{ ResourceShareInvitationStatus -> Text
fromResourceShareInvitationStatus ::
Core.Text
}
deriving stock
( Int -> ResourceShareInvitationStatus -> ShowS
[ResourceShareInvitationStatus] -> ShowS
ResourceShareInvitationStatus -> String
(Int -> ResourceShareInvitationStatus -> ShowS)
-> (ResourceShareInvitationStatus -> String)
-> ([ResourceShareInvitationStatus] -> ShowS)
-> Show ResourceShareInvitationStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResourceShareInvitationStatus] -> ShowS
$cshowList :: [ResourceShareInvitationStatus] -> ShowS
show :: ResourceShareInvitationStatus -> String
$cshow :: ResourceShareInvitationStatus -> String
showsPrec :: Int -> ResourceShareInvitationStatus -> ShowS
$cshowsPrec :: Int -> ResourceShareInvitationStatus -> ShowS
Prelude.Show,
ReadPrec [ResourceShareInvitationStatus]
ReadPrec ResourceShareInvitationStatus
Int -> ReadS ResourceShareInvitationStatus
ReadS [ResourceShareInvitationStatus]
(Int -> ReadS ResourceShareInvitationStatus)
-> ReadS [ResourceShareInvitationStatus]
-> ReadPrec ResourceShareInvitationStatus
-> ReadPrec [ResourceShareInvitationStatus]
-> Read ResourceShareInvitationStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResourceShareInvitationStatus]
$creadListPrec :: ReadPrec [ResourceShareInvitationStatus]
readPrec :: ReadPrec ResourceShareInvitationStatus
$creadPrec :: ReadPrec ResourceShareInvitationStatus
readList :: ReadS [ResourceShareInvitationStatus]
$creadList :: ReadS [ResourceShareInvitationStatus]
readsPrec :: Int -> ReadS ResourceShareInvitationStatus
$creadsPrec :: Int -> ReadS ResourceShareInvitationStatus
Prelude.Read,
ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool
(ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool)
-> (ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool)
-> Eq ResourceShareInvitationStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool
$c/= :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool
== :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool
$c== :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool
Prelude.Eq,
Eq ResourceShareInvitationStatus
Eq ResourceShareInvitationStatus
-> (ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Ordering)
-> (ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool)
-> (ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool)
-> (ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool)
-> (ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool)
-> (ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> ResourceShareInvitationStatus)
-> (ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> ResourceShareInvitationStatus)
-> Ord ResourceShareInvitationStatus
ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool
ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Ordering
ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> ResourceShareInvitationStatus
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 :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> ResourceShareInvitationStatus
$cmin :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> ResourceShareInvitationStatus
max :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> ResourceShareInvitationStatus
$cmax :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> ResourceShareInvitationStatus
>= :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool
$c>= :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool
> :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool
$c> :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool
<= :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool
$c<= :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool
< :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool
$c< :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Bool
compare :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Ordering
$ccompare :: ResourceShareInvitationStatus
-> ResourceShareInvitationStatus -> Ordering
$cp1Ord :: Eq ResourceShareInvitationStatus
Prelude.Ord,
(forall x.
ResourceShareInvitationStatus
-> Rep ResourceShareInvitationStatus x)
-> (forall x.
Rep ResourceShareInvitationStatus x
-> ResourceShareInvitationStatus)
-> Generic ResourceShareInvitationStatus
forall x.
Rep ResourceShareInvitationStatus x
-> ResourceShareInvitationStatus
forall x.
ResourceShareInvitationStatus
-> Rep ResourceShareInvitationStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ResourceShareInvitationStatus x
-> ResourceShareInvitationStatus
$cfrom :: forall x.
ResourceShareInvitationStatus
-> Rep ResourceShareInvitationStatus x
Prelude.Generic
)
deriving newtype
( Int -> ResourceShareInvitationStatus -> Int
ResourceShareInvitationStatus -> Int
(Int -> ResourceShareInvitationStatus -> Int)
-> (ResourceShareInvitationStatus -> Int)
-> Hashable ResourceShareInvitationStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ResourceShareInvitationStatus -> Int
$chash :: ResourceShareInvitationStatus -> Int
hashWithSalt :: Int -> ResourceShareInvitationStatus -> Int
$chashWithSalt :: Int -> ResourceShareInvitationStatus -> Int
Prelude.Hashable,
ResourceShareInvitationStatus -> ()
(ResourceShareInvitationStatus -> ())
-> NFData ResourceShareInvitationStatus
forall a. (a -> ()) -> NFData a
rnf :: ResourceShareInvitationStatus -> ()
$crnf :: ResourceShareInvitationStatus -> ()
Prelude.NFData,
Text -> Either String ResourceShareInvitationStatus
(Text -> Either String ResourceShareInvitationStatus)
-> FromText ResourceShareInvitationStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ResourceShareInvitationStatus
$cfromText :: Text -> Either String ResourceShareInvitationStatus
Core.FromText,
ResourceShareInvitationStatus -> Text
(ResourceShareInvitationStatus -> Text)
-> ToText ResourceShareInvitationStatus
forall a. (a -> Text) -> ToText a
toText :: ResourceShareInvitationStatus -> Text
$ctoText :: ResourceShareInvitationStatus -> Text
Core.ToText,
ResourceShareInvitationStatus -> ByteString
(ResourceShareInvitationStatus -> ByteString)
-> ToByteString ResourceShareInvitationStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ResourceShareInvitationStatus -> ByteString
$ctoBS :: ResourceShareInvitationStatus -> ByteString
Core.ToByteString,
ResourceShareInvitationStatus -> ByteStringBuilder
(ResourceShareInvitationStatus -> ByteStringBuilder)
-> ToLog ResourceShareInvitationStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ResourceShareInvitationStatus -> ByteStringBuilder
$cbuild :: ResourceShareInvitationStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ResourceShareInvitationStatus -> [Header]
(HeaderName -> ResourceShareInvitationStatus -> [Header])
-> ToHeader ResourceShareInvitationStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ResourceShareInvitationStatus -> [Header]
$ctoHeader :: HeaderName -> ResourceShareInvitationStatus -> [Header]
Core.ToHeader,
ResourceShareInvitationStatus -> QueryString
(ResourceShareInvitationStatus -> QueryString)
-> ToQuery ResourceShareInvitationStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ResourceShareInvitationStatus -> QueryString
$ctoQuery :: ResourceShareInvitationStatus -> QueryString
Core.ToQuery,
Value -> Parser [ResourceShareInvitationStatus]
Value -> Parser ResourceShareInvitationStatus
(Value -> Parser ResourceShareInvitationStatus)
-> (Value -> Parser [ResourceShareInvitationStatus])
-> FromJSON ResourceShareInvitationStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ResourceShareInvitationStatus]
$cparseJSONList :: Value -> Parser [ResourceShareInvitationStatus]
parseJSON :: Value -> Parser ResourceShareInvitationStatus
$cparseJSON :: Value -> Parser ResourceShareInvitationStatus
Core.FromJSON,
FromJSONKeyFunction [ResourceShareInvitationStatus]
FromJSONKeyFunction ResourceShareInvitationStatus
FromJSONKeyFunction ResourceShareInvitationStatus
-> FromJSONKeyFunction [ResourceShareInvitationStatus]
-> FromJSONKey ResourceShareInvitationStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ResourceShareInvitationStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ResourceShareInvitationStatus]
fromJSONKey :: FromJSONKeyFunction ResourceShareInvitationStatus
$cfromJSONKey :: FromJSONKeyFunction ResourceShareInvitationStatus
Core.FromJSONKey,
[ResourceShareInvitationStatus] -> Encoding
[ResourceShareInvitationStatus] -> Value
ResourceShareInvitationStatus -> Encoding
ResourceShareInvitationStatus -> Value
(ResourceShareInvitationStatus -> Value)
-> (ResourceShareInvitationStatus -> Encoding)
-> ([ResourceShareInvitationStatus] -> Value)
-> ([ResourceShareInvitationStatus] -> Encoding)
-> ToJSON ResourceShareInvitationStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ResourceShareInvitationStatus] -> Encoding
$ctoEncodingList :: [ResourceShareInvitationStatus] -> Encoding
toJSONList :: [ResourceShareInvitationStatus] -> Value
$ctoJSONList :: [ResourceShareInvitationStatus] -> Value
toEncoding :: ResourceShareInvitationStatus -> Encoding
$ctoEncoding :: ResourceShareInvitationStatus -> Encoding
toJSON :: ResourceShareInvitationStatus -> Value
$ctoJSON :: ResourceShareInvitationStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [ResourceShareInvitationStatus]
ToJSONKeyFunction ResourceShareInvitationStatus
ToJSONKeyFunction ResourceShareInvitationStatus
-> ToJSONKeyFunction [ResourceShareInvitationStatus]
-> ToJSONKey ResourceShareInvitationStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ResourceShareInvitationStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ResourceShareInvitationStatus]
toJSONKey :: ToJSONKeyFunction ResourceShareInvitationStatus
$ctoJSONKey :: ToJSONKeyFunction ResourceShareInvitationStatus
Core.ToJSONKey,
[Node] -> Either String ResourceShareInvitationStatus
([Node] -> Either String ResourceShareInvitationStatus)
-> FromXML ResourceShareInvitationStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ResourceShareInvitationStatus
$cparseXML :: [Node] -> Either String ResourceShareInvitationStatus
Core.FromXML,
ResourceShareInvitationStatus -> XML
(ResourceShareInvitationStatus -> XML)
-> ToXML ResourceShareInvitationStatus
forall a. (a -> XML) -> ToXML a
toXML :: ResourceShareInvitationStatus -> XML
$ctoXML :: ResourceShareInvitationStatus -> XML
Core.ToXML
)
pattern ResourceShareInvitationStatus_ACCEPTED :: ResourceShareInvitationStatus
pattern $bResourceShareInvitationStatus_ACCEPTED :: ResourceShareInvitationStatus
$mResourceShareInvitationStatus_ACCEPTED :: forall r.
ResourceShareInvitationStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceShareInvitationStatus_ACCEPTED = ResourceShareInvitationStatus' "ACCEPTED"
pattern ResourceShareInvitationStatus_EXPIRED :: ResourceShareInvitationStatus
pattern $bResourceShareInvitationStatus_EXPIRED :: ResourceShareInvitationStatus
$mResourceShareInvitationStatus_EXPIRED :: forall r.
ResourceShareInvitationStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceShareInvitationStatus_EXPIRED = ResourceShareInvitationStatus' "EXPIRED"
pattern ResourceShareInvitationStatus_PENDING :: ResourceShareInvitationStatus
pattern $bResourceShareInvitationStatus_PENDING :: ResourceShareInvitationStatus
$mResourceShareInvitationStatus_PENDING :: forall r.
ResourceShareInvitationStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceShareInvitationStatus_PENDING = ResourceShareInvitationStatus' "PENDING"
pattern ResourceShareInvitationStatus_REJECTED :: ResourceShareInvitationStatus
pattern $bResourceShareInvitationStatus_REJECTED :: ResourceShareInvitationStatus
$mResourceShareInvitationStatus_REJECTED :: forall r.
ResourceShareInvitationStatus -> (Void# -> r) -> (Void# -> r) -> r
ResourceShareInvitationStatus_REJECTED = ResourceShareInvitationStatus' "REJECTED"
{-# COMPLETE
ResourceShareInvitationStatus_ACCEPTED,
ResourceShareInvitationStatus_EXPIRED,
ResourceShareInvitationStatus_PENDING,
ResourceShareInvitationStatus_REJECTED,
ResourceShareInvitationStatus'
#-}