{-# 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.DirectoryService.Types.ShareMethod
-- 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.DirectoryService.Types.ShareMethod
  ( ShareMethod
      ( ..,
        ShareMethod_HANDSHAKE,
        ShareMethod_ORGANIZATIONS
      ),
  )
where

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

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

pattern ShareMethod_HANDSHAKE :: ShareMethod
pattern $bShareMethod_HANDSHAKE :: ShareMethod
$mShareMethod_HANDSHAKE :: forall {r}. ShareMethod -> ((# #) -> r) -> ((# #) -> r) -> r
ShareMethod_HANDSHAKE = ShareMethod' "HANDSHAKE"

pattern ShareMethod_ORGANIZATIONS :: ShareMethod
pattern $bShareMethod_ORGANIZATIONS :: ShareMethod
$mShareMethod_ORGANIZATIONS :: forall {r}. ShareMethod -> ((# #) -> r) -> ((# #) -> r) -> r
ShareMethod_ORGANIZATIONS = ShareMethod' "ORGANIZATIONS"

{-# COMPLETE
  ShareMethod_HANDSHAKE,
  ShareMethod_ORGANIZATIONS,
  ShareMethod'
  #-}