{-# 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.SearchResourcesComparator
-- 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.SearchResourcesComparator
  ( SearchResourcesComparator
      ( ..,
        SearchResourcesComparator_EQ,
        SearchResourcesComparator_NE
      ),
  )
where

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

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

pattern SearchResourcesComparator_EQ :: SearchResourcesComparator
pattern $bSearchResourcesComparator_EQ :: SearchResourcesComparator
$mSearchResourcesComparator_EQ :: forall r.
SearchResourcesComparator -> (Void# -> r) -> (Void# -> r) -> r
SearchResourcesComparator_EQ = SearchResourcesComparator' "EQ"

pattern SearchResourcesComparator_NE :: SearchResourcesComparator
pattern $bSearchResourcesComparator_NE :: SearchResourcesComparator
$mSearchResourcesComparator_NE :: forall r.
SearchResourcesComparator -> (Void# -> r) -> (Void# -> r) -> r
SearchResourcesComparator_NE = SearchResourcesComparator' "NE"

{-# COMPLETE
  SearchResourcesComparator_EQ,
  SearchResourcesComparator_NE,
  SearchResourcesComparator'
  #-}