// 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;
import java.util.List;
import java.util.Map;

/** 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;

    /** Creates an instance of AvroDataset class. */
    public AvroDataset() {}

    /**
     * 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;
    }

    /** {@inheritDoc} */
    @Override
    public AvroDataset setDescription(String description) {
        super.setDescription(description);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AvroDataset setStructure(Object structure) {
        super.setStructure(structure);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AvroDataset setSchema(Object schema) {
        super.setSchema(schema);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AvroDataset setLinkedServiceName(LinkedServiceReference linkedServiceName) {
        super.setLinkedServiceName(linkedServiceName);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AvroDataset setParameters(Map<String, ParameterSpecification> parameters) {
        super.setParameters(parameters);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AvroDataset setAnnotations(List<Object> annotations) {
        super.setAnnotations(annotations);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AvroDataset setFolder(DatasetFolder folder) {
        super.setFolder(folder);
        return this;
    }
}
