// 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.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The EnvironmentReference model. */
@Fluent
public class EnvironmentReference {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(EnvironmentReference.class);

    /*
     * Name of the environment.
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * Version of the environment.
     */
    @JsonProperty(value = "version")
    private String version;

    /**
     * Get the name property: Name of the environment.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: Name of the environment.
     *
     * @param name the name value to set.
     * @return the EnvironmentReference object itself.
     */
    public EnvironmentReference withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the version property: Version of the environment.
     *
     * @return the version value.
     */
    public String version() {
        return this.version;
    }

    /**
     * Set the version property: Version of the environment.
     *
     * @param version the version value to set.
     * @return the EnvironmentReference object itself.
     */
    public EnvironmentReference withVersion(String version) {
        this.version = version;
        return this;
    }

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