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