Class SourceCreationData

java.lang.Object
com.azure.resourcemanager.elasticsan.models.SourceCreationData

public final class SourceCreationData extends Object
Data source used when creating the volume.
  • Constructor Details

    • SourceCreationData

      public SourceCreationData()
      Creates an instance of SourceCreationData class.
  • Method Details

    • createSource

      public VolumeCreateOption createSource()
      Get the createSource property: This enumerates the possible sources of a volume creation.
      Returns:
      the createSource value.
    • withCreateSource

      public SourceCreationData withCreateSource(VolumeCreateOption createSource)
      Set the createSource property: This enumerates the possible sources of a volume creation.
      Parameters:
      createSource - the createSource value to set.
      Returns:
      the SourceCreationData object itself.
    • sourceUri

      public String sourceUri()
      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.
      Returns:
      the sourceUri value.
    • withSourceUri

      public SourceCreationData withSourceUri(String 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.
      Parameters:
      sourceUri - the sourceUri value to set.
      Returns:
      the SourceCreationData object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.