{-# 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.IntentFilterOperator
-- 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.IntentFilterOperator
  ( IntentFilterOperator
      ( ..,
        IntentFilterOperator_CO,
        IntentFilterOperator_EQ
      ),
  )
where

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

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

pattern IntentFilterOperator_CO :: IntentFilterOperator
pattern $bIntentFilterOperator_CO :: IntentFilterOperator
$mIntentFilterOperator_CO :: forall {r}.
IntentFilterOperator -> ((# #) -> r) -> ((# #) -> r) -> r
IntentFilterOperator_CO = IntentFilterOperator' "CO"

pattern IntentFilterOperator_EQ :: IntentFilterOperator
pattern $bIntentFilterOperator_EQ :: IntentFilterOperator
$mIntentFilterOperator_EQ :: forall {r}.
IntentFilterOperator -> ((# #) -> r) -> ((# #) -> r) -> r
IntentFilterOperator_EQ = IntentFilterOperator' "EQ"

{-# COMPLETE
  IntentFilterOperator_CO,
  IntentFilterOperator_EQ,
  IntentFilterOperator'
  #-}