ExcelDataset.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.azure.core.annotation.JsonFlatten;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/** Excel dataset. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("Excel")
@JsonFlatten
@Fluent
public class ExcelDataset extends Dataset {
/*
* The location of the excel storage.
*/
@JsonProperty(value = "typeProperties.location")
private DatasetLocation location;
/*
* The sheet of excel file. Type: string (or Expression with resultType
* string).
*/
@JsonProperty(value = "typeProperties.sheetName")
private Object sheetName;
/*
* The partial data of one sheet. Type: string (or Expression with
* resultType string).
*/
@JsonProperty(value = "typeProperties.range")
private Object range;
/*
* When used as input, treat the first row of data as headers. When used as
* output,write the headers into the output as the first row of data. The
* default value is false. Type: boolean (or Expression with resultType
* boolean).
*/
@JsonProperty(value = "typeProperties.firstRowAsHeader")
private Object firstRowAsHeader;
/*
* The data compression method used for the json dataset.
*/
@JsonProperty(value = "typeProperties.compression")
private DatasetCompression compression;
/*
* The null value string. Type: string (or Expression with resultType
* string).
*/
@JsonProperty(value = "typeProperties.nullValue")
private Object nullValue;
/**
* Get the location property: The location of the excel storage.
*
* @return the location value.
*/
public DatasetLocation getLocation() {
return this.location;
}
/**
* Set the location property: The location of the excel storage.
*
* @param location the location value to set.
* @return the ExcelDataset object itself.
*/
public ExcelDataset setLocation(DatasetLocation location) {
this.location = location;
return this;
}
/**
* Get the sheetName property: The sheet of excel file. Type: string (or Expression with resultType string).
*
* @return the sheetName value.
*/
public Object getSheetName() {
return this.sheetName;
}
/**
* Set the sheetName property: The sheet of excel file. Type: string (or Expression with resultType string).
*
* @param sheetName the sheetName value to set.
* @return the ExcelDataset object itself.
*/
public ExcelDataset setSheetName(Object sheetName) {
this.sheetName = sheetName;
return this;
}
/**
* Get the range property: The partial data of one sheet. Type: string (or Expression with resultType string).
*
* @return the range value.
*/
public Object getRange() {
return this.range;
}
/**
* Set the range property: The partial data of one sheet. Type: string (or Expression with resultType string).
*
* @param range the range value to set.
* @return the ExcelDataset object itself.
*/
public ExcelDataset setRange(Object range) {
this.range = range;
return this;
}
/**
* Get the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as
* output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or
* Expression with resultType boolean).
*
* @return the firstRowAsHeader value.
*/
public Object getFirstRowAsHeader() {
return this.firstRowAsHeader;
}
/**
* Set the firstRowAsHeader property: When used as input, treat the first row of data as headers. When used as
* output,write the headers into the output as the first row of data. The default value is false. Type: boolean (or
* Expression with resultType boolean).
*
* @param firstRowAsHeader the firstRowAsHeader value to set.
* @return the ExcelDataset object itself.
*/
public ExcelDataset setFirstRowAsHeader(Object firstRowAsHeader) {
this.firstRowAsHeader = firstRowAsHeader;
return this;
}
/**
* Get the compression property: The data compression method used for the json dataset.
*
* @return the compression value.
*/
public DatasetCompression getCompression() {
return this.compression;
}
/**
* Set the compression property: The data compression method used for the json dataset.
*
* @param compression the compression value to set.
* @return the ExcelDataset object itself.
*/
public ExcelDataset setCompression(DatasetCompression compression) {
this.compression = compression;
return this;
}
/**
* Get the nullValue property: The null value string. Type: string (or Expression with resultType string).
*
* @return the nullValue value.
*/
public Object getNullValue() {
return this.nullValue;
}
/**
* Set the nullValue property: The null value string. Type: string (or Expression with resultType string).
*
* @param nullValue the nullValue value to set.
* @return the ExcelDataset object itself.
*/
public ExcelDataset setNullValue(Object nullValue) {
this.nullValue = nullValue;
return this;
}
}