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

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

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

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

{-# COMPLETE
  OpsItemEventFilterOperator_Equal,
  OpsItemEventFilterOperator'
  #-}