AvroDataset.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;
/** Avro dataset. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("Avro")
@JsonFlatten
@Fluent
public class AvroDataset extends Dataset {
/*
* The location of the avro storage.
*/
@JsonProperty(value = "typeProperties.location")
private DatasetLocation location;
/*
* A string from AvroCompressionCodecEnum or an expression
*/
@JsonProperty(value = "typeProperties.avroCompressionCodec")
private Object avroCompressionCodec;
/*
* The avroCompressionLevel property.
*/
@JsonProperty(value = "typeProperties.avroCompressionLevel")
private Integer avroCompressionLevel;
/**
* Get the location property: The location of the avro storage.
*
* @return the location value.
*/
public DatasetLocation getLocation() {
return this.location;
}
/**
* Set the location property: The location of the avro storage.
*
* @param location the location value to set.
* @return the AvroDataset object itself.
*/
public AvroDataset setLocation(DatasetLocation location) {
this.location = location;
return this;
}
/**
* Get the avroCompressionCodec property: A string from AvroCompressionCodecEnum or an expression.
*
* @return the avroCompressionCodec value.
*/
public Object getAvroCompressionCodec() {
return this.avroCompressionCodec;
}
/**
* Set the avroCompressionCodec property: A string from AvroCompressionCodecEnum or an expression.
*
* @param avroCompressionCodec the avroCompressionCodec value to set.
* @return the AvroDataset object itself.
*/
public AvroDataset setAvroCompressionCodec(Object avroCompressionCodec) {
this.avroCompressionCodec = avroCompressionCodec;
return this;
}
/**
* Get the avroCompressionLevel property: The avroCompressionLevel property.
*
* @return the avroCompressionLevel value.
*/
public Integer getAvroCompressionLevel() {
return this.avroCompressionLevel;
}
/**
* Set the avroCompressionLevel property: The avroCompressionLevel property.
*
* @param avroCompressionLevel the avroCompressionLevel value to set.
* @return the AvroDataset object itself.
*/
public AvroDataset setAvroCompressionLevel(Integer avroCompressionLevel) {
this.avroCompressionLevel = avroCompressionLevel;
return this;
}
}