{-# 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.SSMSAP.Types.DatabaseType
-- 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.SSMSAP.Types.DatabaseType
  ( DatabaseType
      ( ..,
        DatabaseType_SYSTEM,
        DatabaseType_TENANT
      ),
  )
where

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

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

pattern DatabaseType_SYSTEM :: DatabaseType
pattern $bDatabaseType_SYSTEM :: DatabaseType
$mDatabaseType_SYSTEM :: forall {r}. DatabaseType -> ((# #) -> r) -> ((# #) -> r) -> r
DatabaseType_SYSTEM = DatabaseType' "SYSTEM"

pattern DatabaseType_TENANT :: DatabaseType
pattern $bDatabaseType_TENANT :: DatabaseType
$mDatabaseType_TENANT :: forall {r}. DatabaseType -> ((# #) -> r) -> ((# #) -> r) -> r
DatabaseType_TENANT = DatabaseType' "TENANT"

{-# COMPLETE
  DatabaseType_SYSTEM,
  DatabaseType_TENANT,
  DatabaseType'
  #-}