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