{-# 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.RDS.Types.ExportSourceType
-- 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.RDS.Types.ExportSourceType
  ( ExportSourceType
      ( ..,
        ExportSourceType_CLUSTER,
        ExportSourceType_SNAPSHOT
      ),
  )
where

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

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

pattern ExportSourceType_CLUSTER :: ExportSourceType
pattern $bExportSourceType_CLUSTER :: ExportSourceType
$mExportSourceType_CLUSTER :: forall {r}. ExportSourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ExportSourceType_CLUSTER = ExportSourceType' "CLUSTER"

pattern ExportSourceType_SNAPSHOT :: ExportSourceType
pattern $bExportSourceType_SNAPSHOT :: ExportSourceType
$mExportSourceType_SNAPSHOT :: forall {r}. ExportSourceType -> ((# #) -> r) -> ((# #) -> r) -> r
ExportSourceType_SNAPSHOT = ExportSourceType' "SNAPSHOT"

{-# COMPLETE
  ExportSourceType_CLUSTER,
  ExportSourceType_SNAPSHOT,
  ExportSourceType'
  #-}