{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.DataSync.Types.Operator
( Operator
( ..,
Operator_BeginsWith,
Operator_Contains,
Operator_Equals,
Operator_GreaterThan,
Operator_GreaterThanOrEqual,
Operator_In,
Operator_LessThan,
Operator_LessThanOrEqual,
Operator_NotContains,
Operator_NotEquals
),
)
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_BeginsWith :: Operator
pattern $bOperator_BeginsWith :: Operator
$mOperator_BeginsWith :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_BeginsWith = Operator' "BeginsWith"
pattern Operator_Contains :: Operator
pattern $bOperator_Contains :: Operator
$mOperator_Contains :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_Contains = Operator' "Contains"
pattern Operator_Equals :: Operator
pattern $bOperator_Equals :: Operator
$mOperator_Equals :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_Equals = Operator' "Equals"
pattern Operator_GreaterThan :: Operator
pattern $bOperator_GreaterThan :: Operator
$mOperator_GreaterThan :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_GreaterThan = Operator' "GreaterThan"
pattern Operator_GreaterThanOrEqual :: Operator
pattern $bOperator_GreaterThanOrEqual :: Operator
$mOperator_GreaterThanOrEqual :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_GreaterThanOrEqual = Operator' "GreaterThanOrEqual"
pattern Operator_In :: Operator
pattern $bOperator_In :: Operator
$mOperator_In :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_In = Operator' "In"
pattern Operator_LessThan :: Operator
pattern $bOperator_LessThan :: Operator
$mOperator_LessThan :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_LessThan = Operator' "LessThan"
pattern Operator_LessThanOrEqual :: Operator
pattern $bOperator_LessThanOrEqual :: Operator
$mOperator_LessThanOrEqual :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_LessThanOrEqual = Operator' "LessThanOrEqual"
pattern Operator_NotContains :: Operator
pattern $bOperator_NotContains :: Operator
$mOperator_NotContains :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_NotContains = Operator' "NotContains"
pattern Operator_NotEquals :: Operator
pattern $bOperator_NotEquals :: Operator
$mOperator_NotEquals :: forall r. Operator -> (Void# -> r) -> (Void# -> r) -> r
Operator_NotEquals = Operator' "NotEquals"
{-# COMPLETE
Operator_BeginsWith,
Operator_Contains,
Operator_Equals,
Operator_GreaterThan,
Operator_GreaterThanOrEqual,
Operator_In,
Operator_LessThan,
Operator_LessThanOrEqual,
Operator_NotContains,
Operator_NotEquals,
Operator'
#-}