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

package com.azure.resourcemanager.elasticsan.models;

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

/** Data source used when creating the volume. */
@Fluent
public final class SourceCreationData {
    /*
     * This enumerates the possible sources of a volume creation.
     */
    @JsonProperty(value = "createSource")
    private VolumeCreateOption createSource;

    /*
     * If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is
     * the ARM-like id of the source disk restore point.
     */
    @JsonProperty(value = "sourceUri")
    private String sourceUri;

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

    /**
     * Get the createSource property: This enumerates the possible sources of a volume creation.
     *
     * @return the createSource value.
     */
    public VolumeCreateOption createSource() {
        return this.createSource;
    }

    /**
     * Set the createSource property: This enumerates the possible sources of a volume creation.
     *
     * @param createSource the createSource value to set.
     * @return the SourceCreationData object itself.
     */
    public SourceCreationData withCreateSource(VolumeCreateOption createSource) {
        this.createSource = createSource;
        return this;
    }

    /**
     * Get the sourceUri property: If createOption is Copy, this is the ARM id of the source snapshot or disk. If
     * createOption is Restore, this is the ARM-like id of the source disk restore point.
     *
     * @return the sourceUri value.
     */
    public String sourceUri() {
        return this.sourceUri;
    }

    /**
     * Set the sourceUri property: If createOption is Copy, this is the ARM id of the source snapshot or disk. If
     * createOption is Restore, this is the ARM-like id of the source disk restore point.
     *
     * @param sourceUri the sourceUri value to set.
     * @return the SourceCreationData object itself.
     */
    public SourceCreationData withSourceUri(String sourceUri) {
        this.sourceUri = sourceUri;
        return this;
    }

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