{-# 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.StringComparisonType
-- 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.Connect.Types.StringComparisonType
  ( StringComparisonType
      ( ..,
        StringComparisonType_CONTAINS,
        StringComparisonType_EXACT,
        StringComparisonType_STARTS_WITH
      ),
  )
where

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

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

pattern StringComparisonType_CONTAINS :: StringComparisonType
pattern $bStringComparisonType_CONTAINS :: StringComparisonType
$mStringComparisonType_CONTAINS :: forall {r}.
StringComparisonType -> ((# #) -> r) -> ((# #) -> r) -> r
StringComparisonType_CONTAINS = StringComparisonType' "CONTAINS"

pattern StringComparisonType_EXACT :: StringComparisonType
pattern $bStringComparisonType_EXACT :: StringComparisonType
$mStringComparisonType_EXACT :: forall {r}.
StringComparisonType -> ((# #) -> r) -> ((# #) -> r) -> r
StringComparisonType_EXACT = StringComparisonType' "EXACT"

pattern StringComparisonType_STARTS_WITH :: StringComparisonType
pattern $bStringComparisonType_STARTS_WITH :: StringComparisonType
$mStringComparisonType_STARTS_WITH :: forall {r}.
StringComparisonType -> ((# #) -> r) -> ((# #) -> r) -> r
StringComparisonType_STARTS_WITH = StringComparisonType' "STARTS_WITH"

{-# COMPLETE
  StringComparisonType_CONTAINS,
  StringComparisonType_EXACT,
  StringComparisonType_STARTS_WITH,
  StringComparisonType'
  #-}