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

com.pulumi.azurenative.azurelargeinstance.outputs.DiskResponse Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.azurelargeinstance.outputs;

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

@CustomType
public final class DiskResponse {
    /**
     * @return Specifies the size of an empty data disk in gigabytes.
     * 
     */
    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 disk name.
     * 
     */
    private @Nullable String name;

    private DiskResponse() {}
    /**
     * @return Specifies the size of an empty data disk in gigabytes.
     * 
     */
    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 disk name.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }

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

    public static Builder builder(DiskResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer diskSizeGB;
        private Integer lun;
        private @Nullable String name;
        public Builder() {}
        public Builder(DiskResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.diskSizeGB = defaults.diskSizeGB;
    	      this.lun = defaults.lun;
    	      this.name = defaults.name;
        }

        @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("DiskResponse", "lun");
            }
            this.lun = lun;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        public DiskResponse build() {
            final var _resultValue = new DiskResponse();
            _resultValue.diskSizeGB = diskSizeGB;
            _resultValue.lun = lun;
            _resultValue.name = name;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy