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

package com.azure.resourcemanager.devtestlabs.models;

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

/** Properties of the disk to detach. */
@Fluent
public final class DetachDiskProperties {
    /*
     * The resource ID of the Lab VM to which the disk is attached.
     */
    @JsonProperty(value = "leasedByLabVmId")
    private String leasedByLabVmId;

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

    /**
     * Get the leasedByLabVmId property: The resource ID of the Lab VM to which the disk is attached.
     *
     * @return the leasedByLabVmId value.
     */
    public String leasedByLabVmId() {
        return this.leasedByLabVmId;
    }

    /**
     * Set the leasedByLabVmId property: The resource ID of the Lab VM to which the disk is attached.
     *
     * @param leasedByLabVmId the leasedByLabVmId value to set.
     * @return the DetachDiskProperties object itself.
     */
    public DetachDiskProperties withLeasedByLabVmId(String leasedByLabVmId) {
        this.leasedByLabVmId = leasedByLabVmId;
        return this;
    }

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