{-# 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.SlotTypeFilterName
-- 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.SlotTypeFilterName
  ( SlotTypeFilterName
      ( ..,
        SlotTypeFilterName_ExternalSourceType,
        SlotTypeFilterName_SlotTypeName
      ),
  )
where

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

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

pattern SlotTypeFilterName_ExternalSourceType :: SlotTypeFilterName
pattern $bSlotTypeFilterName_ExternalSourceType :: SlotTypeFilterName
$mSlotTypeFilterName_ExternalSourceType :: forall {r}. SlotTypeFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
SlotTypeFilterName_ExternalSourceType = SlotTypeFilterName' "ExternalSourceType"

pattern SlotTypeFilterName_SlotTypeName :: SlotTypeFilterName
pattern $bSlotTypeFilterName_SlotTypeName :: SlotTypeFilterName
$mSlotTypeFilterName_SlotTypeName :: forall {r}. SlotTypeFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
SlotTypeFilterName_SlotTypeName = SlotTypeFilterName' "SlotTypeName"

{-# COMPLETE
  SlotTypeFilterName_ExternalSourceType,
  SlotTypeFilterName_SlotTypeName,
  SlotTypeFilterName'
  #-}