{-# 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.AppFlow.Types.Operator
-- 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.AppFlow.Types.Operator
  ( Operator
      ( ..,
        Operator_ADDITION,
        Operator_BETWEEN,
        Operator_CONTAINS,
        Operator_DIVISION,
        Operator_EQUAL_TO,
        Operator_GREATER_THAN,
        Operator_GREATER_THAN_OR_EQUAL_TO,
        Operator_LESS_THAN,
        Operator_LESS_THAN_OR_EQUAL_TO,
        Operator_MASK_ALL,
        Operator_MASK_FIRST_N,
        Operator_MASK_LAST_N,
        Operator_MULTIPLICATION,
        Operator_NOT_EQUAL_TO,
        Operator_NO_OP,
        Operator_PROJECTION,
        Operator_SUBTRACTION,
        Operator_VALIDATE_NON_NEGATIVE,
        Operator_VALIDATE_NON_NULL,
        Operator_VALIDATE_NON_ZERO,
        Operator_VALIDATE_NUMERIC
      ),
  )
where

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

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

pattern Operator_ADDITION :: Operator
pattern $bOperator_ADDITION :: Operator
$mOperator_ADDITION :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_ADDITION = Operator' "ADDITION"

pattern Operator_BETWEEN :: Operator
pattern $bOperator_BETWEEN :: Operator
$mOperator_BETWEEN :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_BETWEEN = Operator' "BETWEEN"

pattern Operator_CONTAINS :: Operator
pattern $bOperator_CONTAINS :: Operator
$mOperator_CONTAINS :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_CONTAINS = Operator' "CONTAINS"

pattern Operator_DIVISION :: Operator
pattern $bOperator_DIVISION :: Operator
$mOperator_DIVISION :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_DIVISION = Operator' "DIVISION"

pattern Operator_EQUAL_TO :: Operator
pattern $bOperator_EQUAL_TO :: Operator
$mOperator_EQUAL_TO :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_EQUAL_TO = Operator' "EQUAL_TO"

pattern Operator_GREATER_THAN :: Operator
pattern $bOperator_GREATER_THAN :: Operator
$mOperator_GREATER_THAN :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_GREATER_THAN = Operator' "GREATER_THAN"

pattern Operator_GREATER_THAN_OR_EQUAL_TO :: Operator
pattern $bOperator_GREATER_THAN_OR_EQUAL_TO :: Operator
$mOperator_GREATER_THAN_OR_EQUAL_TO :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_GREATER_THAN_OR_EQUAL_TO = Operator' "GREATER_THAN_OR_EQUAL_TO"

pattern Operator_LESS_THAN :: Operator
pattern $bOperator_LESS_THAN :: Operator
$mOperator_LESS_THAN :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_LESS_THAN = Operator' "LESS_THAN"

pattern Operator_LESS_THAN_OR_EQUAL_TO :: Operator
pattern $bOperator_LESS_THAN_OR_EQUAL_TO :: Operator
$mOperator_LESS_THAN_OR_EQUAL_TO :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_LESS_THAN_OR_EQUAL_TO = Operator' "LESS_THAN_OR_EQUAL_TO"

pattern Operator_MASK_ALL :: Operator
pattern $bOperator_MASK_ALL :: Operator
$mOperator_MASK_ALL :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_MASK_ALL = Operator' "MASK_ALL"

pattern Operator_MASK_FIRST_N :: Operator
pattern $bOperator_MASK_FIRST_N :: Operator
$mOperator_MASK_FIRST_N :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_MASK_FIRST_N = Operator' "MASK_FIRST_N"

pattern Operator_MASK_LAST_N :: Operator
pattern $bOperator_MASK_LAST_N :: Operator
$mOperator_MASK_LAST_N :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_MASK_LAST_N = Operator' "MASK_LAST_N"

pattern Operator_MULTIPLICATION :: Operator
pattern $bOperator_MULTIPLICATION :: Operator
$mOperator_MULTIPLICATION :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_MULTIPLICATION = Operator' "MULTIPLICATION"

pattern Operator_NOT_EQUAL_TO :: Operator
pattern $bOperator_NOT_EQUAL_TO :: Operator
$mOperator_NOT_EQUAL_TO :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_NOT_EQUAL_TO = Operator' "NOT_EQUAL_TO"

pattern Operator_NO_OP :: Operator
pattern $bOperator_NO_OP :: Operator
$mOperator_NO_OP :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_NO_OP = Operator' "NO_OP"

pattern Operator_PROJECTION :: Operator
pattern $bOperator_PROJECTION :: Operator
$mOperator_PROJECTION :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_PROJECTION = Operator' "PROJECTION"

pattern Operator_SUBTRACTION :: Operator
pattern $bOperator_SUBTRACTION :: Operator
$mOperator_SUBTRACTION :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_SUBTRACTION = Operator' "SUBTRACTION"

pattern Operator_VALIDATE_NON_NEGATIVE :: Operator
pattern $bOperator_VALIDATE_NON_NEGATIVE :: Operator
$mOperator_VALIDATE_NON_NEGATIVE :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_VALIDATE_NON_NEGATIVE = Operator' "VALIDATE_NON_NEGATIVE"

pattern Operator_VALIDATE_NON_NULL :: Operator
pattern $bOperator_VALIDATE_NON_NULL :: Operator
$mOperator_VALIDATE_NON_NULL :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_VALIDATE_NON_NULL = Operator' "VALIDATE_NON_NULL"

pattern Operator_VALIDATE_NON_ZERO :: Operator
pattern $bOperator_VALIDATE_NON_ZERO :: Operator
$mOperator_VALIDATE_NON_ZERO :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_VALIDATE_NON_ZERO = Operator' "VALIDATE_NON_ZERO"

pattern Operator_VALIDATE_NUMERIC :: Operator
pattern $bOperator_VALIDATE_NUMERIC :: Operator
$mOperator_VALIDATE_NUMERIC :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_VALIDATE_NUMERIC = Operator' "VALIDATE_NUMERIC"

{-# COMPLETE
  Operator_ADDITION,
  Operator_BETWEEN,
  Operator_CONTAINS,
  Operator_DIVISION,
  Operator_EQUAL_TO,
  Operator_GREATER_THAN,
  Operator_GREATER_THAN_OR_EQUAL_TO,
  Operator_LESS_THAN,
  Operator_LESS_THAN_OR_EQUAL_TO,
  Operator_MASK_ALL,
  Operator_MASK_FIRST_N,
  Operator_MASK_LAST_N,
  Operator_MULTIPLICATION,
  Operator_NOT_EQUAL_TO,
  Operator_NO_OP,
  Operator_PROJECTION,
  Operator_SUBTRACTION,
  Operator_VALIDATE_NON_NEGATIVE,
  Operator_VALIDATE_NON_NULL,
  Operator_VALIDATE_NON_ZERO,
  Operator_VALIDATE_NUMERIC,
  Operator'
  #-}