DiskInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. devtestlabs. fluent. models. DiskInner
- com.
- com.
public final class DiskInner
extends ProxyResource
A Disk.
Constructor Summary
| Constructor | Description |
|---|---|
| DiskInner() |
Creates an instance of Disk |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Offset |
createdDate()
Get the created |
| String |
diskBlobName()
Get the disk |
| Integer |
diskSizeGiB()
Get the disk |
|
Storage |
diskType()
Get the disk |
| String |
diskUri()
Get the disk |
|
static
Disk |
fromJson(JsonReader jsonReader)
Reads an instance of Disk |
| String |
hostCaching()
Get the host |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
leasedByLabVmId()
Get the leased |
| String |
location()
Get the location property: The geo-location where the resource lives. |
| String |
managedDiskId()
Get the managed |
| String |
name()
Get the name property: The name of the resource. |
| String |
provisioningState()
Get the provisioning |
| String |
storageAccountId()
Get the storage |
|
System |
systemData()
Get the system |
| Map<String,String> |
tags()
Get the tags property: Resource tags. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| String |
uniqueIdentifier()
Get the unique |
|
Disk |
withDiskBlobName(String diskBlobName)
Set the disk |
|
Disk |
withDiskSizeGiB(Integer diskSizeGiB)
Set the disk |
|
Disk |
withDiskType(StorageType diskType)
Set the disk |
|
Disk |
withDiskUri(String diskUri)
Set the disk |
|
Disk |
withHostCaching(String hostCaching)
Set the host |
|
Disk |
withLeasedByLabVmId(String leasedByLabVmId)
Set the leased |
|
Disk |
withLocation(String location)
Set the location property: The geo-location where the resource lives. |
|
Disk |
withManagedDiskId(String managedDiskId)
Set the managed |
|
Disk |
withStorageAccountId(String storageAccountId)
Set the storage |
|
Disk |
withTags(Map<String,String> tags)
Set the tags property: Resource tags. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
DiskInner
public DiskInner()
Creates an instance of DiskInner class.
Method Details
createdDate
public OffsetDateTime createdDate()
Get the createdDate property: The creation date of the disk.
Returns:
diskBlobName
public String diskBlobName()
Get the diskBlobName property: When backed by a blob, the name of the VHD blob without extension.
Returns:
diskSizeGiB
public Integer diskSizeGiB()
Get the diskSizeGiB property: The size of the disk in Gibibytes.
Returns:
diskType
public StorageType diskType()
Get the diskType property: The storage type for the disk (i.e. Standard, Premium).
Returns:
diskUri
public String diskUri()
Get the diskUri property: When backed by a blob, the URI of underlying blob.
Returns:
fromJson
public static DiskInner fromJson(JsonReader jsonReader)
Reads an instance of DiskInner from the JsonReader.
Parameters:
Returns:
Throws:
hostCaching
public String hostCaching()
Get the hostCaching property: The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).
Returns:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
DiskInner.id()Returns:
leasedByLabVmId
public String leasedByLabVmId()
Get the leasedByLabVmId property: The resource ID of the VM to which this disk is leased.
Returns:
location
public String location()
Get the location property: The geo-location where the resource lives.
Returns:
managedDiskId
public String managedDiskId()
Get the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
DiskInner.name()Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning status of the resource.
Returns:
storageAccountId
public String storageAccountId()
Get the storageAccountId property: When backed by a blob, the storage account where the blob is.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
tags
public Map<String,String> tags()
Get the tags property: Resource tags.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DiskInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
DiskInner.type()Returns:
uniqueIdentifier
public String uniqueIdentifier()
Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).
Returns:
withDiskBlobName
public DiskInner withDiskBlobName(String diskBlobName)
Set the diskBlobName property: When backed by a blob, the name of the VHD blob without extension.
Parameters:
Returns:
withDiskSizeGiB
public DiskInner withDiskSizeGiB(Integer diskSizeGiB)
Set the diskSizeGiB property: The size of the disk in Gibibytes.
Parameters:
Returns:
withDiskType
public DiskInner withDiskType(StorageType diskType)
Set the diskType property: The storage type for the disk (i.e. Standard, Premium).
Parameters:
Returns:
withDiskUri
public DiskInner withDiskUri(String diskUri)
Set the diskUri property: When backed by a blob, the URI of underlying blob.
Parameters:
Returns:
withHostCaching
public DiskInner withHostCaching(String hostCaching)
Set the hostCaching property: The host caching policy of the disk (i.e. None, ReadOnly, ReadWrite).
Parameters:
Returns:
withLeasedByLabVmId
public DiskInner withLeasedByLabVmId(String leasedByLabVmId)
Set the leasedByLabVmId property: The resource ID of the VM to which this disk is leased.
Parameters:
Returns:
withLocation
public DiskInner withLocation(String location)
Set the location property: The geo-location where the resource lives.
Parameters:
Returns:
withManagedDiskId
public DiskInner withManagedDiskId(String managedDiskId)
Set the managedDiskId property: When backed by managed disk, this is the ID of the compute disk resource.
Parameters:
Returns:
withStorageAccountId
public DiskInner withStorageAccountId(String storageAccountId)
Set the storageAccountId property: When backed by a blob, the storage account where the blob is.
Parameters:
Returns:
withTags
public DiskInner withTags(Map<String,String> tags)
Set the tags property: Resource tags.
Parameters:
Returns: