// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.machinelearningservices.models;

import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.List;

/** The configuration for a Spark environment. */
@Immutable
public final class ModelEnvironmentDefinitionSpark extends ModelSparkSection {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(ModelEnvironmentDefinitionSpark.class);

    /** {@inheritDoc} */
    @Override
    public ModelEnvironmentDefinitionSpark withRepositories(List<String> repositories) {
        super.withRepositories(repositories);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public ModelEnvironmentDefinitionSpark withPackages(List<SparkMavenPackage> packages) {
        super.withPackages(packages);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public ModelEnvironmentDefinitionSpark withPrecachePackages(Boolean precachePackages) {
        super.withPrecachePackages(precachePackages);
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}
