Class AzureSqlDatabaseDataSourceProperties
- java.lang.Object
-
- com.azure.resourcemanager.streamanalytics.models.AzureSqlDatabaseDataSourceProperties
-
- Direct Known Subclasses:
AzureSqlDatabaseOutputDataSourceProperties
public class AzureSqlDatabaseDataSourceProperties extends Object
The properties that are associated with an Azure SQL database data source.
-
-
Constructor Summary
Constructors Constructor Description AzureSqlDatabaseDataSourceProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationMode
authenticationMode()
Get the authenticationMode property: Authentication Mode.String
database()
Get the database property: The name of the Azure SQL database.Float
maxBatchCount()
Get the maxBatchCount property: Max Batch count for write to Sql database, the default value is 10,000.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.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.AzureSqlDatabaseDataSourceProperties
withAuthenticationMode(AuthenticationMode authenticationMode)
Set the authenticationMode property: Authentication Mode.AzureSqlDatabaseDataSourceProperties
withDatabase(String database)
Set the database property: The name of the Azure SQL database.AzureSqlDatabaseDataSourceProperties
withMaxBatchCount(Float maxBatchCount)
Set the maxBatchCount property: Max Batch count for write to Sql database, the default value is 10,000.AzureSqlDatabaseDataSourceProperties
withMaxWriterCount(Float maxWriterCount)
Set the maxWriterCount property: Max Writer count, currently only 1(single writer) and 0(based on query partition) are available.AzureSqlDatabaseDataSourceProperties
withPassword(String password)
Set the password property: The password that will be used to connect to the Azure SQL database.AzureSqlDatabaseDataSourceProperties
withServer(String server)
Set the server property: The name of the SQL server containing the Azure SQL database.AzureSqlDatabaseDataSourceProperties
withTable(String table)
Set the table property: The name of the table in the Azure SQL database.AzureSqlDatabaseDataSourceProperties
withUser(String user)
Set the user property: The user name that will be used to connect to the Azure SQL database.
-
-
-
Method Detail
-
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.
-
withServer
public AzureSqlDatabaseDataSourceProperties 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 AzureSqlDatabaseDataSourceProperties object itself.
-
database
public String database()
Get the database property: The name of the Azure SQL database. Required on PUT (CreateOrReplace) requests.- Returns:
- the database value.
-
withDatabase
public AzureSqlDatabaseDataSourceProperties 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 AzureSqlDatabaseDataSourceProperties object itself.
-
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.
-
withUser
public AzureSqlDatabaseDataSourceProperties 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 AzureSqlDatabaseDataSourceProperties object itself.
-
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.
-
withPassword
public AzureSqlDatabaseDataSourceProperties 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 AzureSqlDatabaseDataSourceProperties object itself.
-
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.
-
withTable
public AzureSqlDatabaseDataSourceProperties 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 AzureSqlDatabaseDataSourceProperties object itself.
-
maxBatchCount
public Float maxBatchCount()
Get the maxBatchCount property: Max Batch count for write to Sql database, the default value is 10,000. Optional on PUT requests.- Returns:
- the maxBatchCount value.
-
withMaxBatchCount
public AzureSqlDatabaseDataSourceProperties withMaxBatchCount(Float maxBatchCount)
Set the maxBatchCount property: Max Batch count for write to Sql database, the default value is 10,000. Optional on PUT requests.- Parameters:
maxBatchCount
- the maxBatchCount value to set.- Returns:
- the AzureSqlDatabaseDataSourceProperties object itself.
-
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.
-
withMaxWriterCount
public AzureSqlDatabaseDataSourceProperties 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 AzureSqlDatabaseDataSourceProperties object itself.
-
authenticationMode
public AuthenticationMode authenticationMode()
Get the authenticationMode property: Authentication Mode.- Returns:
- the authenticationMode value.
-
withAuthenticationMode
public AzureSqlDatabaseDataSourceProperties withAuthenticationMode(AuthenticationMode authenticationMode)
Set the authenticationMode property: Authentication Mode.- Parameters:
authenticationMode
- the authenticationMode value to set.- Returns:
- the AzureSqlDatabaseDataSourceProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-