{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CloudDirectory.Types.RequiredAttributeBehavior
( RequiredAttributeBehavior
( ..,
RequiredAttributeBehavior_NOT_REQUIRED,
RequiredAttributeBehavior_REQUIRED_ALWAYS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype RequiredAttributeBehavior = RequiredAttributeBehavior'
{ RequiredAttributeBehavior -> Text
fromRequiredAttributeBehavior ::
Core.Text
}
deriving stock
( Int -> RequiredAttributeBehavior -> ShowS
[RequiredAttributeBehavior] -> ShowS
RequiredAttributeBehavior -> String
(Int -> RequiredAttributeBehavior -> ShowS)
-> (RequiredAttributeBehavior -> String)
-> ([RequiredAttributeBehavior] -> ShowS)
-> Show RequiredAttributeBehavior
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RequiredAttributeBehavior] -> ShowS
$cshowList :: [RequiredAttributeBehavior] -> ShowS
show :: RequiredAttributeBehavior -> String
$cshow :: RequiredAttributeBehavior -> String
showsPrec :: Int -> RequiredAttributeBehavior -> ShowS
$cshowsPrec :: Int -> RequiredAttributeBehavior -> ShowS
Prelude.Show,
ReadPrec [RequiredAttributeBehavior]
ReadPrec RequiredAttributeBehavior
Int -> ReadS RequiredAttributeBehavior
ReadS [RequiredAttributeBehavior]
(Int -> ReadS RequiredAttributeBehavior)
-> ReadS [RequiredAttributeBehavior]
-> ReadPrec RequiredAttributeBehavior
-> ReadPrec [RequiredAttributeBehavior]
-> Read RequiredAttributeBehavior
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RequiredAttributeBehavior]
$creadListPrec :: ReadPrec [RequiredAttributeBehavior]
readPrec :: ReadPrec RequiredAttributeBehavior
$creadPrec :: ReadPrec RequiredAttributeBehavior
readList :: ReadS [RequiredAttributeBehavior]
$creadList :: ReadS [RequiredAttributeBehavior]
readsPrec :: Int -> ReadS RequiredAttributeBehavior
$creadsPrec :: Int -> ReadS RequiredAttributeBehavior
Prelude.Read,
RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool
(RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool)
-> (RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool)
-> Eq RequiredAttributeBehavior
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool
$c/= :: RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool
== :: RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool
$c== :: RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool
Prelude.Eq,
Eq RequiredAttributeBehavior
Eq RequiredAttributeBehavior
-> (RequiredAttributeBehavior
-> RequiredAttributeBehavior -> Ordering)
-> (RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool)
-> (RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool)
-> (RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool)
-> (RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool)
-> (RequiredAttributeBehavior
-> RequiredAttributeBehavior -> RequiredAttributeBehavior)
-> (RequiredAttributeBehavior
-> RequiredAttributeBehavior -> RequiredAttributeBehavior)
-> Ord RequiredAttributeBehavior
RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool
RequiredAttributeBehavior -> RequiredAttributeBehavior -> Ordering
RequiredAttributeBehavior
-> RequiredAttributeBehavior -> RequiredAttributeBehavior
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 :: RequiredAttributeBehavior
-> RequiredAttributeBehavior -> RequiredAttributeBehavior
$cmin :: RequiredAttributeBehavior
-> RequiredAttributeBehavior -> RequiredAttributeBehavior
max :: RequiredAttributeBehavior
-> RequiredAttributeBehavior -> RequiredAttributeBehavior
$cmax :: RequiredAttributeBehavior
-> RequiredAttributeBehavior -> RequiredAttributeBehavior
>= :: RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool
$c>= :: RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool
> :: RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool
$c> :: RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool
<= :: RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool
$c<= :: RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool
< :: RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool
$c< :: RequiredAttributeBehavior -> RequiredAttributeBehavior -> Bool
compare :: RequiredAttributeBehavior -> RequiredAttributeBehavior -> Ordering
$ccompare :: RequiredAttributeBehavior -> RequiredAttributeBehavior -> Ordering
$cp1Ord :: Eq RequiredAttributeBehavior
Prelude.Ord,
(forall x.
RequiredAttributeBehavior -> Rep RequiredAttributeBehavior x)
-> (forall x.
Rep RequiredAttributeBehavior x -> RequiredAttributeBehavior)
-> Generic RequiredAttributeBehavior
forall x.
Rep RequiredAttributeBehavior x -> RequiredAttributeBehavior
forall x.
RequiredAttributeBehavior -> Rep RequiredAttributeBehavior x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RequiredAttributeBehavior x -> RequiredAttributeBehavior
$cfrom :: forall x.
RequiredAttributeBehavior -> Rep RequiredAttributeBehavior x
Prelude.Generic
)
deriving newtype
( Int -> RequiredAttributeBehavior -> Int
RequiredAttributeBehavior -> Int
(Int -> RequiredAttributeBehavior -> Int)
-> (RequiredAttributeBehavior -> Int)
-> Hashable RequiredAttributeBehavior
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: RequiredAttributeBehavior -> Int
$chash :: RequiredAttributeBehavior -> Int
hashWithSalt :: Int -> RequiredAttributeBehavior -> Int
$chashWithSalt :: Int -> RequiredAttributeBehavior -> Int
Prelude.Hashable,
RequiredAttributeBehavior -> ()
(RequiredAttributeBehavior -> ())
-> NFData RequiredAttributeBehavior
forall a. (a -> ()) -> NFData a
rnf :: RequiredAttributeBehavior -> ()
$crnf :: RequiredAttributeBehavior -> ()
Prelude.NFData,
Text -> Either String RequiredAttributeBehavior
(Text -> Either String RequiredAttributeBehavior)
-> FromText RequiredAttributeBehavior
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RequiredAttributeBehavior
$cfromText :: Text -> Either String RequiredAttributeBehavior
Core.FromText,
RequiredAttributeBehavior -> Text
(RequiredAttributeBehavior -> Text)
-> ToText RequiredAttributeBehavior
forall a. (a -> Text) -> ToText a
toText :: RequiredAttributeBehavior -> Text
$ctoText :: RequiredAttributeBehavior -> Text
Core.ToText,
RequiredAttributeBehavior -> ByteString
(RequiredAttributeBehavior -> ByteString)
-> ToByteString RequiredAttributeBehavior
forall a. (a -> ByteString) -> ToByteString a
toBS :: RequiredAttributeBehavior -> ByteString
$ctoBS :: RequiredAttributeBehavior -> ByteString
Core.ToByteString,
RequiredAttributeBehavior -> ByteStringBuilder
(RequiredAttributeBehavior -> ByteStringBuilder)
-> ToLog RequiredAttributeBehavior
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RequiredAttributeBehavior -> ByteStringBuilder
$cbuild :: RequiredAttributeBehavior -> ByteStringBuilder
Core.ToLog,
HeaderName -> RequiredAttributeBehavior -> [Header]
(HeaderName -> RequiredAttributeBehavior -> [Header])
-> ToHeader RequiredAttributeBehavior
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RequiredAttributeBehavior -> [Header]
$ctoHeader :: HeaderName -> RequiredAttributeBehavior -> [Header]
Core.ToHeader,
RequiredAttributeBehavior -> QueryString
(RequiredAttributeBehavior -> QueryString)
-> ToQuery RequiredAttributeBehavior
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RequiredAttributeBehavior -> QueryString
$ctoQuery :: RequiredAttributeBehavior -> QueryString
Core.ToQuery,
Value -> Parser [RequiredAttributeBehavior]
Value -> Parser RequiredAttributeBehavior
(Value -> Parser RequiredAttributeBehavior)
-> (Value -> Parser [RequiredAttributeBehavior])
-> FromJSON RequiredAttributeBehavior
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [RequiredAttributeBehavior]
$cparseJSONList :: Value -> Parser [RequiredAttributeBehavior]
parseJSON :: Value -> Parser RequiredAttributeBehavior
$cparseJSON :: Value -> Parser RequiredAttributeBehavior
Core.FromJSON,
FromJSONKeyFunction [RequiredAttributeBehavior]
FromJSONKeyFunction RequiredAttributeBehavior
FromJSONKeyFunction RequiredAttributeBehavior
-> FromJSONKeyFunction [RequiredAttributeBehavior]
-> FromJSONKey RequiredAttributeBehavior
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RequiredAttributeBehavior]
$cfromJSONKeyList :: FromJSONKeyFunction [RequiredAttributeBehavior]
fromJSONKey :: FromJSONKeyFunction RequiredAttributeBehavior
$cfromJSONKey :: FromJSONKeyFunction RequiredAttributeBehavior
Core.FromJSONKey,
[RequiredAttributeBehavior] -> Encoding
[RequiredAttributeBehavior] -> Value
RequiredAttributeBehavior -> Encoding
RequiredAttributeBehavior -> Value
(RequiredAttributeBehavior -> Value)
-> (RequiredAttributeBehavior -> Encoding)
-> ([RequiredAttributeBehavior] -> Value)
-> ([RequiredAttributeBehavior] -> Encoding)
-> ToJSON RequiredAttributeBehavior
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [RequiredAttributeBehavior] -> Encoding
$ctoEncodingList :: [RequiredAttributeBehavior] -> Encoding
toJSONList :: [RequiredAttributeBehavior] -> Value
$ctoJSONList :: [RequiredAttributeBehavior] -> Value
toEncoding :: RequiredAttributeBehavior -> Encoding
$ctoEncoding :: RequiredAttributeBehavior -> Encoding
toJSON :: RequiredAttributeBehavior -> Value
$ctoJSON :: RequiredAttributeBehavior -> Value
Core.ToJSON,
ToJSONKeyFunction [RequiredAttributeBehavior]
ToJSONKeyFunction RequiredAttributeBehavior
ToJSONKeyFunction RequiredAttributeBehavior
-> ToJSONKeyFunction [RequiredAttributeBehavior]
-> ToJSONKey RequiredAttributeBehavior
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RequiredAttributeBehavior]
$ctoJSONKeyList :: ToJSONKeyFunction [RequiredAttributeBehavior]
toJSONKey :: ToJSONKeyFunction RequiredAttributeBehavior
$ctoJSONKey :: ToJSONKeyFunction RequiredAttributeBehavior
Core.ToJSONKey,
[Node] -> Either String RequiredAttributeBehavior
([Node] -> Either String RequiredAttributeBehavior)
-> FromXML RequiredAttributeBehavior
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RequiredAttributeBehavior
$cparseXML :: [Node] -> Either String RequiredAttributeBehavior
Core.FromXML,
RequiredAttributeBehavior -> XML
(RequiredAttributeBehavior -> XML)
-> ToXML RequiredAttributeBehavior
forall a. (a -> XML) -> ToXML a
toXML :: RequiredAttributeBehavior -> XML
$ctoXML :: RequiredAttributeBehavior -> XML
Core.ToXML
)
pattern RequiredAttributeBehavior_NOT_REQUIRED :: RequiredAttributeBehavior
pattern $bRequiredAttributeBehavior_NOT_REQUIRED :: RequiredAttributeBehavior
$mRequiredAttributeBehavior_NOT_REQUIRED :: forall r.
RequiredAttributeBehavior -> (Void# -> r) -> (Void# -> r) -> r
RequiredAttributeBehavior_NOT_REQUIRED = RequiredAttributeBehavior' "NOT_REQUIRED"
pattern RequiredAttributeBehavior_REQUIRED_ALWAYS :: RequiredAttributeBehavior
pattern $bRequiredAttributeBehavior_REQUIRED_ALWAYS :: RequiredAttributeBehavior
$mRequiredAttributeBehavior_REQUIRED_ALWAYS :: forall r.
RequiredAttributeBehavior -> (Void# -> r) -> (Void# -> r) -> r
RequiredAttributeBehavior_REQUIRED_ALWAYS = RequiredAttributeBehavior' "REQUIRED_ALWAYS"
{-# COMPLETE
RequiredAttributeBehavior_NOT_REQUIRED,
RequiredAttributeBehavior_REQUIRED_ALWAYS,
RequiredAttributeBehavior'
#-}