{-# 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.DataBrew.Types.DatabaseOutputMode
-- 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.DataBrew.Types.DatabaseOutputMode
  ( DatabaseOutputMode
      ( ..,
        DatabaseOutputMode_NEW_TABLE
      ),
  )
where

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

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

pattern DatabaseOutputMode_NEW_TABLE :: DatabaseOutputMode
pattern $bDatabaseOutputMode_NEW_TABLE :: DatabaseOutputMode
$mDatabaseOutputMode_NEW_TABLE :: forall r. DatabaseOutputMode -> (Void# -> r) -> (Void# -> r) -> r
DatabaseOutputMode_NEW_TABLE = DatabaseOutputMode' "NEW_TABLE"

{-# COMPLETE
  DatabaseOutputMode_NEW_TABLE,
  DatabaseOutputMode'
  #-}