{-# 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.Pinpoint.Types.Operator
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Pinpoint.Types.Operator
  ( Operator
      ( ..,
        Operator_ALL,
        Operator_ANY
      ),
  )
where

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

newtype Operator = Operator'
  { Operator -> Text
fromOperator ::
      Data.Text
  }
  deriving stock
    ( Int -> Operator -> ShowS
[Operator] -> ShowS
Operator -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq Operator
Int -> Operator -> Int
Operator -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: Operator -> ()
$crnf :: Operator -> ()
Prelude.NFData,
      Text -> Either String Operator
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Operator
$cfromText :: Text -> Either String Operator
Data.FromText,
      Operator -> Text
forall a. (a -> Text) -> ToText a
toText :: Operator -> Text
$ctoText :: Operator -> Text
Data.ToText,
      Operator -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: Operator -> ByteString
$ctoBS :: Operator -> ByteString
Data.ToByteString,
      Operator -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Operator -> ByteStringBuilder
$cbuild :: Operator -> ByteStringBuilder
Data.ToLog,
      HeaderName -> Operator -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Operator -> [Header]
$ctoHeader :: HeaderName -> Operator -> [Header]
Data.ToHeader,
      Operator -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Operator -> QueryString
$ctoQuery :: Operator -> QueryString
Data.ToQuery,
      Value -> Parser [Operator]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [Operator]
FromJSONKeyFunction Operator
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Operator]
$cfromJSONKeyList :: FromJSONKeyFunction [Operator]
fromJSONKey :: FromJSONKeyFunction Operator
$cfromJSONKey :: FromJSONKeyFunction Operator
Data.FromJSONKey,
      [Operator] -> Encoding
[Operator] -> Value
Operator -> Encoding
Operator -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [Operator]
ToJSONKeyFunction Operator
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Operator]
$ctoJSONKeyList :: ToJSONKeyFunction [Operator]
toJSONKey :: ToJSONKeyFunction Operator
$ctoJSONKey :: ToJSONKeyFunction Operator
Data.ToJSONKey,
      [Node] -> Either String Operator
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Operator
$cparseXML :: [Node] -> Either String Operator
Data.FromXML,
      Operator -> XML
forall a. (a -> XML) -> ToXML a
toXML :: Operator -> XML
$ctoXML :: Operator -> XML
Data.ToXML
    )

pattern Operator_ALL :: Operator
pattern $bOperator_ALL :: Operator
$mOperator_ALL :: forall {r}. Operator -> ((# #) -> r) -> ((# #) -> r) -> r
Operator_ALL = Operator' "ALL"

pattern Operator_ANY :: Operator
pattern $bOperator_ANY :: Operator
$mOperator_ANY :: forall {r}. Operator -> ((# #) -> r) -> ((# #) -> r) -> r
Operator_ANY = Operator' "ANY"

{-# COMPLETE
  Operator_ALL,
  Operator_ANY,
  Operator'
  #-}