{-# 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.AuditManager.Types.ShareRequestAction
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.AuditManager.Types.ShareRequestAction
  ( ShareRequestAction
      ( ..,
        ShareRequestAction_ACCEPT,
        ShareRequestAction_DECLINE,
        ShareRequestAction_REVOKE
      ),
  )
where

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

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

pattern ShareRequestAction_ACCEPT :: ShareRequestAction
pattern $bShareRequestAction_ACCEPT :: ShareRequestAction
$mShareRequestAction_ACCEPT :: forall {r}. ShareRequestAction -> ((# #) -> r) -> ((# #) -> r) -> r
ShareRequestAction_ACCEPT = ShareRequestAction' "ACCEPT"

pattern ShareRequestAction_DECLINE :: ShareRequestAction
pattern $bShareRequestAction_DECLINE :: ShareRequestAction
$mShareRequestAction_DECLINE :: forall {r}. ShareRequestAction -> ((# #) -> r) -> ((# #) -> r) -> r
ShareRequestAction_DECLINE = ShareRequestAction' "DECLINE"

pattern ShareRequestAction_REVOKE :: ShareRequestAction
pattern $bShareRequestAction_REVOKE :: ShareRequestAction
$mShareRequestAction_REVOKE :: forall {r}. ShareRequestAction -> ((# #) -> r) -> ((# #) -> r) -> r
ShareRequestAction_REVOKE = ShareRequestAction' "REVOKE"

{-# COMPLETE
  ShareRequestAction_ACCEPT,
  ShareRequestAction_DECLINE,
  ShareRequestAction_REVOKE,
  ShareRequestAction'
  #-}