{-# 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.EngineFamily
-- 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.RDS.Types.EngineFamily
  ( EngineFamily
      ( ..,
        EngineFamily_MYSQL,
        EngineFamily_POSTGRESQL
      ),
  )
where

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

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

pattern EngineFamily_MYSQL :: EngineFamily
pattern $bEngineFamily_MYSQL :: EngineFamily
$mEngineFamily_MYSQL :: forall r. EngineFamily -> (Void# -> r) -> (Void# -> r) -> r
EngineFamily_MYSQL = EngineFamily' "MYSQL"

pattern EngineFamily_POSTGRESQL :: EngineFamily
pattern $bEngineFamily_POSTGRESQL :: EngineFamily
$mEngineFamily_POSTGRESQL :: forall r. EngineFamily -> (Void# -> r) -> (Void# -> r) -> r
EngineFamily_POSTGRESQL = EngineFamily' "POSTGRESQL"

{-# COMPLETE
  EngineFamily_MYSQL,
  EngineFamily_POSTGRESQL,
  EngineFamily'
  #-}