{-# 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.SSM.Types.OpsItemEventFilterOperator
-- 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.SSM.Types.OpsItemEventFilterOperator
  ( OpsItemEventFilterOperator
      ( ..,
        OpsItemEventFilterOperator_Equal
      ),
  )
where

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

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

pattern OpsItemEventFilterOperator_Equal :: OpsItemEventFilterOperator
pattern $bOpsItemEventFilterOperator_Equal :: OpsItemEventFilterOperator
$mOpsItemEventFilterOperator_Equal :: forall {r}.
OpsItemEventFilterOperator -> ((# #) -> r) -> ((# #) -> r) -> r
OpsItemEventFilterOperator_Equal = OpsItemEventFilterOperator' "Equal"

{-# COMPLETE
  OpsItemEventFilterOperator_Equal,
  OpsItemEventFilterOperator'
  #-}