{-# 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.SlotFilterOperator
-- 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.SlotFilterOperator
  ( SlotFilterOperator
      ( ..,
        SlotFilterOperator_CO,
        SlotFilterOperator_EQ
      ),
  )
where

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

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

pattern SlotFilterOperator_CO :: SlotFilterOperator
pattern $bSlotFilterOperator_CO :: SlotFilterOperator
$mSlotFilterOperator_CO :: forall {r}. SlotFilterOperator -> ((# #) -> r) -> ((# #) -> r) -> r
SlotFilterOperator_CO = SlotFilterOperator' "CO"

pattern SlotFilterOperator_EQ :: SlotFilterOperator
pattern $bSlotFilterOperator_EQ :: SlotFilterOperator
$mSlotFilterOperator_EQ :: forall {r}. SlotFilterOperator -> ((# #) -> r) -> ((# #) -> r) -> r
SlotFilterOperator_EQ = SlotFilterOperator' "EQ"

{-# COMPLETE
  SlotFilterOperator_CO,
  SlotFilterOperator_EQ,
  SlotFilterOperator'
  #-}