{-# 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.FaqFileFormat
-- 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.FaqFileFormat
  ( FaqFileFormat
      ( ..,
        FaqFileFormat_CSV,
        FaqFileFormat_CSV_WITH_HEADER,
        FaqFileFormat_JSON
      ),
  )
where

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

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

pattern FaqFileFormat_CSV :: FaqFileFormat
pattern $bFaqFileFormat_CSV :: FaqFileFormat
$mFaqFileFormat_CSV :: forall {r}. FaqFileFormat -> ((# #) -> r) -> ((# #) -> r) -> r
FaqFileFormat_CSV = FaqFileFormat' "CSV"

pattern FaqFileFormat_CSV_WITH_HEADER :: FaqFileFormat
pattern $bFaqFileFormat_CSV_WITH_HEADER :: FaqFileFormat
$mFaqFileFormat_CSV_WITH_HEADER :: forall {r}. FaqFileFormat -> ((# #) -> r) -> ((# #) -> r) -> r
FaqFileFormat_CSV_WITH_HEADER = FaqFileFormat' "CSV_WITH_HEADER"

pattern FaqFileFormat_JSON :: FaqFileFormat
pattern $bFaqFileFormat_JSON :: FaqFileFormat
$mFaqFileFormat_JSON :: forall {r}. FaqFileFormat -> ((# #) -> r) -> ((# #) -> r) -> r
FaqFileFormat_JSON = FaqFileFormat' "JSON"

{-# COMPLETE
  FaqFileFormat_CSV,
  FaqFileFormat_CSV_WITH_HEADER,
  FaqFileFormat_JSON,
  FaqFileFormat'
  #-}