// 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 VnetConfiguration model. */
@Fluent
public class VnetConfiguration {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(VnetConfiguration.class);

    /*
     * The name of the virtual network.
     */
    @JsonProperty(value = "vnetName")
    private String vnetName;

    /*
     * The name of the virtual network subnet.
     */
    @JsonProperty(value = "subnetName")
    private String subnetName;

    /**
     * Get the vnetName property: The name of the virtual network.
     *
     * @return the vnetName value.
     */
    public String vnetName() {
        return this.vnetName;
    }

    /**
     * Set the vnetName property: The name of the virtual network.
     *
     * @param vnetName the vnetName value to set.
     * @return the VnetConfiguration object itself.
     */
    public VnetConfiguration withVnetName(String vnetName) {
        this.vnetName = vnetName;
        return this;
    }

    /**
     * Get the subnetName property: The name of the virtual network subnet.
     *
     * @return the subnetName value.
     */
    public String subnetName() {
        return this.subnetName;
    }

    /**
     * Set the subnetName property: The name of the virtual network subnet.
     *
     * @param subnetName the subnetName value to set.
     * @return the VnetConfiguration object itself.
     */
    public VnetConfiguration withSubnetName(String subnetName) {
        this.subnetName = subnetName;
        return this;
    }

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