Class SourceCreationData
java.lang.Object
com.azure.resourcemanager.elasticsan.models.SourceCreationData
Data source used when creating the volume.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the createSource property: This enumerates the possible sources of a volume creation.Get the sourceUri property: If createOption is Copy, this is the ARM id of the source snapshot or disk.void
validate()
Validates the instance.withCreateSource
(VolumeCreateOption createSource) Set the createSource property: This enumerates the possible sources of a volume creation.withSourceUri
(String sourceUri) Set the sourceUri property: If createOption is Copy, this is the ARM id of the source snapshot or disk.
-
Constructor Details
-
SourceCreationData
public SourceCreationData()Creates an instance of SourceCreationData class.
-
-
Method Details
-
createSource
Get the createSource property: This enumerates the possible sources of a volume creation.- Returns:
- the createSource value.
-
withCreateSource
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
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
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.
-