{-# 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.LongReturnType
-- 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.LongReturnType
  ( LongReturnType
      ( ..,
        LongReturnType_LONG,
        LongReturnType_STRING
      ),
  )
where

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

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

pattern LongReturnType_LONG :: LongReturnType
pattern $bLongReturnType_LONG :: LongReturnType
$mLongReturnType_LONG :: forall {r}. LongReturnType -> ((# #) -> r) -> ((# #) -> r) -> r
LongReturnType_LONG = LongReturnType' "LONG"

pattern LongReturnType_STRING :: LongReturnType
pattern $bLongReturnType_STRING :: LongReturnType
$mLongReturnType_STRING :: forall {r}. LongReturnType -> ((# #) -> r) -> ((# #) -> r) -> r
LongReturnType_STRING = LongReturnType' "STRING"

{-# COMPLETE
  LongReturnType_LONG,
  LongReturnType_STRING,
  LongReturnType'
  #-}