{-# 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.ComplianceQueryOperatorType
-- 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.ComplianceQueryOperatorType
  ( ComplianceQueryOperatorType
      ( ..,
        ComplianceQueryOperatorType_BEGIN_WITH,
        ComplianceQueryOperatorType_EQUAL,
        ComplianceQueryOperatorType_GREATER_THAN,
        ComplianceQueryOperatorType_LESS_THAN,
        ComplianceQueryOperatorType_NOT_EQUAL
      ),
  )
where

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

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

pattern ComplianceQueryOperatorType_BEGIN_WITH :: ComplianceQueryOperatorType
pattern $bComplianceQueryOperatorType_BEGIN_WITH :: ComplianceQueryOperatorType
$mComplianceQueryOperatorType_BEGIN_WITH :: forall {r}.
ComplianceQueryOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
ComplianceQueryOperatorType_BEGIN_WITH = ComplianceQueryOperatorType' "BEGIN_WITH"

pattern ComplianceQueryOperatorType_EQUAL :: ComplianceQueryOperatorType
pattern $bComplianceQueryOperatorType_EQUAL :: ComplianceQueryOperatorType
$mComplianceQueryOperatorType_EQUAL :: forall {r}.
ComplianceQueryOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
ComplianceQueryOperatorType_EQUAL = ComplianceQueryOperatorType' "EQUAL"

pattern ComplianceQueryOperatorType_GREATER_THAN :: ComplianceQueryOperatorType
pattern $bComplianceQueryOperatorType_GREATER_THAN :: ComplianceQueryOperatorType
$mComplianceQueryOperatorType_GREATER_THAN :: forall {r}.
ComplianceQueryOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
ComplianceQueryOperatorType_GREATER_THAN = ComplianceQueryOperatorType' "GREATER_THAN"

pattern ComplianceQueryOperatorType_LESS_THAN :: ComplianceQueryOperatorType
pattern $bComplianceQueryOperatorType_LESS_THAN :: ComplianceQueryOperatorType
$mComplianceQueryOperatorType_LESS_THAN :: forall {r}.
ComplianceQueryOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
ComplianceQueryOperatorType_LESS_THAN = ComplianceQueryOperatorType' "LESS_THAN"

pattern ComplianceQueryOperatorType_NOT_EQUAL :: ComplianceQueryOperatorType
pattern $bComplianceQueryOperatorType_NOT_EQUAL :: ComplianceQueryOperatorType
$mComplianceQueryOperatorType_NOT_EQUAL :: forall {r}.
ComplianceQueryOperatorType -> ((# #) -> r) -> ((# #) -> r) -> r
ComplianceQueryOperatorType_NOT_EQUAL = ComplianceQueryOperatorType' "NOT_EQUAL"

{-# COMPLETE
  ComplianceQueryOperatorType_BEGIN_WITH,
  ComplianceQueryOperatorType_EQUAL,
  ComplianceQueryOperatorType_GREATER_THAN,
  ComplianceQueryOperatorType_LESS_THAN,
  ComplianceQueryOperatorType_NOT_EQUAL,
  ComplianceQueryOperatorType'
  #-}