{-# 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.ShareRequestType
-- 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.ShareRequestType
  ( ShareRequestType
      ( ..,
        ShareRequestType_RECEIVED,
        ShareRequestType_SENT
      ),
  )
where

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

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

pattern ShareRequestType_RECEIVED :: ShareRequestType
pattern $bShareRequestType_RECEIVED :: ShareRequestType
$mShareRequestType_RECEIVED :: forall {r}. ShareRequestType -> ((# #) -> r) -> ((# #) -> r) -> r
ShareRequestType_RECEIVED = ShareRequestType' "RECEIVED"

pattern ShareRequestType_SENT :: ShareRequestType
pattern $bShareRequestType_SENT :: ShareRequestType
$mShareRequestType_SENT :: forall {r}. ShareRequestType -> ((# #) -> r) -> ((# #) -> r) -> r
ShareRequestType_SENT = ShareRequestType' "SENT"

{-# COMPLETE
  ShareRequestType_RECEIVED,
  ShareRequestType_SENT,
  ShareRequestType'
  #-}