{-# 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.Kendra.Types.QueryResultFormat
-- 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.Kendra.Types.QueryResultFormat
  ( QueryResultFormat
      ( ..,
        QueryResultFormat_TABLE,
        QueryResultFormat_TEXT
      ),
  )
where

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

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

pattern QueryResultFormat_TABLE :: QueryResultFormat
pattern $bQueryResultFormat_TABLE :: QueryResultFormat
$mQueryResultFormat_TABLE :: forall {r}. QueryResultFormat -> ((# #) -> r) -> ((# #) -> r) -> r
QueryResultFormat_TABLE = QueryResultFormat' "TABLE"

pattern QueryResultFormat_TEXT :: QueryResultFormat
pattern $bQueryResultFormat_TEXT :: QueryResultFormat
$mQueryResultFormat_TEXT :: forall {r}. QueryResultFormat -> ((# #) -> r) -> ((# #) -> r) -> r
QueryResultFormat_TEXT = QueryResultFormat' "TEXT"

{-# COMPLETE
  QueryResultFormat_TABLE,
  QueryResultFormat_TEXT,
  QueryResultFormat'
  #-}