{-# 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.IoTEvents.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.IoTEvents.Types.ComparisonOperator
  ( ComparisonOperator
      ( ..,
        ComparisonOperator_EQUAL,
        ComparisonOperator_GREATER,
        ComparisonOperator_GREATER_OR_EQUAL,
        ComparisonOperator_LESS,
        ComparisonOperator_LESS_OR_EQUAL,
        ComparisonOperator_NOT_EQUAL
      ),
  )
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_EQUAL :: ComparisonOperator
pattern $bComparisonOperator_EQUAL :: ComparisonOperator
$mComparisonOperator_EQUAL :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_EQUAL = ComparisonOperator' "EQUAL"

pattern ComparisonOperator_GREATER :: ComparisonOperator
pattern $bComparisonOperator_GREATER :: ComparisonOperator
$mComparisonOperator_GREATER :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_GREATER = ComparisonOperator' "GREATER"

pattern ComparisonOperator_GREATER_OR_EQUAL :: ComparisonOperator
pattern $bComparisonOperator_GREATER_OR_EQUAL :: ComparisonOperator
$mComparisonOperator_GREATER_OR_EQUAL :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_GREATER_OR_EQUAL = ComparisonOperator' "GREATER_OR_EQUAL"

pattern ComparisonOperator_LESS :: ComparisonOperator
pattern $bComparisonOperator_LESS :: ComparisonOperator
$mComparisonOperator_LESS :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_LESS = ComparisonOperator' "LESS"

pattern ComparisonOperator_LESS_OR_EQUAL :: ComparisonOperator
pattern $bComparisonOperator_LESS_OR_EQUAL :: ComparisonOperator
$mComparisonOperator_LESS_OR_EQUAL :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_LESS_OR_EQUAL = ComparisonOperator' "LESS_OR_EQUAL"

pattern ComparisonOperator_NOT_EQUAL :: ComparisonOperator
pattern $bComparisonOperator_NOT_EQUAL :: ComparisonOperator
$mComparisonOperator_NOT_EQUAL :: forall r. ComparisonOperator -> (Void# -> r) -> (Void# -> r) -> r
ComparisonOperator_NOT_EQUAL = ComparisonOperator' "NOT_EQUAL"

{-# COMPLETE
  ComparisonOperator_EQUAL,
  ComparisonOperator_GREATER,
  ComparisonOperator_GREATER_OR_EQUAL,
  ComparisonOperator_LESS,
  ComparisonOperator_LESS_OR_EQUAL,
  ComparisonOperator_NOT_EQUAL,
  ComparisonOperator'
  #-}