{-# 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.InventoryQueryOperatorType
-- 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.InventoryQueryOperatorType
  ( InventoryQueryOperatorType
      ( ..,
        InventoryQueryOperatorType_BeginWith,
        InventoryQueryOperatorType_Equal,
        InventoryQueryOperatorType_Exists,
        InventoryQueryOperatorType_GreaterThan,
        InventoryQueryOperatorType_LessThan,
        InventoryQueryOperatorType_NotEqual
      ),
  )
where

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

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

pattern InventoryQueryOperatorType_BeginWith :: InventoryQueryOperatorType
pattern $bInventoryQueryOperatorType_BeginWith :: InventoryQueryOperatorType
$mInventoryQueryOperatorType_BeginWith :: forall {r}.
InventoryQueryOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
InventoryQueryOperatorType_BeginWith = InventoryQueryOperatorType' "BeginWith"

pattern InventoryQueryOperatorType_Equal :: InventoryQueryOperatorType
pattern $bInventoryQueryOperatorType_Equal :: InventoryQueryOperatorType
$mInventoryQueryOperatorType_Equal :: forall {r}.
InventoryQueryOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
InventoryQueryOperatorType_Equal = InventoryQueryOperatorType' "Equal"

pattern InventoryQueryOperatorType_Exists :: InventoryQueryOperatorType
pattern $bInventoryQueryOperatorType_Exists :: InventoryQueryOperatorType
$mInventoryQueryOperatorType_Exists :: forall {r}.
InventoryQueryOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
InventoryQueryOperatorType_Exists = InventoryQueryOperatorType' "Exists"

pattern InventoryQueryOperatorType_GreaterThan :: InventoryQueryOperatorType
pattern $bInventoryQueryOperatorType_GreaterThan :: InventoryQueryOperatorType
$mInventoryQueryOperatorType_GreaterThan :: forall {r}.
InventoryQueryOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
InventoryQueryOperatorType_GreaterThan = InventoryQueryOperatorType' "GreaterThan"

pattern InventoryQueryOperatorType_LessThan :: InventoryQueryOperatorType
pattern $bInventoryQueryOperatorType_LessThan :: InventoryQueryOperatorType
$mInventoryQueryOperatorType_LessThan :: forall {r}.
InventoryQueryOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
InventoryQueryOperatorType_LessThan = InventoryQueryOperatorType' "LessThan"

pattern InventoryQueryOperatorType_NotEqual :: InventoryQueryOperatorType
pattern $bInventoryQueryOperatorType_NotEqual :: InventoryQueryOperatorType
$mInventoryQueryOperatorType_NotEqual :: forall {r}.
InventoryQueryOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
InventoryQueryOperatorType_NotEqual = InventoryQueryOperatorType' "NotEqual"

{-# COMPLETE
  InventoryQueryOperatorType_BeginWith,
  InventoryQueryOperatorType_Equal,
  InventoryQueryOperatorType_Exists,
  InventoryQueryOperatorType_GreaterThan,
  InventoryQueryOperatorType_LessThan,
  InventoryQueryOperatorType_NotEqual,
  InventoryQueryOperatorType'
  #-}