{-# 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.InstancePatchStateOperatorType
-- 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.InstancePatchStateOperatorType
  ( InstancePatchStateOperatorType
      ( ..,
        InstancePatchStateOperatorType_Equal,
        InstancePatchStateOperatorType_GreaterThan,
        InstancePatchStateOperatorType_LessThan,
        InstancePatchStateOperatorType_NotEqual
      ),
  )
where

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

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

pattern InstancePatchStateOperatorType_Equal :: InstancePatchStateOperatorType
pattern $bInstancePatchStateOperatorType_Equal :: InstancePatchStateOperatorType
$mInstancePatchStateOperatorType_Equal :: forall {r}.
InstancePatchStateOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
InstancePatchStateOperatorType_Equal = InstancePatchStateOperatorType' "Equal"

pattern InstancePatchStateOperatorType_GreaterThan :: InstancePatchStateOperatorType
pattern $bInstancePatchStateOperatorType_GreaterThan :: InstancePatchStateOperatorType
$mInstancePatchStateOperatorType_GreaterThan :: forall {r}.
InstancePatchStateOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
InstancePatchStateOperatorType_GreaterThan = InstancePatchStateOperatorType' "GreaterThan"

pattern InstancePatchStateOperatorType_LessThan :: InstancePatchStateOperatorType
pattern $bInstancePatchStateOperatorType_LessThan :: InstancePatchStateOperatorType
$mInstancePatchStateOperatorType_LessThan :: forall {r}.
InstancePatchStateOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
InstancePatchStateOperatorType_LessThan = InstancePatchStateOperatorType' "LessThan"

pattern InstancePatchStateOperatorType_NotEqual :: InstancePatchStateOperatorType
pattern $bInstancePatchStateOperatorType_NotEqual :: InstancePatchStateOperatorType
$mInstancePatchStateOperatorType_NotEqual :: forall {r}.
InstancePatchStateOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
InstancePatchStateOperatorType_NotEqual = InstancePatchStateOperatorType' "NotEqual"

{-# COMPLETE
  InstancePatchStateOperatorType_Equal,
  InstancePatchStateOperatorType_GreaterThan,
  InstancePatchStateOperatorType_LessThan,
  InstancePatchStateOperatorType_NotEqual,
  InstancePatchStateOperatorType'
  #-}