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

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

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

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

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

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

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

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