{-# 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.HandshakePartyType
-- 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.Organizations.Types.HandshakePartyType
  ( HandshakePartyType
      ( ..,
        HandshakePartyType_ACCOUNT,
        HandshakePartyType_EMAIL,
        HandshakePartyType_ORGANIZATION
      ),
  )
where

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

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

pattern HandshakePartyType_ACCOUNT :: HandshakePartyType
pattern $bHandshakePartyType_ACCOUNT :: HandshakePartyType
$mHandshakePartyType_ACCOUNT :: forall r. HandshakePartyType -> (Void# -> r) -> (Void# -> r) -> r
HandshakePartyType_ACCOUNT = HandshakePartyType' "ACCOUNT"

pattern HandshakePartyType_EMAIL :: HandshakePartyType
pattern $bHandshakePartyType_EMAIL :: HandshakePartyType
$mHandshakePartyType_EMAIL :: forall r. HandshakePartyType -> (Void# -> r) -> (Void# -> r) -> r
HandshakePartyType_EMAIL = HandshakePartyType' "EMAIL"

pattern HandshakePartyType_ORGANIZATION :: HandshakePartyType
pattern $bHandshakePartyType_ORGANIZATION :: HandshakePartyType
$mHandshakePartyType_ORGANIZATION :: forall r. HandshakePartyType -> (Void# -> r) -> (Void# -> r) -> r
HandshakePartyType_ORGANIZATION = HandshakePartyType' "ORGANIZATION"

{-# COMPLETE
  HandshakePartyType_ACCOUNT,
  HandshakePartyType_EMAIL,
  HandshakePartyType_ORGANIZATION,
  HandshakePartyType'
  #-}