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

com.pulumi.linode.outputs.GetInstancesInstanceConfigDeviceSdf Maven / Gradle / Ivy

There is a newer version: 4.31.0-alpha.1732773076
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.linode.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 GetInstancesInstanceConfigDeviceSdf {
    /**
     * @return The Disk ID of the associated `disk_label`, if used
     * 
     */
    private Integer diskId;
    /**
     * @return The `label` of the `disk` to map to this `device` slot.
     * 
     */
    private @Nullable String diskLabel;
    /**
     * @return The Volume ID to map to this `device` slot.
     * 
     */
    private @Nullable Integer volumeId;

    private GetInstancesInstanceConfigDeviceSdf() {}
    /**
     * @return The Disk ID of the associated `disk_label`, if used
     * 
     */
    public Integer diskId() {
        return this.diskId;
    }
    /**
     * @return The `label` of the `disk` to map to this `device` slot.
     * 
     */
    public Optional diskLabel() {
        return Optional.ofNullable(this.diskLabel);
    }
    /**
     * @return The Volume ID to map to this `device` slot.
     * 
     */
    public Optional volumeId() {
        return Optional.ofNullable(this.volumeId);
    }

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

    public static Builder builder(GetInstancesInstanceConfigDeviceSdf defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer diskId;
        private @Nullable String diskLabel;
        private @Nullable Integer volumeId;
        public Builder() {}
        public Builder(GetInstancesInstanceConfigDeviceSdf defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.diskId = defaults.diskId;
    	      this.diskLabel = defaults.diskLabel;
    	      this.volumeId = defaults.volumeId;
        }

        @CustomType.Setter
        public Builder diskId(Integer diskId) {
            if (diskId == null) {
              throw new MissingRequiredPropertyException("GetInstancesInstanceConfigDeviceSdf", "diskId");
            }
            this.diskId = diskId;
            return this;
        }
        @CustomType.Setter
        public Builder diskLabel(@Nullable String diskLabel) {

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

            this.volumeId = volumeId;
            return this;
        }
        public GetInstancesInstanceConfigDeviceSdf build() {
            final var _resultValue = new GetInstancesInstanceConfigDeviceSdf();
            _resultValue.diskId = diskId;
            _resultValue.diskLabel = diskLabel;
            _resultValue.volumeId = volumeId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy