{-# 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.ManagedBlockChain.Types.ThresholdComparator
-- 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.ManagedBlockChain.Types.ThresholdComparator
  ( ThresholdComparator
      ( ..,
        ThresholdComparator_GREATER_THAN,
        ThresholdComparator_GREATER_THAN_OR_EQUAL_TO
      ),
  )
where

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

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

pattern ThresholdComparator_GREATER_THAN :: ThresholdComparator
pattern $bThresholdComparator_GREATER_THAN :: ThresholdComparator
$mThresholdComparator_GREATER_THAN :: forall r. ThresholdComparator -> (Void# -> r) -> (Void# -> r) -> r
ThresholdComparator_GREATER_THAN = ThresholdComparator' "GREATER_THAN"

pattern ThresholdComparator_GREATER_THAN_OR_EQUAL_TO :: ThresholdComparator
pattern $bThresholdComparator_GREATER_THAN_OR_EQUAL_TO :: ThresholdComparator
$mThresholdComparator_GREATER_THAN_OR_EQUAL_TO :: forall r. ThresholdComparator -> (Void# -> r) -> (Void# -> r) -> r
ThresholdComparator_GREATER_THAN_OR_EQUAL_TO = ThresholdComparator' "GREATER_THAN_OR_EQUAL_TO"

{-# COMPLETE
  ThresholdComparator_GREATER_THAN,
  ThresholdComparator_GREATER_THAN_OR_EQUAL_TO,
  ThresholdComparator'
  #-}