{-# 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.Detective.Types.InvitationType
-- 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.Detective.Types.InvitationType
  ( InvitationType
      ( ..,
        InvitationType_INVITATION,
        InvitationType_ORGANIZATION
      ),
  )
where

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

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

pattern InvitationType_INVITATION :: InvitationType
pattern $bInvitationType_INVITATION :: InvitationType
$mInvitationType_INVITATION :: forall {r}. InvitationType -> ((# #) -> r) -> ((# #) -> r) -> r
InvitationType_INVITATION = InvitationType' "INVITATION"

pattern InvitationType_ORGANIZATION :: InvitationType
pattern $bInvitationType_ORGANIZATION :: InvitationType
$mInvitationType_ORGANIZATION :: forall {r}. InvitationType -> ((# #) -> r) -> ((# #) -> r) -> r
InvitationType_ORGANIZATION = InvitationType' "ORGANIZATION"

{-# COMPLETE
  InvitationType_INVITATION,
  InvitationType_ORGANIZATION,
  InvitationType'
  #-}