PostgreSqlOutputDataSource Class

public final class PostgreSqlOutputDataSource
extends OutputDataSource

Describes a PostgreSQL output data source.

Constructor Summary

Constructor Description
PostgreSqlOutputDataSource()

Creates an instance of PostgreSqlOutputDataSource class.

Method Summary

Modifier and Type Method and Description
AuthenticationMode authenticationMode()

Get the authenticationMode property: Authentication Mode.

String database()

Get the database property: The name of the Azure SQL database.

static PostgreSqlOutputDataSource fromJson(JsonReader jsonReader)

Reads an instance of PostgreSqlOutputDataSource from the JsonReader.

Float maxWriterCount()

Get the maxWriterCount property: Max Writer count, currently only 1(single writer) and 0(based on query partition) are available.

String password()

Get the password property: The password that will be used to connect to the Azure SQL database.

String server()

Get the server property: The name of the SQL server containing the Azure SQL database.

String table()

Get the table property: The name of the table in the Azure SQL database.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Indicates the type of data source output will be written to.

String user()

Get the user property: The user name that will be used to connect to the Azure SQL database.

void validate()

Validates the instance.

PostgreSqlOutputDataSource withAuthenticationMode(AuthenticationMode authenticationMode)

Set the authenticationMode property: Authentication Mode.

PostgreSqlOutputDataSource withDatabase(String database)

Set the database property: The name of the Azure SQL database.

PostgreSqlOutputDataSource withMaxWriterCount(Float maxWriterCount)

Set the maxWriterCount property: Max Writer count, currently only 1(single writer) and 0(based on query partition) are available.

PostgreSqlOutputDataSource withPassword(String password)

Set the password property: The password that will be used to connect to the Azure SQL database.

PostgreSqlOutputDataSource withServer(String server)

Set the server property: The name of the SQL server containing the Azure SQL database.

PostgreSqlOutputDataSource withTable(String table)

Set the table property: The name of the table in the Azure SQL database.

PostgreSqlOutputDataSource withUser(String user)

Set the user property: The user name that will be used to connect to the Azure SQL database.

Methods inherited from OutputDataSource

Methods inherited from java.lang.Object

Constructor Details

PostgreSqlOutputDataSource

public PostgreSqlOutputDataSource()

Creates an instance of PostgreSqlOutputDataSource class.

Method Details

authenticationMode

public AuthenticationMode authenticationMode()

Get the authenticationMode property: Authentication Mode.

Returns:

the authenticationMode value.

database

public String database()

Get the database property: The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.

Returns:

the database value.

fromJson

public static PostgreSqlOutputDataSource fromJson(JsonReader jsonReader)

Reads an instance of PostgreSqlOutputDataSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PostgreSqlOutputDataSource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the PostgreSqlOutputDataSource.

maxWriterCount

public Float maxWriterCount()

Get the maxWriterCount property: Max Writer count, currently only 1(single writer) and 0(based on query partition) are available. Optional on PUT requests.

Returns:

the maxWriterCount value.

password

public String password()

Get the password property: The password that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.

Returns:

the password value.

server

public String server()

Get the server property: The name of the SQL server containing the Azure SQL database. Required on PUT (CreateOrReplace) requests.

Returns:

the server value.

table

public String table()

Get the table property: The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests.

Returns:

the table value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PostgreSqlOutputDataSource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.

Overrides:

PostgreSqlOutputDataSource.type()

Returns:

the type value.

user

public String user()

Get the user property: The user name that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.

Returns:

the user value.

validate

public void validate()

Validates the instance.

Overrides:

PostgreSqlOutputDataSource.validate()

withAuthenticationMode

public PostgreSqlOutputDataSource withAuthenticationMode(AuthenticationMode authenticationMode)

Set the authenticationMode property: Authentication Mode.

Parameters:

authenticationMode - the authenticationMode value to set.

Returns:

the PostgreSqlOutputDataSource object itself.

withDatabase

public PostgreSqlOutputDataSource withDatabase(String database)

Set the database property: The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.

Parameters:

database - the database value to set.

Returns:

the PostgreSqlOutputDataSource object itself.

withMaxWriterCount

public PostgreSqlOutputDataSource withMaxWriterCount(Float maxWriterCount)

Set the maxWriterCount property: Max Writer count, currently only 1(single writer) and 0(based on query partition) are available. Optional on PUT requests.

Parameters:

maxWriterCount - the maxWriterCount value to set.

Returns:

the PostgreSqlOutputDataSource object itself.

withPassword

public PostgreSqlOutputDataSource withPassword(String password)

Set the password property: The password that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.

Parameters:

password - the password value to set.

Returns:

the PostgreSqlOutputDataSource object itself.

withServer

public PostgreSqlOutputDataSource withServer(String server)

Set the server property: The name of the SQL server containing the Azure SQL database. Required on PUT (CreateOrReplace) requests.

Parameters:

server - the server value to set.

Returns:

the PostgreSqlOutputDataSource object itself.

withTable

public PostgreSqlOutputDataSource withTable(String table)

Set the table property: The name of the table in the Azure SQL database. Required on PUT (CreateOrReplace) requests.

Parameters:

table - the table value to set.

Returns:

the PostgreSqlOutputDataSource object itself.

withUser

public PostgreSqlOutputDataSource withUser(String user)

Set the user property: The user name that will be used to connect to the Azure SQL database. Required on PUT (CreateOrReplace) requests.

Parameters:

user - the user value to set.

Returns:

the PostgreSqlOutputDataSource object itself.

Applies to