{-# 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.Textract.Types.ValueType
-- 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.Textract.Types.ValueType
  ( ValueType
      ( ..,
        ValueType_DATE
      ),
  )
where

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

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

pattern ValueType_DATE :: ValueType
pattern $bValueType_DATE :: ValueType
$mValueType_DATE :: forall {r}. ValueType -> ((# #) -> r) -> ((# #) -> r) -> r
ValueType_DATE = ValueType' "DATE"

{-# COMPLETE
  ValueType_DATE,
  ValueType'
  #-}