{-# 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.BotFilterOperator
-- 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.BotFilterOperator
  ( BotFilterOperator
      ( ..,
        BotFilterOperator_CO,
        BotFilterOperator_EQ
      ),
  )
where

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

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

pattern BotFilterOperator_CO :: BotFilterOperator
pattern $bBotFilterOperator_CO :: BotFilterOperator
$mBotFilterOperator_CO :: forall {r}. BotFilterOperator -> ((# #) -> r) -> ((# #) -> r) -> r
BotFilterOperator_CO = BotFilterOperator' "CO"

pattern BotFilterOperator_EQ :: BotFilterOperator
pattern $bBotFilterOperator_EQ :: BotFilterOperator
$mBotFilterOperator_EQ :: forall {r}. BotFilterOperator -> ((# #) -> r) -> ((# #) -> r) -> r
BotFilterOperator_EQ = BotFilterOperator' "EQ"

{-# COMPLETE
  BotFilterOperator_CO,
  BotFilterOperator_EQ,
  BotFilterOperator'
  #-}