{-# 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.MacieV2.Types.JobComparator
-- 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.MacieV2.Types.JobComparator
  ( JobComparator
      ( ..,
        JobComparator_CONTAINS,
        JobComparator_EQ,
        JobComparator_GT,
        JobComparator_GTE,
        JobComparator_LT,
        JobComparator_LTE,
        JobComparator_NE,
        JobComparator_STARTS_WITH
      ),
  )
where

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

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

pattern JobComparator_CONTAINS :: JobComparator
pattern $bJobComparator_CONTAINS :: JobComparator
$mJobComparator_CONTAINS :: forall r. JobComparator -> (Void# -> r) -> (Void# -> r) -> r
JobComparator_CONTAINS = JobComparator' "CONTAINS"

pattern JobComparator_EQ :: JobComparator
pattern $bJobComparator_EQ :: JobComparator
$mJobComparator_EQ :: forall r. JobComparator -> (Void# -> r) -> (Void# -> r) -> r
JobComparator_EQ = JobComparator' "EQ"

pattern JobComparator_GT :: JobComparator
pattern $bJobComparator_GT :: JobComparator
$mJobComparator_GT :: forall r. JobComparator -> (Void# -> r) -> (Void# -> r) -> r
JobComparator_GT = JobComparator' "GT"

pattern JobComparator_GTE :: JobComparator
pattern $bJobComparator_GTE :: JobComparator
$mJobComparator_GTE :: forall r. JobComparator -> (Void# -> r) -> (Void# -> r) -> r
JobComparator_GTE = JobComparator' "GTE"

pattern JobComparator_LT :: JobComparator
pattern $bJobComparator_LT :: JobComparator
$mJobComparator_LT :: forall r. JobComparator -> (Void# -> r) -> (Void# -> r) -> r
JobComparator_LT = JobComparator' "LT"

pattern JobComparator_LTE :: JobComparator
pattern $bJobComparator_LTE :: JobComparator
$mJobComparator_LTE :: forall r. JobComparator -> (Void# -> r) -> (Void# -> r) -> r
JobComparator_LTE = JobComparator' "LTE"

pattern JobComparator_NE :: JobComparator
pattern $bJobComparator_NE :: JobComparator
$mJobComparator_NE :: forall r. JobComparator -> (Void# -> r) -> (Void# -> r) -> r
JobComparator_NE = JobComparator' "NE"

pattern JobComparator_STARTS_WITH :: JobComparator
pattern $bJobComparator_STARTS_WITH :: JobComparator
$mJobComparator_STARTS_WITH :: forall r. JobComparator -> (Void# -> r) -> (Void# -> r) -> r
JobComparator_STARTS_WITH = JobComparator' "STARTS_WITH"

{-# COMPLETE
  JobComparator_CONTAINS,
  JobComparator_EQ,
  JobComparator_GT,
  JobComparator_GTE,
  JobComparator_LT,
  JobComparator_LTE,
  JobComparator_NE,
  JobComparator_STARTS_WITH,
  JobComparator'
  #-}