{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.DirectoryService.Types.ShareMethod
( ShareMethod
( ..,
ShareMethod_HANDSHAKE,
ShareMethod_ORGANIZATIONS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ShareMethod = ShareMethod'
{ ShareMethod -> Text
fromShareMethod ::
Core.Text
}
deriving stock
( Int -> ShareMethod -> ShowS
[ShareMethod] -> ShowS
ShareMethod -> String
(Int -> ShareMethod -> ShowS)
-> (ShareMethod -> String)
-> ([ShareMethod] -> ShowS)
-> Show ShareMethod
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]
(Int -> ReadS ShareMethod)
-> ReadS [ShareMethod]
-> ReadPrec ShareMethod
-> ReadPrec [ShareMethod]
-> Read 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
(ShareMethod -> ShareMethod -> Bool)
-> (ShareMethod -> ShareMethod -> Bool) -> Eq ShareMethod
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
Eq ShareMethod
-> (ShareMethod -> ShareMethod -> Ordering)
-> (ShareMethod -> ShareMethod -> Bool)
-> (ShareMethod -> ShareMethod -> Bool)
-> (ShareMethod -> ShareMethod -> Bool)
-> (ShareMethod -> ShareMethod -> Bool)
-> (ShareMethod -> ShareMethod -> ShareMethod)
-> (ShareMethod -> ShareMethod -> ShareMethod)
-> Ord 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
$cp1Ord :: Eq ShareMethod
Prelude.Ord,
(forall x. ShareMethod -> Rep ShareMethod x)
-> (forall x. Rep ShareMethod x -> ShareMethod)
-> Generic ShareMethod
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
( Int -> ShareMethod -> Int
ShareMethod -> Int
(Int -> ShareMethod -> Int)
-> (ShareMethod -> Int) -> Hashable ShareMethod
forall 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 -> ()
(ShareMethod -> ()) -> NFData ShareMethod
forall a. (a -> ()) -> NFData a
rnf :: ShareMethod -> ()
$crnf :: ShareMethod -> ()
Prelude.NFData,
Text -> Either String ShareMethod
(Text -> Either String ShareMethod) -> FromText ShareMethod
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ShareMethod
$cfromText :: Text -> Either String ShareMethod
Core.FromText,
ShareMethod -> Text
(ShareMethod -> Text) -> ToText ShareMethod
forall a. (a -> Text) -> ToText a
toText :: ShareMethod -> Text
$ctoText :: ShareMethod -> Text
Core.ToText,
ShareMethod -> ByteString
(ShareMethod -> ByteString) -> ToByteString ShareMethod
forall a. (a -> ByteString) -> ToByteString a
toBS :: ShareMethod -> ByteString
$ctoBS :: ShareMethod -> ByteString
Core.ToByteString,
ShareMethod -> ByteStringBuilder
(ShareMethod -> ByteStringBuilder) -> ToLog ShareMethod
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ShareMethod -> ByteStringBuilder
$cbuild :: ShareMethod -> ByteStringBuilder
Core.ToLog,
HeaderName -> ShareMethod -> [Header]
(HeaderName -> ShareMethod -> [Header]) -> ToHeader ShareMethod
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ShareMethod -> [Header]
$ctoHeader :: HeaderName -> ShareMethod -> [Header]
Core.ToHeader,
ShareMethod -> QueryString
(ShareMethod -> QueryString) -> ToQuery ShareMethod
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ShareMethod -> QueryString
$ctoQuery :: ShareMethod -> QueryString
Core.ToQuery,
Value -> Parser [ShareMethod]
Value -> Parser ShareMethod
(Value -> Parser ShareMethod)
-> (Value -> Parser [ShareMethod]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [ShareMethod]
FromJSONKeyFunction ShareMethod
FromJSONKeyFunction ShareMethod
-> FromJSONKeyFunction [ShareMethod] -> FromJSONKey ShareMethod
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ShareMethod]
$cfromJSONKeyList :: FromJSONKeyFunction [ShareMethod]
fromJSONKey :: FromJSONKeyFunction ShareMethod
$cfromJSONKey :: FromJSONKeyFunction ShareMethod
Core.FromJSONKey,
[ShareMethod] -> Encoding
[ShareMethod] -> Value
ShareMethod -> Encoding
ShareMethod -> Value
(ShareMethod -> Value)
-> (ShareMethod -> Encoding)
-> ([ShareMethod] -> Value)
-> ([ShareMethod] -> Encoding)
-> ToJSON ShareMethod
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
Core.ToJSON,
ToJSONKeyFunction [ShareMethod]
ToJSONKeyFunction ShareMethod
ToJSONKeyFunction ShareMethod
-> ToJSONKeyFunction [ShareMethod] -> ToJSONKey ShareMethod
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ShareMethod]
$ctoJSONKeyList :: ToJSONKeyFunction [ShareMethod]
toJSONKey :: ToJSONKeyFunction ShareMethod
$ctoJSONKey :: ToJSONKeyFunction ShareMethod
Core.ToJSONKey,
[Node] -> Either String ShareMethod
([Node] -> Either String ShareMethod) -> FromXML ShareMethod
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ShareMethod
$cparseXML :: [Node] -> Either String ShareMethod
Core.FromXML,
ShareMethod -> XML
(ShareMethod -> XML) -> ToXML ShareMethod
forall a. (a -> XML) -> ToXML a
toXML :: ShareMethod -> XML
$ctoXML :: ShareMethod -> XML
Core.ToXML
)
pattern ShareMethod_HANDSHAKE :: ShareMethod
pattern $bShareMethod_HANDSHAKE :: ShareMethod
$mShareMethod_HANDSHAKE :: forall r. ShareMethod -> (Void# -> r) -> (Void# -> r) -> r
ShareMethod_HANDSHAKE = ShareMethod' "HANDSHAKE"
pattern ShareMethod_ORGANIZATIONS :: ShareMethod
pattern $bShareMethod_ORGANIZATIONS :: ShareMethod
$mShareMethod_ORGANIZATIONS :: forall r. ShareMethod -> (Void# -> r) -> (Void# -> r) -> r
ShareMethod_ORGANIZATIONS = ShareMethod' "ORGANIZATIONS"
{-# COMPLETE
ShareMethod_HANDSHAKE,
ShareMethod_ORGANIZATIONS,
ShareMethod'
#-}