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

package com.azure.resourcemanager.recoveryservicesbackup.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Disk information. */
@Fluent
public final class DiskInformation {
    /*
     * The lun property.
     */
    @JsonProperty(value = "lun")
    private Integer lun;

    /*
     * The name property.
     */
    @JsonProperty(value = "name")
    private String name;

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

    /**
     * Get the lun property: The lun property.
     *
     * @return the lun value.
     */
    public Integer lun() {
        return this.lun;
    }

    /**
     * Set the lun property: The lun property.
     *
     * @param lun the lun value to set.
     * @return the DiskInformation object itself.
     */
    public DiskInformation withLun(Integer lun) {
        this.lun = lun;
        return this;
    }

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

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

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