{-# 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.SlotTypeFilterOperator
-- 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.SlotTypeFilterOperator
  ( SlotTypeFilterOperator
      ( ..,
        SlotTypeFilterOperator_CO,
        SlotTypeFilterOperator_EQ
      ),
  )
where

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

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

pattern SlotTypeFilterOperator_CO :: SlotTypeFilterOperator
pattern $bSlotTypeFilterOperator_CO :: SlotTypeFilterOperator
$mSlotTypeFilterOperator_CO :: forall {r}.
SlotTypeFilterOperator -> ((# #) -> r) -> ((# #) -> r) -> r
SlotTypeFilterOperator_CO = SlotTypeFilterOperator' "CO"

pattern SlotTypeFilterOperator_EQ :: SlotTypeFilterOperator
pattern $bSlotTypeFilterOperator_EQ :: SlotTypeFilterOperator
$mSlotTypeFilterOperator_EQ :: forall {r}.
SlotTypeFilterOperator -> ((# #) -> r) -> ((# #) -> r) -> r
SlotTypeFilterOperator_EQ = SlotTypeFilterOperator' "EQ"

{-# COMPLETE
  SlotTypeFilterOperator_CO,
  SlotTypeFilterOperator_EQ,
  SlotTypeFilterOperator'
  #-}