{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.LexV2Models.Types.SlotTypeCategory
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.LexV2Models.Types.SlotTypeCategory
  ( SlotTypeCategory
      ( ..,
        SlotTypeCategory_Composite,
        SlotTypeCategory_Custom,
        SlotTypeCategory_Extended,
        SlotTypeCategory_ExternalGrammar
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern SlotTypeCategory_Composite :: SlotTypeCategory
pattern $bSlotTypeCategory_Composite :: SlotTypeCategory
$mSlotTypeCategory_Composite :: forall {r}. SlotTypeCategory -> ((# #) -> r) -> ((# #) -> r) -> r
SlotTypeCategory_Composite = SlotTypeCategory' "Composite"

pattern SlotTypeCategory_Custom :: SlotTypeCategory
pattern $bSlotTypeCategory_Custom :: SlotTypeCategory
$mSlotTypeCategory_Custom :: forall {r}. SlotTypeCategory -> ((# #) -> r) -> ((# #) -> r) -> r
SlotTypeCategory_Custom = SlotTypeCategory' "Custom"

pattern SlotTypeCategory_Extended :: SlotTypeCategory
pattern $bSlotTypeCategory_Extended :: SlotTypeCategory
$mSlotTypeCategory_Extended :: forall {r}. SlotTypeCategory -> ((# #) -> r) -> ((# #) -> r) -> r
SlotTypeCategory_Extended = SlotTypeCategory' "Extended"

pattern SlotTypeCategory_ExternalGrammar :: SlotTypeCategory
pattern $bSlotTypeCategory_ExternalGrammar :: SlotTypeCategory
$mSlotTypeCategory_ExternalGrammar :: forall {r}. SlotTypeCategory -> ((# #) -> r) -> ((# #) -> r) -> r
SlotTypeCategory_ExternalGrammar = SlotTypeCategory' "ExternalGrammar"

{-# COMPLETE
  SlotTypeCategory_Composite,
  SlotTypeCategory_Custom,
  SlotTypeCategory_Extended,
  SlotTypeCategory_ExternalGrammar,
  SlotTypeCategory'
  #-}