{-# 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.Glue.Types.FilterOperator
-- 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.Glue.Types.FilterOperator
  ( FilterOperator
      ( ..,
        FilterOperator_EQ,
        FilterOperator_GE,
        FilterOperator_GT,
        FilterOperator_LE,
        FilterOperator_LT,
        FilterOperator_NE
      ),
  )
where

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

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

pattern FilterOperator_EQ :: FilterOperator
pattern $bFilterOperator_EQ :: FilterOperator
$mFilterOperator_EQ :: forall {r}. FilterOperator -> ((# #) -> r) -> ((# #) -> r) -> r
FilterOperator_EQ = FilterOperator' "EQ"

pattern FilterOperator_GE :: FilterOperator
pattern $bFilterOperator_GE :: FilterOperator
$mFilterOperator_GE :: forall {r}. FilterOperator -> ((# #) -> r) -> ((# #) -> r) -> r
FilterOperator_GE = FilterOperator' "GE"

pattern FilterOperator_GT :: FilterOperator
pattern $bFilterOperator_GT :: FilterOperator
$mFilterOperator_GT :: forall {r}. FilterOperator -> ((# #) -> r) -> ((# #) -> r) -> r
FilterOperator_GT = FilterOperator' "GT"

pattern FilterOperator_LE :: FilterOperator
pattern $bFilterOperator_LE :: FilterOperator
$mFilterOperator_LE :: forall {r}. FilterOperator -> ((# #) -> r) -> ((# #) -> r) -> r
FilterOperator_LE = FilterOperator' "LE"

pattern FilterOperator_LT :: FilterOperator
pattern $bFilterOperator_LT :: FilterOperator
$mFilterOperator_LT :: forall {r}. FilterOperator -> ((# #) -> r) -> ((# #) -> r) -> r
FilterOperator_LT = FilterOperator' "LT"

pattern FilterOperator_NE :: FilterOperator
pattern $bFilterOperator_NE :: FilterOperator
$mFilterOperator_NE :: forall {r}. FilterOperator -> ((# #) -> r) -> ((# #) -> r) -> r
FilterOperator_NE = FilterOperator' "NE"

{-# COMPLETE
  FilterOperator_EQ,
  FilterOperator_GE,
  FilterOperator_GT,
  FilterOperator_LE,
  FilterOperator_LT,
  FilterOperator_NE,
  FilterOperator'
  #-}