{-# 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.Connect.Types.Comparison
-- 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.Connect.Types.Comparison
  ( Comparison
      ( ..,
        Comparison_LT
      ),
  )
where

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

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

pattern Comparison_LT :: Comparison
pattern $bComparison_LT :: Comparison
$mComparison_LT :: forall r. Comparison -> (Void# -> r) -> (Void# -> r) -> r
Comparison_LT = Comparison' "LT"

{-# COMPLETE
  Comparison_LT,
  Comparison'
  #-}