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

package com.azure.storage.file.share.implementation.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;

/** Parameter group. */
@JacksonXmlRootElement(localName = "SourceLeaseAccessConditions")
@Fluent
public final class SourceLeaseAccessConditions {
    /*
     * Required if the source file has an active infinite lease.
     */
    @JsonProperty(value = "sourceLeaseId")
    private String sourceLeaseId;

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

    /**
     * Get the sourceLeaseId property: Required if the source file has an active infinite lease.
     *
     * @return the sourceLeaseId value.
     */
    public String getSourceLeaseId() {
        return this.sourceLeaseId;
    }

    /**
     * Set the sourceLeaseId property: Required if the source file has an active infinite lease.
     *
     * @param sourceLeaseId the sourceLeaseId value to set.
     * @return the SourceLeaseAccessConditions object itself.
     */
    public SourceLeaseAccessConditions setSourceLeaseId(String sourceLeaseId) {
        this.sourceLeaseId = sourceLeaseId;
        return this;
    }
}
