{-# 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.ChimeSDKMessaging.Types.SearchFieldKey
-- 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.ChimeSDKMessaging.Types.SearchFieldKey
  ( SearchFieldKey
      ( ..,
        SearchFieldKey_MEMBERS
      ),
  )
where

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

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

pattern SearchFieldKey_MEMBERS :: SearchFieldKey
pattern $bSearchFieldKey_MEMBERS :: SearchFieldKey
$mSearchFieldKey_MEMBERS :: forall {r}. SearchFieldKey -> ((# #) -> r) -> ((# #) -> r) -> r
SearchFieldKey_MEMBERS = SearchFieldKey' "MEMBERS"

{-# COMPLETE
  SearchFieldKey_MEMBERS,
  SearchFieldKey'
  #-}