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