{-# 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.DynamoDB.Types.ComparisonOperator
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DynamoDB.Types.ComparisonOperator
  ( ComparisonOperator
      ( ..,
        ComparisonOperator_BEGINS_WITH,
        ComparisonOperator_BETWEEN,
        ComparisonOperator_CONTAINS,
        ComparisonOperator_EQ,
        ComparisonOperator_GE,
        ComparisonOperator_GT,
        ComparisonOperator_IN,
        ComparisonOperator_LE,
        ComparisonOperator_LT,
        ComparisonOperator_NE,
        ComparisonOperator_NOT_CONTAINS,
        ComparisonOperator_NOT_NULL,
        ComparisonOperator_NULL
      ),
  )
where

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

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

pattern ComparisonOperator_BEGINS_WITH :: ComparisonOperator
pattern $bComparisonOperator_BEGINS_WITH :: ComparisonOperator
$mComparisonOperator_BEGINS_WITH :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_BEGINS_WITH = ComparisonOperator' "BEGINS_WITH"

pattern ComparisonOperator_BETWEEN :: ComparisonOperator
pattern $bComparisonOperator_BETWEEN :: ComparisonOperator
$mComparisonOperator_BETWEEN :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_BETWEEN = ComparisonOperator' "BETWEEN"

pattern ComparisonOperator_CONTAINS :: ComparisonOperator
pattern $bComparisonOperator_CONTAINS :: ComparisonOperator
$mComparisonOperator_CONTAINS :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_CONTAINS = ComparisonOperator' "CONTAINS"

pattern ComparisonOperator_EQ :: ComparisonOperator
pattern $bComparisonOperator_EQ :: ComparisonOperator
$mComparisonOperator_EQ :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_EQ = ComparisonOperator' "EQ"

pattern ComparisonOperator_GE :: ComparisonOperator
pattern $bComparisonOperator_GE :: ComparisonOperator
$mComparisonOperator_GE :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_GE = ComparisonOperator' "GE"

pattern ComparisonOperator_GT :: ComparisonOperator
pattern $bComparisonOperator_GT :: ComparisonOperator
$mComparisonOperator_GT :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_GT = ComparisonOperator' "GT"

pattern ComparisonOperator_IN :: ComparisonOperator
pattern $bComparisonOperator_IN :: ComparisonOperator
$mComparisonOperator_IN :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_IN = ComparisonOperator' "IN"

pattern ComparisonOperator_LE :: ComparisonOperator
pattern $bComparisonOperator_LE :: ComparisonOperator
$mComparisonOperator_LE :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_LE = ComparisonOperator' "LE"

pattern ComparisonOperator_LT :: ComparisonOperator
pattern $bComparisonOperator_LT :: ComparisonOperator
$mComparisonOperator_LT :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_LT = ComparisonOperator' "LT"

pattern ComparisonOperator_NE :: ComparisonOperator
pattern $bComparisonOperator_NE :: ComparisonOperator
$mComparisonOperator_NE :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_NE = ComparisonOperator' "NE"

pattern ComparisonOperator_NOT_CONTAINS :: ComparisonOperator
pattern $bComparisonOperator_NOT_CONTAINS :: ComparisonOperator
$mComparisonOperator_NOT_CONTAINS :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_NOT_CONTAINS = ComparisonOperator' "NOT_CONTAINS"

pattern ComparisonOperator_NOT_NULL :: ComparisonOperator
pattern $bComparisonOperator_NOT_NULL :: ComparisonOperator
$mComparisonOperator_NOT_NULL :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_NOT_NULL = ComparisonOperator' "NOT_NULL"

pattern ComparisonOperator_NULL :: ComparisonOperator
pattern $bComparisonOperator_NULL :: ComparisonOperator
$mComparisonOperator_NULL :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_NULL = ComparisonOperator' "NULL"

{-# COMPLETE
  ComparisonOperator_BEGINS_WITH,
  ComparisonOperator_BETWEEN,
  ComparisonOperator_CONTAINS,
  ComparisonOperator_EQ,
  ComparisonOperator_GE,
  ComparisonOperator_GT,
  ComparisonOperator_IN,
  ComparisonOperator_LE,
  ComparisonOperator_LT,
  ComparisonOperator_NE,
  ComparisonOperator_NOT_CONTAINS,
  ComparisonOperator_NOT_NULL,
  ComparisonOperator_NULL,
  ComparisonOperator'
  #-}