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 java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
Describes a virtual machine scale set storage profile.
/**
* Describes a virtual machine scale set storage profile.
*/
public class VirtualMachineScaleSetStorageProfile {
Specifies information about the image to use. You can specify
information about platform images, marketplace images, or virtual
machine images. This element is required when you want to use a platform
image, marketplace image, or virtual machine image, but is not used in
other creation operations.
/**
* Specifies information about the image to use. You can specify
* information about platform images, marketplace images, or virtual
* machine images. This element is required when you want to use a platform
* image, marketplace image, or virtual machine image, but is not used in
* other creation operations.
*/
@JsonProperty(value = "imageReference")
private ImageReference imageReference;
Specifies information about the operating system disk used by the
virtual machines in the scale set. <br><br> For more
information about disks, see [About disks and VHDs for Azure virtual
machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
/**
* Specifies information about the operating system disk used by the
* virtual machines in the scale set. <br><br> For more
* information about disks, see [About disks and VHDs for Azure virtual
* machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
*/
@JsonProperty(value = "osDisk")
private VirtualMachineScaleSetOSDisk osDisk;
Specifies the parameters that are used to add data disks to the virtual
machines in the scale set. <br><br> For more information
about disks, see [About disks and VHDs for Azure virtual
machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
/**
* Specifies the parameters that are used to add data disks to the virtual
* machines in the scale set. <br><br> For more information
* about disks, see [About disks and VHDs for Azure virtual
* machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
*/
@JsonProperty(value = "dataDisks")
private List<VirtualMachineScaleSetDataDisk> dataDisks;
Get specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.
Returns: the imageReference value
/**
* Get specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.
*
* @return the imageReference value
*/
public ImageReference imageReference() {
return this.imageReference;
}
Set specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.
Params: - imageReference – the imageReference value to set
Returns: the VirtualMachineScaleSetStorageProfile object itself.
/**
* Set specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.
*
* @param imageReference the imageReference value to set
* @return the VirtualMachineScaleSetStorageProfile object itself.
*/
public VirtualMachineScaleSetStorageProfile withImageReference(ImageReference imageReference) {
this.imageReference = imageReference;
return this;
}
Get specifies information about the operating system disk used by the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
Returns: the osDisk value
/**
* Get specifies information about the operating system disk used by the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
*
* @return the osDisk value
*/
public VirtualMachineScaleSetOSDisk osDisk() {
return this.osDisk;
}
Set specifies information about the operating system disk used by the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
Params: - osDisk – the osDisk value to set
Returns: the VirtualMachineScaleSetStorageProfile object itself.
/**
* Set specifies information about the operating system disk used by the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
*
* @param osDisk the osDisk value to set
* @return the VirtualMachineScaleSetStorageProfile object itself.
*/
public VirtualMachineScaleSetStorageProfile withOsDisk(VirtualMachineScaleSetOSDisk osDisk) {
this.osDisk = osDisk;
return this;
}
Get specifies the parameters that are used to add data disks to the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
Returns: the dataDisks value
/**
* Get specifies the parameters that are used to add data disks to the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
*
* @return the dataDisks value
*/
public List<VirtualMachineScaleSetDataDisk> dataDisks() {
return this.dataDisks;
}
Set specifies the parameters that are used to add data disks to the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
Params: - dataDisks – the dataDisks value to set
Returns: the VirtualMachineScaleSetStorageProfile object itself.
/**
* Set specifies the parameters that are used to add data disks to the virtual machines in the scale set. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
*
* @param dataDisks the dataDisks value to set
* @return the VirtualMachineScaleSetStorageProfile object itself.
*/
public VirtualMachineScaleSetStorageProfile withDataDisks(List<VirtualMachineScaleSetDataDisk> dataDisks) {
this.dataDisks = dataDisks;
return this;
}
}