SqlDWSource.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.analytics.synapse.artifacts.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/** A copy activity SQL Data Warehouse source. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("SqlDWSource")
@Fluent
public final class SqlDWSource extends TabularSource {
/*
* SQL Data Warehouse reader query. Type: string (or Expression with
* resultType string).
*/
@JsonProperty(value = "sqlReaderQuery")
private Object sqlReaderQuery;
/*
* Name of the stored procedure for a SQL Data Warehouse source. This
* cannot be used at the same time as SqlReaderQuery. Type: string (or
* Expression with resultType string).
*/
@JsonProperty(value = "sqlReaderStoredProcedureName")
private Object sqlReaderStoredProcedureName;
/*
* Value and type setting for stored procedure parameters. Example:
* "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression
* with resultType object), itemType: StoredProcedureParameter.
*/
@JsonProperty(value = "storedProcedureParameters")
private Object storedProcedureParameters;
/*
* The partition mechanism that will be used for Sql read in parallel.
* Possible values include: "None", "PhysicalPartitionsOfTable",
* "DynamicRange".
*/
@JsonProperty(value = "partitionOption")
private Object partitionOption;
/*
* The settings that will be leveraged for Sql source partitioning.
*/
@JsonProperty(value = "partitionSettings")
private SqlPartitionSettings partitionSettings;
/**
* Get the sqlReaderQuery property: SQL Data Warehouse reader query. Type: string (or Expression with resultType
* string).
*
* @return the sqlReaderQuery value.
*/
public Object getSqlReaderQuery() {
return this.sqlReaderQuery;
}
/**
* Set the sqlReaderQuery property: SQL Data Warehouse reader query. Type: string (or Expression with resultType
* string).
*
* @param sqlReaderQuery the sqlReaderQuery value to set.
* @return the SqlDWSource object itself.
*/
public SqlDWSource setSqlReaderQuery(Object sqlReaderQuery) {
this.sqlReaderQuery = sqlReaderQuery;
return this;
}
/**
* Get the sqlReaderStoredProcedureName property: Name of the stored procedure for a SQL Data Warehouse source. This
* cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string).
*
* @return the sqlReaderStoredProcedureName value.
*/
public Object getSqlReaderStoredProcedureName() {
return this.sqlReaderStoredProcedureName;
}
/**
* Set the sqlReaderStoredProcedureName property: Name of the stored procedure for a SQL Data Warehouse source. This
* cannot be used at the same time as SqlReaderQuery. Type: string (or Expression with resultType string).
*
* @param sqlReaderStoredProcedureName the sqlReaderStoredProcedureName value to set.
* @return the SqlDWSource object itself.
*/
public SqlDWSource setSqlReaderStoredProcedureName(Object sqlReaderStoredProcedureName) {
this.sqlReaderStoredProcedureName = sqlReaderStoredProcedureName;
return this;
}
/**
* Get the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example:
* "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType object), itemType:
* StoredProcedureParameter.
*
* @return the storedProcedureParameters value.
*/
public Object getStoredProcedureParameters() {
return this.storedProcedureParameters;
}
/**
* Set the storedProcedureParameters property: Value and type setting for stored procedure parameters. Example:
* "{Parameter1: {value: "1", type: "int"}}". Type: object (or Expression with resultType object), itemType:
* StoredProcedureParameter.
*
* @param storedProcedureParameters the storedProcedureParameters value to set.
* @return the SqlDWSource object itself.
*/
public SqlDWSource setStoredProcedureParameters(Object storedProcedureParameters) {
this.storedProcedureParameters = storedProcedureParameters;
return this;
}
/**
* Get the partitionOption property: The partition mechanism that will be used for Sql read in parallel. Possible
* values include: "None", "PhysicalPartitionsOfTable", "DynamicRange".
*
* @return the partitionOption value.
*/
public Object getPartitionOption() {
return this.partitionOption;
}
/**
* Set the partitionOption property: The partition mechanism that will be used for Sql read in parallel. Possible
* values include: "None", "PhysicalPartitionsOfTable", "DynamicRange".
*
* @param partitionOption the partitionOption value to set.
* @return the SqlDWSource object itself.
*/
public SqlDWSource setPartitionOption(Object partitionOption) {
this.partitionOption = partitionOption;
return this;
}
/**
* Get the partitionSettings property: The settings that will be leveraged for Sql source partitioning.
*
* @return the partitionSettings value.
*/
public SqlPartitionSettings getPartitionSettings() {
return this.partitionSettings;
}
/**
* Set the partitionSettings property: The settings that will be leveraged for Sql source partitioning.
*
* @param partitionSettings the partitionSettings value to set.
* @return the SqlDWSource object itself.
*/
public SqlDWSource setPartitionSettings(SqlPartitionSettings partitionSettings) {
this.partitionSettings = partitionSettings;
return this;
}
}