All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.azurefleet.outputs.VirtualMachineScaleSetDataDiskResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.azurefleet.outputs;

import com.pulumi.azurenative.azurefleet.outputs.VirtualMachineScaleSetManagedDiskParametersResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class VirtualMachineScaleSetDataDiskResponse {
    /**
     * @return Specifies the caching requirements. Possible values are: **None,**
     * **ReadOnly,** **ReadWrite.** The default values are: **None for Standard
     * storage. ReadOnly for Premium storage.**
     * 
     */
    private @Nullable String caching;
    /**
     * @return The create option.
     * 
     */
    private String createOption;
    /**
     * @return Specifies whether data disk should be deleted or detached upon VMSS Flex
     * deletion (This feature is available for VMSS with Flexible OrchestrationMode
     * only).<br><br> Possible values: <br><br> **Delete** If this value is used, the
     * data disk is deleted when the VMSS Flex VM is deleted.<br><br> **Detach** If
     * this value is used, the data disk is retained after VMSS Flex VM is
     * deleted.<br><br> The default value is set to **Delete**.
     * 
     */
    private @Nullable String deleteOption;
    /**
     * @return Specifies the Read-Write IOPS for the managed disk. Should be used only when
     * StorageAccountType is UltraSSD_LRS. If not specified, a default value would be
     * assigned based on diskSizeGB.
     * 
     */
    private @Nullable Double diskIOPSReadWrite;
    /**
     * @return Specifies the bandwidth in MB per second for the managed disk. Should be used
     * only when StorageAccountType is UltraSSD_LRS. If not specified, a default value
     * would be assigned based on diskSizeGB.
     * 
     */
    private @Nullable Double diskMBpsReadWrite;
    /**
     * @return Specifies the size of an empty data disk in gigabytes. This element can be used
     * to overwrite the size of the disk in a virtual machine image. The property
     * diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be
     * larger than 1023.
     * 
     */
    private @Nullable Integer diskSizeGB;
    /**
     * @return Specifies the logical unit number of the data disk. This value is used to
     * identify data disks within the VM and therefore must be unique for each data
     * disk attached to a VM.
     * 
     */
    private Integer lun;
    /**
     * @return The managed disk parameters.
     * 
     */
    private @Nullable VirtualMachineScaleSetManagedDiskParametersResponse managedDisk;
    /**
     * @return The disk name.
     * 
     */
    private @Nullable String name;
    /**
     * @return Specifies whether writeAccelerator should be enabled or disabled on the disk.
     * 
     */
    private @Nullable Boolean writeAcceleratorEnabled;

    private VirtualMachineScaleSetDataDiskResponse() {}
    /**
     * @return Specifies the caching requirements. Possible values are: **None,**
     * **ReadOnly,** **ReadWrite.** The default values are: **None for Standard
     * storage. ReadOnly for Premium storage.**
     * 
     */
    public Optional caching() {
        return Optional.ofNullable(this.caching);
    }
    /**
     * @return The create option.
     * 
     */
    public String createOption() {
        return this.createOption;
    }
    /**
     * @return Specifies whether data disk should be deleted or detached upon VMSS Flex
     * deletion (This feature is available for VMSS with Flexible OrchestrationMode
     * only).<br><br> Possible values: <br><br> **Delete** If this value is used, the
     * data disk is deleted when the VMSS Flex VM is deleted.<br><br> **Detach** If
     * this value is used, the data disk is retained after VMSS Flex VM is
     * deleted.<br><br> The default value is set to **Delete**.
     * 
     */
    public Optional deleteOption() {
        return Optional.ofNullable(this.deleteOption);
    }
    /**
     * @return Specifies the Read-Write IOPS for the managed disk. Should be used only when
     * StorageAccountType is UltraSSD_LRS. If not specified, a default value would be
     * assigned based on diskSizeGB.
     * 
     */
    public Optional diskIOPSReadWrite() {
        return Optional.ofNullable(this.diskIOPSReadWrite);
    }
    /**
     * @return Specifies the bandwidth in MB per second for the managed disk. Should be used
     * only when StorageAccountType is UltraSSD_LRS. If not specified, a default value
     * would be assigned based on diskSizeGB.
     * 
     */
    public Optional diskMBpsReadWrite() {
        return Optional.ofNullable(this.diskMBpsReadWrite);
    }
    /**
     * @return Specifies the size of an empty data disk in gigabytes. This element can be used
     * to overwrite the size of the disk in a virtual machine image. The property
     * diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be
     * larger than 1023.
     * 
     */
    public Optional diskSizeGB() {
        return Optional.ofNullable(this.diskSizeGB);
    }
    /**
     * @return Specifies the logical unit number of the data disk. This value is used to
     * identify data disks within the VM and therefore must be unique for each data
     * disk attached to a VM.
     * 
     */
    public Integer lun() {
        return this.lun;
    }
    /**
     * @return The managed disk parameters.
     * 
     */
    public Optional managedDisk() {
        return Optional.ofNullable(this.managedDisk);
    }
    /**
     * @return The disk name.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return Specifies whether writeAccelerator should be enabled or disabled on the disk.
     * 
     */
    public Optional writeAcceleratorEnabled() {
        return Optional.ofNullable(this.writeAcceleratorEnabled);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(VirtualMachineScaleSetDataDiskResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String caching;
        private String createOption;
        private @Nullable String deleteOption;
        private @Nullable Double diskIOPSReadWrite;
        private @Nullable Double diskMBpsReadWrite;
        private @Nullable Integer diskSizeGB;
        private Integer lun;
        private @Nullable VirtualMachineScaleSetManagedDiskParametersResponse managedDisk;
        private @Nullable String name;
        private @Nullable Boolean writeAcceleratorEnabled;
        public Builder() {}
        public Builder(VirtualMachineScaleSetDataDiskResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.caching = defaults.caching;
    	      this.createOption = defaults.createOption;
    	      this.deleteOption = defaults.deleteOption;
    	      this.diskIOPSReadWrite = defaults.diskIOPSReadWrite;
    	      this.diskMBpsReadWrite = defaults.diskMBpsReadWrite;
    	      this.diskSizeGB = defaults.diskSizeGB;
    	      this.lun = defaults.lun;
    	      this.managedDisk = defaults.managedDisk;
    	      this.name = defaults.name;
    	      this.writeAcceleratorEnabled = defaults.writeAcceleratorEnabled;
        }

        @CustomType.Setter
        public Builder caching(@Nullable String caching) {

            this.caching = caching;
            return this;
        }
        @CustomType.Setter
        public Builder createOption(String createOption) {
            if (createOption == null) {
              throw new MissingRequiredPropertyException("VirtualMachineScaleSetDataDiskResponse", "createOption");
            }
            this.createOption = createOption;
            return this;
        }
        @CustomType.Setter
        public Builder deleteOption(@Nullable String deleteOption) {

            this.deleteOption = deleteOption;
            return this;
        }
        @CustomType.Setter
        public Builder diskIOPSReadWrite(@Nullable Double diskIOPSReadWrite) {

            this.diskIOPSReadWrite = diskIOPSReadWrite;
            return this;
        }
        @CustomType.Setter
        public Builder diskMBpsReadWrite(@Nullable Double diskMBpsReadWrite) {

            this.diskMBpsReadWrite = diskMBpsReadWrite;
            return this;
        }
        @CustomType.Setter
        public Builder diskSizeGB(@Nullable Integer diskSizeGB) {

            this.diskSizeGB = diskSizeGB;
            return this;
        }
        @CustomType.Setter
        public Builder lun(Integer lun) {
            if (lun == null) {
              throw new MissingRequiredPropertyException("VirtualMachineScaleSetDataDiskResponse", "lun");
            }
            this.lun = lun;
            return this;
        }
        @CustomType.Setter
        public Builder managedDisk(@Nullable VirtualMachineScaleSetManagedDiskParametersResponse managedDisk) {

            this.managedDisk = managedDisk;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder writeAcceleratorEnabled(@Nullable Boolean writeAcceleratorEnabled) {

            this.writeAcceleratorEnabled = writeAcceleratorEnabled;
            return this;
        }
        public VirtualMachineScaleSetDataDiskResponse build() {
            final var _resultValue = new VirtualMachineScaleSetDataDiskResponse();
            _resultValue.caching = caching;
            _resultValue.createOption = createOption;
            _resultValue.deleteOption = deleteOption;
            _resultValue.diskIOPSReadWrite = diskIOPSReadWrite;
            _resultValue.diskMBpsReadWrite = diskMBpsReadWrite;
            _resultValue.diskSizeGB = diskSizeGB;
            _resultValue.lun = lun;
            _resultValue.managedDisk = managedDisk;
            _resultValue.name = name;
            _resultValue.writeAcceleratorEnabled = writeAcceleratorEnabled;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy