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

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

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

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

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

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

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

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

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

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