{-# 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.DecimalReturnType
-- 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.DecimalReturnType
  ( DecimalReturnType
      ( ..,
        DecimalReturnType_DOUBLE_OR_LONG,
        DecimalReturnType_STRING
      ),
  )
where

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

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

pattern DecimalReturnType_DOUBLE_OR_LONG :: DecimalReturnType
pattern $bDecimalReturnType_DOUBLE_OR_LONG :: DecimalReturnType
$mDecimalReturnType_DOUBLE_OR_LONG :: forall r. DecimalReturnType -> (Void# -> r) -> (Void# -> r) -> r
DecimalReturnType_DOUBLE_OR_LONG = DecimalReturnType' "DOUBLE_OR_LONG"

pattern DecimalReturnType_STRING :: DecimalReturnType
pattern $bDecimalReturnType_STRING :: DecimalReturnType
$mDecimalReturnType_STRING :: forall r. DecimalReturnType -> (Void# -> r) -> (Void# -> r) -> r
DecimalReturnType_STRING = DecimalReturnType' "STRING"

{-# COMPLETE
  DecimalReturnType_DOUBLE_OR_LONG,
  DecimalReturnType_STRING,
  DecimalReturnType'
  #-}