public final class CreationData extends Object
Constructor and Description |
---|
CreationData() |
Modifier and Type | Method and Description |
---|---|
DiskCreateOption |
createOption()
Get the createOption property: This enumerates the possible sources of a disk's creation.
|
ImageDiskReference |
galleryImageReference()
Get the galleryImageReference property: Required if creating from a Gallery Image.
|
ImageDiskReference |
imageReference()
Get the imageReference property: Disk source information.
|
String |
sourceResourceId()
Get the sourceResourceId property: If createOption is Copy, this is the ARM id of the source snapshot or disk.
|
String |
sourceUniqueId()
Get the sourceUniqueId property: If this field is set, this is the unique id identifying the source of this
resource.
|
String |
sourceUri()
Get the sourceUri property: If createOption is Import, this is the URI of a blob to be imported into a managed
disk.
|
String |
storageAccountId()
Get the storageAccountId property: Required if createOption is Import.
|
Long |
uploadSizeBytes()
Get the uploadSizeBytes property: If createOption is Upload, this is the size of the contents of the upload
including the VHD footer.
|
void |
validate()
Validates the instance.
|
CreationData |
withCreateOption(DiskCreateOption createOption)
Set the createOption property: This enumerates the possible sources of a disk's creation.
|
CreationData |
withGalleryImageReference(ImageDiskReference galleryImageReference)
Set the galleryImageReference property: Required if creating from a Gallery Image.
|
CreationData |
withImageReference(ImageDiskReference imageReference)
Set the imageReference property: Disk source information.
|
CreationData |
withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: If createOption is Copy, this is the ARM id of the source snapshot or disk.
|
CreationData |
withSourceUri(String sourceUri)
Set the sourceUri property: If createOption is Import, this is the URI of a blob to be imported into a managed
disk.
|
CreationData |
withStorageAccountId(String storageAccountId)
Set the storageAccountId property: Required if createOption is Import.
|
CreationData |
withUploadSizeBytes(Long uploadSizeBytes)
Set the uploadSizeBytes property: If createOption is Upload, this is the size of the contents of the upload
including the VHD footer.
|
public DiskCreateOption createOption()
public CreationData withCreateOption(DiskCreateOption createOption)
createOption
- the createOption value to set.public String storageAccountId()
public CreationData withStorageAccountId(String storageAccountId)
storageAccountId
- the storageAccountId value to set.public ImageDiskReference imageReference()
public CreationData withImageReference(ImageDiskReference imageReference)
imageReference
- the imageReference value to set.public ImageDiskReference galleryImageReference()
public CreationData withGalleryImageReference(ImageDiskReference galleryImageReference)
galleryImageReference
- the galleryImageReference value to set.public String sourceUri()
public CreationData withSourceUri(String sourceUri)
sourceUri
- the sourceUri value to set.public String sourceResourceId()
public CreationData withSourceResourceId(String sourceResourceId)
sourceResourceId
- the sourceResourceId value to set.public String sourceUniqueId()
public Long uploadSizeBytes()
public CreationData withUploadSizeBytes(Long uploadSizeBytes)
uploadSizeBytes
- the uploadSizeBytes value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.