{-# 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.RDSData.Types.TypeHint
-- 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.RDSData.Types.TypeHint
  ( TypeHint
      ( ..,
        TypeHint_DATE,
        TypeHint_DECIMAL,
        TypeHint_JSON,
        TypeHint_TIME,
        TypeHint_TIMESTAMP,
        TypeHint_UUID
      ),
  )
where

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

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

pattern TypeHint_DATE :: TypeHint
pattern $bTypeHint_DATE :: TypeHint
$mTypeHint_DATE :: forall {r}. TypeHint -> ((# #) -> r) -> ((# #) -> r) -> r
TypeHint_DATE = TypeHint' "DATE"

pattern TypeHint_DECIMAL :: TypeHint
pattern $bTypeHint_DECIMAL :: TypeHint
$mTypeHint_DECIMAL :: forall {r}. TypeHint -> ((# #) -> r) -> ((# #) -> r) -> r
TypeHint_DECIMAL = TypeHint' "DECIMAL"

pattern TypeHint_JSON :: TypeHint
pattern $bTypeHint_JSON :: TypeHint
$mTypeHint_JSON :: forall {r}. TypeHint -> ((# #) -> r) -> ((# #) -> r) -> r
TypeHint_JSON = TypeHint' "JSON"

pattern TypeHint_TIME :: TypeHint
pattern $bTypeHint_TIME :: TypeHint
$mTypeHint_TIME :: forall {r}. TypeHint -> ((# #) -> r) -> ((# #) -> r) -> r
TypeHint_TIME = TypeHint' "TIME"

pattern TypeHint_TIMESTAMP :: TypeHint
pattern $bTypeHint_TIMESTAMP :: TypeHint
$mTypeHint_TIMESTAMP :: forall {r}. TypeHint -> ((# #) -> r) -> ((# #) -> r) -> r
TypeHint_TIMESTAMP = TypeHint' "TIMESTAMP"

pattern TypeHint_UUID :: TypeHint
pattern $bTypeHint_UUID :: TypeHint
$mTypeHint_UUID :: forall {r}. TypeHint -> ((# #) -> r) -> ((# #) -> r) -> r
TypeHint_UUID = TypeHint' "UUID"

{-# COMPLETE
  TypeHint_DATE,
  TypeHint_DECIMAL,
  TypeHint_JSON,
  TypeHint_TIME,
  TypeHint_TIMESTAMP,
  TypeHint_UUID,
  TypeHint'
  #-}