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

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

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

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

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

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

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

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

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

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