{-# 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.OpsFilterOperatorType
-- 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.OpsFilterOperatorType
  ( OpsFilterOperatorType
      ( ..,
        OpsFilterOperatorType_BeginWith,
        OpsFilterOperatorType_Equal,
        OpsFilterOperatorType_Exists,
        OpsFilterOperatorType_GreaterThan,
        OpsFilterOperatorType_LessThan,
        OpsFilterOperatorType_NotEqual
      ),
  )
where

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

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

pattern OpsFilterOperatorType_BeginWith :: OpsFilterOperatorType
pattern $bOpsFilterOperatorType_BeginWith :: OpsFilterOperatorType
$mOpsFilterOperatorType_BeginWith :: forall {r}.
OpsFilterOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
OpsFilterOperatorType_BeginWith = OpsFilterOperatorType' "BeginWith"

pattern OpsFilterOperatorType_Equal :: OpsFilterOperatorType
pattern $bOpsFilterOperatorType_Equal :: OpsFilterOperatorType
$mOpsFilterOperatorType_Equal :: forall {r}.
OpsFilterOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
OpsFilterOperatorType_Equal = OpsFilterOperatorType' "Equal"

pattern OpsFilterOperatorType_Exists :: OpsFilterOperatorType
pattern $bOpsFilterOperatorType_Exists :: OpsFilterOperatorType
$mOpsFilterOperatorType_Exists :: forall {r}.
OpsFilterOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
OpsFilterOperatorType_Exists = OpsFilterOperatorType' "Exists"

pattern OpsFilterOperatorType_GreaterThan :: OpsFilterOperatorType
pattern $bOpsFilterOperatorType_GreaterThan :: OpsFilterOperatorType
$mOpsFilterOperatorType_GreaterThan :: forall {r}.
OpsFilterOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
OpsFilterOperatorType_GreaterThan = OpsFilterOperatorType' "GreaterThan"

pattern OpsFilterOperatorType_LessThan :: OpsFilterOperatorType
pattern $bOpsFilterOperatorType_LessThan :: OpsFilterOperatorType
$mOpsFilterOperatorType_LessThan :: forall {r}.
OpsFilterOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
OpsFilterOperatorType_LessThan = OpsFilterOperatorType' "LessThan"

pattern OpsFilterOperatorType_NotEqual :: OpsFilterOperatorType
pattern $bOpsFilterOperatorType_NotEqual :: OpsFilterOperatorType
$mOpsFilterOperatorType_NotEqual :: forall {r}.
OpsFilterOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
OpsFilterOperatorType_NotEqual = OpsFilterOperatorType' "NotEqual"

{-# COMPLETE
  OpsFilterOperatorType_BeginWith,
  OpsFilterOperatorType_Equal,
  OpsFilterOperatorType_Exists,
  OpsFilterOperatorType_GreaterThan,
  OpsFilterOperatorType_LessThan,
  OpsFilterOperatorType_NotEqual,
  OpsFilterOperatorType'
  #-}