{-# 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.DocumentAttributeValueType
-- 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.DocumentAttributeValueType
  ( DocumentAttributeValueType
      ( ..,
        DocumentAttributeValueType_DATE_VALUE,
        DocumentAttributeValueType_LONG_VALUE,
        DocumentAttributeValueType_STRING_LIST_VALUE,
        DocumentAttributeValueType_STRING_VALUE
      ),
  )
where

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

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

pattern DocumentAttributeValueType_DATE_VALUE :: DocumentAttributeValueType
pattern $bDocumentAttributeValueType_DATE_VALUE :: DocumentAttributeValueType
$mDocumentAttributeValueType_DATE_VALUE :: forall {r}.
DocumentAttributeValueType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentAttributeValueType_DATE_VALUE = DocumentAttributeValueType' "DATE_VALUE"

pattern DocumentAttributeValueType_LONG_VALUE :: DocumentAttributeValueType
pattern $bDocumentAttributeValueType_LONG_VALUE :: DocumentAttributeValueType
$mDocumentAttributeValueType_LONG_VALUE :: forall {r}.
DocumentAttributeValueType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentAttributeValueType_LONG_VALUE = DocumentAttributeValueType' "LONG_VALUE"

pattern DocumentAttributeValueType_STRING_LIST_VALUE :: DocumentAttributeValueType
pattern $bDocumentAttributeValueType_STRING_LIST_VALUE :: DocumentAttributeValueType
$mDocumentAttributeValueType_STRING_LIST_VALUE :: forall {r}.
DocumentAttributeValueType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentAttributeValueType_STRING_LIST_VALUE = DocumentAttributeValueType' "STRING_LIST_VALUE"

pattern DocumentAttributeValueType_STRING_VALUE :: DocumentAttributeValueType
pattern $bDocumentAttributeValueType_STRING_VALUE :: DocumentAttributeValueType
$mDocumentAttributeValueType_STRING_VALUE :: forall {r}.
DocumentAttributeValueType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentAttributeValueType_STRING_VALUE = DocumentAttributeValueType' "STRING_VALUE"

{-# COMPLETE
  DocumentAttributeValueType_DATE_VALUE,
  DocumentAttributeValueType_LONG_VALUE,
  DocumentAttributeValueType_STRING_LIST_VALUE,
  DocumentAttributeValueType_STRING_VALUE,
  DocumentAttributeValueType'
  #-}