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

com.pulumi.azure.compute.outputs.OrchestratedVirtualMachineScaleSetOsDisk Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.compute.outputs;

import com.pulumi.azure.compute.outputs.OrchestratedVirtualMachineScaleSetOsDiskDiffDiskSettings;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class OrchestratedVirtualMachineScaleSetOsDisk {
    /**
     * @return The Type of Caching which should be used for the Internal OS Disk. Possible values are `None`, `ReadOnly` and `ReadWrite`.
     * 
     */
    private String caching;
    /**
     * @return A `diff_disk_settings` block as defined above. Changing this forces a new resource to be created.
     * 
     */
    private @Nullable OrchestratedVirtualMachineScaleSetOsDiskDiffDiskSettings diffDiskSettings;
    /**
     * @return The ID of the Disk Encryption Set which should be used to encrypt this OS Disk. Changing this forces a new resource to be created.
     * 
     * > **Note:** Disk Encryption Sets are in Public Preview in a limited set of regions
     * 
     */
    private @Nullable String diskEncryptionSetId;
    /**
     * @return The Size of the Internal OS Disk in GB, if you wish to vary from the size used in the image this Virtual Machine Scale Set is sourced from.
     * 
     */
    private @Nullable Integer diskSizeGb;
    /**
     * @return The Type of Storage Account which should back this the Internal OS Disk. Possible values include `Standard_LRS`, `StandardSSD_LRS`, `StandardSSD_ZRS`, `Premium_LRS` and `Premium_ZRS`. Changing this forces a new resource to be created.
     * 
     */
    private String storageAccountType;
    /**
     * @return Specifies if Write Accelerator is enabled on the OS Disk. Defaults to `false`.
     * 
     */
    private @Nullable Boolean writeAcceleratorEnabled;

    private OrchestratedVirtualMachineScaleSetOsDisk() {}
    /**
     * @return The Type of Caching which should be used for the Internal OS Disk. Possible values are `None`, `ReadOnly` and `ReadWrite`.
     * 
     */
    public String caching() {
        return this.caching;
    }
    /**
     * @return A `diff_disk_settings` block as defined above. Changing this forces a new resource to be created.
     * 
     */
    public Optional diffDiskSettings() {
        return Optional.ofNullable(this.diffDiskSettings);
    }
    /**
     * @return The ID of the Disk Encryption Set which should be used to encrypt this OS Disk. Changing this forces a new resource to be created.
     * 
     * > **Note:** Disk Encryption Sets are in Public Preview in a limited set of regions
     * 
     */
    public Optional diskEncryptionSetId() {
        return Optional.ofNullable(this.diskEncryptionSetId);
    }
    /**
     * @return The Size of the Internal OS Disk in GB, if you wish to vary from the size used in the image this Virtual Machine Scale Set is sourced from.
     * 
     */
    public Optional diskSizeGb() {
        return Optional.ofNullable(this.diskSizeGb);
    }
    /**
     * @return The Type of Storage Account which should back this the Internal OS Disk. Possible values include `Standard_LRS`, `StandardSSD_LRS`, `StandardSSD_ZRS`, `Premium_LRS` and `Premium_ZRS`. Changing this forces a new resource to be created.
     * 
     */
    public String storageAccountType() {
        return this.storageAccountType;
    }
    /**
     * @return Specifies if Write Accelerator is enabled on the OS Disk. Defaults to `false`.
     * 
     */
    public Optional writeAcceleratorEnabled() {
        return Optional.ofNullable(this.writeAcceleratorEnabled);
    }

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

    public static Builder builder(OrchestratedVirtualMachineScaleSetOsDisk defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String caching;
        private @Nullable OrchestratedVirtualMachineScaleSetOsDiskDiffDiskSettings diffDiskSettings;
        private @Nullable String diskEncryptionSetId;
        private @Nullable Integer diskSizeGb;
        private String storageAccountType;
        private @Nullable Boolean writeAcceleratorEnabled;
        public Builder() {}
        public Builder(OrchestratedVirtualMachineScaleSetOsDisk defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.caching = defaults.caching;
    	      this.diffDiskSettings = defaults.diffDiskSettings;
    	      this.diskEncryptionSetId = defaults.diskEncryptionSetId;
    	      this.diskSizeGb = defaults.diskSizeGb;
    	      this.storageAccountType = defaults.storageAccountType;
    	      this.writeAcceleratorEnabled = defaults.writeAcceleratorEnabled;
        }

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

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

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

            this.diskSizeGb = diskSizeGb;
            return this;
        }
        @CustomType.Setter
        public Builder storageAccountType(String storageAccountType) {
            if (storageAccountType == null) {
              throw new MissingRequiredPropertyException("OrchestratedVirtualMachineScaleSetOsDisk", "storageAccountType");
            }
            this.storageAccountType = storageAccountType;
            return this;
        }
        @CustomType.Setter
        public Builder writeAcceleratorEnabled(@Nullable Boolean writeAcceleratorEnabled) {

            this.writeAcceleratorEnabled = writeAcceleratorEnabled;
            return this;
        }
        public OrchestratedVirtualMachineScaleSetOsDisk build() {
            final var _resultValue = new OrchestratedVirtualMachineScaleSetOsDisk();
            _resultValue.caching = caching;
            _resultValue.diffDiskSettings = diffDiskSettings;
            _resultValue.diskEncryptionSetId = diskEncryptionSetId;
            _resultValue.diskSizeGb = diskSizeGb;
            _resultValue.storageAccountType = storageAccountType;
            _resultValue.writeAcceleratorEnabled = writeAcceleratorEnabled;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy