CreationData Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. CreationData
- com.
Implements
public final class CreationData
implements JsonSerializable<CreationData>
Data used when creating a disk.
Constructor Summary
Constructor | Description |
---|---|
CreationData() |
Creates an instance of Creation |
Method Summary
Modifier and Type | Method and Description |
---|---|
Disk |
createOption()
Get the create |
String |
elasticSanResourceId()
Get the elastic |
static
Creation |
fromJson(JsonReader jsonReader)
Reads an instance of Creation |
Image |
galleryImageReference()
Get the gallery |
Image |
imageReference()
Get the image |
Integer |
logicalSectorSize()
Get the logical |
Boolean |
performancePlus()
Get the performance |
Provisioned |
provisionedBandwidthCopySpeed()
Get the provisioned |
String |
securityDataUri()
Get the security |
String |
sourceResourceId()
Get the source |
String |
sourceUniqueId()
Get the source |
String |
sourceUri()
Get the source |
String |
storageAccountId()
Get the storage |
Json |
toJson(JsonWriter jsonWriter) |
Long |
uploadSizeBytes()
Get the upload |
void |
validate()
Validates the instance. |
Creation |
withCreateOption(DiskCreateOption createOption)
Set the create |
Creation |
withElasticSanResourceId(String elasticSanResourceId)
Set the elastic |
Creation |
withGalleryImageReference(ImageDiskReference galleryImageReference)
Set the gallery |
Creation |
withImageReference(ImageDiskReference imageReference)
Set the image |
Creation |
withLogicalSectorSize(Integer logicalSectorSize)
Set the logical |
Creation |
withPerformancePlus(Boolean performancePlus)
Set the performance |
Creation |
withProvisionedBandwidthCopySpeed(ProvisionedBandwidthCopyOption provisionedBandwidthCopySpeed)
Set the provisioned |
Creation |
withSecurityDataUri(String securityDataUri)
Set the security |
Creation |
withSourceResourceId(String sourceResourceId)
Set the source |
Creation |
withSourceUri(String sourceUri)
Set the source |
Creation |
withStorageAccountId(String storageAccountId)
Set the storage |
Creation |
withUploadSizeBytes(Long uploadSizeBytes)
Set the upload |
Methods inherited from java.lang.Object
Constructor Details
CreationData
public CreationData()
Creates an instance of CreationData class.
Method Details
createOption
public DiskCreateOption createOption()
Get the createOption property: This enumerates the possible sources of a disk's creation.
Returns:
elasticSanResourceId
public String elasticSanResourceId()
Get the elasticSanResourceId property: Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot.
Returns:
fromJson
public static CreationData fromJson(JsonReader jsonReader)
Reads an instance of CreationData from the JsonReader.
Parameters:
Returns:
Throws:
galleryImageReference
public ImageDiskReference galleryImageReference()
Get the galleryImageReference property: Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.
Returns:
imageReference
public ImageDiskReference imageReference()
Get the imageReference property: Disk source information for PIR or user images.
Returns:
logicalSectorSize
public Integer logicalSectorSize()
Get the logicalSectorSize property: Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
Returns:
performancePlus
public Boolean performancePlus()
Get the performancePlus property: Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled.
Returns:
provisionedBandwidthCopySpeed
public ProvisionedBandwidthCopyOption provisionedBandwidthCopySpeed()
Get the provisionedBandwidthCopySpeed property: If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.
Returns:
securityDataUri
public String securityDataUri()
Get the securityDataUri property: If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.
Returns:
sourceResourceId
public String sourceResourceId()
Get the sourceResourceId property: If createOption is Copy, this is the ARM id of the source snapshot or disk.
Returns:
sourceUniqueId
public String sourceUniqueId()
Get the sourceUniqueId property: If this field is set, this is the unique id identifying the source of this resource.
Returns:
sourceUri
public String sourceUri()
Get the sourceUri property: If createOption is Import, this is the URI of a blob to be imported into a managed disk.
Returns:
storageAccountId
public String storageAccountId()
Get the storageAccountId property: Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
Returns:
toJson
uploadSizeBytes
public Long uploadSizeBytes()
Get the uploadSizeBytes property: If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
Returns:
validate
public void validate()
Validates the instance.
withCreateOption
public CreationData withCreateOption(DiskCreateOption createOption)
Set the createOption property: This enumerates the possible sources of a disk's creation.
Parameters:
Returns:
withElasticSanResourceId
public CreationData withElasticSanResourceId(String elasticSanResourceId)
Set the elasticSanResourceId property: Required if createOption is CopyFromSanSnapshot. This is the ARM id of the source elastic san volume snapshot.
Parameters:
Returns:
withGalleryImageReference
public CreationData withGalleryImageReference(ImageDiskReference galleryImageReference)
Set the galleryImageReference property: Required if creating from a Gallery Image. The id/sharedGalleryImageId/communityGalleryImageId of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.
Parameters:
Returns:
withImageReference
public CreationData withImageReference(ImageDiskReference imageReference)
Set the imageReference property: Disk source information for PIR or user images.
Parameters:
Returns:
withLogicalSectorSize
public CreationData withLogicalSectorSize(Integer logicalSectorSize)
Set the logicalSectorSize property: Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
Parameters:
Returns:
withPerformancePlus
public CreationData withPerformancePlus(Boolean performancePlus)
Set the performancePlus property: Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled.
Parameters:
Returns:
withProvisionedBandwidthCopySpeed
public CreationData withProvisionedBandwidthCopySpeed(ProvisionedBandwidthCopyOption provisionedBandwidthCopySpeed)
Set the provisionedBandwidthCopySpeed property: If this field is set on a snapshot and createOption is CopyStart, the snapshot will be copied at a quicker speed.
Parameters:
Returns:
withSecurityDataUri
public CreationData withSecurityDataUri(String securityDataUri)
Set the securityDataUri property: If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state.
Parameters:
Returns:
withSourceResourceId
public CreationData withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: If createOption is Copy, this is the ARM id of the source snapshot or disk.
Parameters:
Returns:
withSourceUri
public 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.
Parameters:
Returns:
withStorageAccountId
public CreationData withStorageAccountId(String storageAccountId)
Set the storageAccountId property: Required if createOption is Import. The Azure Resource Manager identifier of the storage account containing the blob to import as a disk.
Parameters:
Returns:
withUploadSizeBytes
public 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. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
Parameters:
Returns:
Applies to
Azure SDK for Java