{-# 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.Organizations.Types.AccountJoinedMethod
-- 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.Organizations.Types.AccountJoinedMethod
  ( AccountJoinedMethod
      ( ..,
        AccountJoinedMethod_CREATED,
        AccountJoinedMethod_INVITED
      ),
  )
where

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

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

pattern AccountJoinedMethod_CREATED :: AccountJoinedMethod
pattern $bAccountJoinedMethod_CREATED :: AccountJoinedMethod
$mAccountJoinedMethod_CREATED :: forall {r}.
AccountJoinedMethod -> ((# #) -> r) -> ((# #) -> r) -> r
AccountJoinedMethod_CREATED = AccountJoinedMethod' "CREATED"

pattern AccountJoinedMethod_INVITED :: AccountJoinedMethod
pattern $bAccountJoinedMethod_INVITED :: AccountJoinedMethod
$mAccountJoinedMethod_INVITED :: forall {r}.
AccountJoinedMethod -> ((# #) -> r) -> ((# #) -> r) -> r
AccountJoinedMethod_INVITED = AccountJoinedMethod' "INVITED"

{-# COMPLETE
  AccountJoinedMethod_CREATED,
  AccountJoinedMethod_INVITED,
  AccountJoinedMethod'
  #-}