{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.WellArchitected.Types.ShareInvitationAction
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.WellArchitected.Types.ShareInvitationAction
  ( ShareInvitationAction
      ( ..,
        ShareInvitationAction_ACCEPT,
        ShareInvitationAction_REJECT
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

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

pattern ShareInvitationAction_ACCEPT :: ShareInvitationAction
pattern $bShareInvitationAction_ACCEPT :: ShareInvitationAction
$mShareInvitationAction_ACCEPT :: forall r.
ShareInvitationAction -> (Void# -> r) -> (Void# -> r) -> r
ShareInvitationAction_ACCEPT = ShareInvitationAction' "ACCEPT"

pattern ShareInvitationAction_REJECT :: ShareInvitationAction
pattern $bShareInvitationAction_REJECT :: ShareInvitationAction
$mShareInvitationAction_REJECT :: forall r.
ShareInvitationAction -> (Void# -> r) -> (Void# -> r) -> r
ShareInvitationAction_REJECT = ShareInvitationAction' "REJECT"

{-# COMPLETE
  ShareInvitationAction_ACCEPT,
  ShareInvitationAction_REJECT,
  ShareInvitationAction'
  #-}