{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype TypeHint = TypeHint'
  { TypeHint -> Text
fromTypeHint ::
      Core.Text
  }
  deriving stock
    ( Int -> TypeHint -> ShowS
[TypeHint] -> ShowS
TypeHint -> String
(Int -> TypeHint -> ShowS)
-> (TypeHint -> String) -> ([TypeHint] -> ShowS) -> Show TypeHint
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]
(Int -> ReadS TypeHint)
-> ReadS [TypeHint]
-> ReadPrec TypeHint
-> ReadPrec [TypeHint]
-> Read 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
(TypeHint -> TypeHint -> Bool)
-> (TypeHint -> TypeHint -> Bool) -> Eq TypeHint
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
Eq TypeHint
-> (TypeHint -> TypeHint -> Ordering)
-> (TypeHint -> TypeHint -> Bool)
-> (TypeHint -> TypeHint -> Bool)
-> (TypeHint -> TypeHint -> Bool)
-> (TypeHint -> TypeHint -> Bool)
-> (TypeHint -> TypeHint -> TypeHint)
-> (TypeHint -> TypeHint -> TypeHint)
-> Ord 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
$cp1Ord :: Eq TypeHint
Prelude.Ord,
      (forall x. TypeHint -> Rep TypeHint x)
-> (forall x. Rep TypeHint x -> TypeHint) -> Generic TypeHint
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
    ( Int -> TypeHint -> Int
TypeHint -> Int
(Int -> TypeHint -> Int) -> (TypeHint -> Int) -> Hashable TypeHint
forall 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 -> ()
(TypeHint -> ()) -> NFData TypeHint
forall a. (a -> ()) -> NFData a
rnf :: TypeHint -> ()
$crnf :: TypeHint -> ()
Prelude.NFData,
      Text -> Either String TypeHint
(Text -> Either String TypeHint) -> FromText TypeHint
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TypeHint
$cfromText :: Text -> Either String TypeHint
Core.FromText,
      TypeHint -> Text
(TypeHint -> Text) -> ToText TypeHint
forall a. (a -> Text) -> ToText a
toText :: TypeHint -> Text
$ctoText :: TypeHint -> Text
Core.ToText,
      TypeHint -> ByteString
(TypeHint -> ByteString) -> ToByteString TypeHint
forall a. (a -> ByteString) -> ToByteString a
toBS :: TypeHint -> ByteString
$ctoBS :: TypeHint -> ByteString
Core.ToByteString,
      TypeHint -> ByteStringBuilder
(TypeHint -> ByteStringBuilder) -> ToLog TypeHint
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TypeHint -> ByteStringBuilder
$cbuild :: TypeHint -> ByteStringBuilder
Core.ToLog,
      HeaderName -> TypeHint -> [Header]
(HeaderName -> TypeHint -> [Header]) -> ToHeader TypeHint
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TypeHint -> [Header]
$ctoHeader :: HeaderName -> TypeHint -> [Header]
Core.ToHeader,
      TypeHint -> QueryString
(TypeHint -> QueryString) -> ToQuery TypeHint
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TypeHint -> QueryString
$ctoQuery :: TypeHint -> QueryString
Core.ToQuery,
      Value -> Parser [TypeHint]
Value -> Parser TypeHint
(Value -> Parser TypeHint)
-> (Value -> Parser [TypeHint]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [TypeHint]
FromJSONKeyFunction TypeHint
FromJSONKeyFunction TypeHint
-> FromJSONKeyFunction [TypeHint] -> FromJSONKey TypeHint
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TypeHint]
$cfromJSONKeyList :: FromJSONKeyFunction [TypeHint]
fromJSONKey :: FromJSONKeyFunction TypeHint
$cfromJSONKey :: FromJSONKeyFunction TypeHint
Core.FromJSONKey,
      [TypeHint] -> Encoding
[TypeHint] -> Value
TypeHint -> Encoding
TypeHint -> Value
(TypeHint -> Value)
-> (TypeHint -> Encoding)
-> ([TypeHint] -> Value)
-> ([TypeHint] -> Encoding)
-> ToJSON TypeHint
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
Core.ToJSON,
      ToJSONKeyFunction [TypeHint]
ToJSONKeyFunction TypeHint
ToJSONKeyFunction TypeHint
-> ToJSONKeyFunction [TypeHint] -> ToJSONKey TypeHint
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TypeHint]
$ctoJSONKeyList :: ToJSONKeyFunction [TypeHint]
toJSONKey :: ToJSONKeyFunction TypeHint
$ctoJSONKey :: ToJSONKeyFunction TypeHint
Core.ToJSONKey,
      [Node] -> Either String TypeHint
([Node] -> Either String TypeHint) -> FromXML TypeHint
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TypeHint
$cparseXML :: [Node] -> Either String TypeHint
Core.FromXML,
      TypeHint -> XML
(TypeHint -> XML) -> ToXML TypeHint
forall a. (a -> XML) -> ToXML a
toXML :: TypeHint -> XML
$ctoXML :: TypeHint -> XML
Core.ToXML
    )

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

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

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

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

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

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

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