Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.compute; import com.fasterxml.jackson.annotation.JsonProperty;
The source image used for creating the disk.
/** * The source image used for creating the disk. */
public class ImageDiskReference {
A relative uri containing either a Platform Image Repository or user image reference.
/** * A relative uri containing either a Platform Image Repository or user * image reference. */
@JsonProperty(value = "id", required = true) private String id;
If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
/** * If the disk is created from an image's data disk, this is an index that * indicates which of the data disks in the image to use. For OS disks, * this field is null. */
@JsonProperty(value = "lun") private Integer lun;
Get a relative uri containing either a Platform Image Repository or user image reference.
Returns:the id value
/** * Get a relative uri containing either a Platform Image Repository or user image reference. * * @return the id value */
public String id() { return this.id; }
Set a relative uri containing either a Platform Image Repository or user image reference.
Params:
  • id – the id value to set
Returns:the ImageDiskReference object itself.
/** * Set a relative uri containing either a Platform Image Repository or user image reference. * * @param id the id value to set * @return the ImageDiskReference object itself. */
public ImageDiskReference withId(String id) { this.id = id; return this; }
Get if the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
Returns:the lun value
/** * Get if the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null. * * @return the lun value */
public Integer lun() { return this.lun; }
Set if the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
Params:
  • lun – the lun value to set
Returns:the ImageDiskReference object itself.
/** * Set if the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null. * * @param lun the lun value to set * @return the ImageDiskReference object itself. */
public ImageDiskReference withLun(Integer lun) { this.lun = lun; return this; } }