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

com.pulumi.linode.inputs.InstanceConfigDevicesSdbArgs 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class InstanceConfigDevicesSdbArgs extends com.pulumi.resources.ResourceArgs {

    public static final InstanceConfigDevicesSdbArgs Empty = new InstanceConfigDevicesSdbArgs();

    /**
     * The Disk ID to map to this disk slot
     * 
     */
    @Import(name="diskId")
    private @Nullable Output diskId;

    /**
     * @return The Disk ID to map to this disk slot
     * 
     */
    public Optional> diskId() {
        return Optional.ofNullable(this.diskId);
    }

    /**
     * The `label` of the `disk` to map to this `device` slot.
     * 
     */
    @Import(name="diskLabel")
    private @Nullable Output diskLabel;

    /**
     * @return The `label` of the `disk` to map to this `device` slot.
     * 
     */
    public Optional> diskLabel() {
        return Optional.ofNullable(this.diskLabel);
    }

    /**
     * The Block Storage volume ID to map to this disk slot
     * 
     */
    @Import(name="volumeId")
    private @Nullable Output volumeId;

    /**
     * @return The Block Storage volume ID to map to this disk slot
     * 
     */
    public Optional> volumeId() {
        return Optional.ofNullable(this.volumeId);
    }

    private InstanceConfigDevicesSdbArgs() {}

    private InstanceConfigDevicesSdbArgs(InstanceConfigDevicesSdbArgs $) {
        this.diskId = $.diskId;
        this.diskLabel = $.diskLabel;
        this.volumeId = $.volumeId;
    }

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

    public static final class Builder {
        private InstanceConfigDevicesSdbArgs $;

        public Builder() {
            $ = new InstanceConfigDevicesSdbArgs();
        }

        public Builder(InstanceConfigDevicesSdbArgs defaults) {
            $ = new InstanceConfigDevicesSdbArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param diskId The Disk ID to map to this disk slot
         * 
         * @return builder
         * 
         */
        public Builder diskId(@Nullable Output diskId) {
            $.diskId = diskId;
            return this;
        }

        /**
         * @param diskId The Disk ID to map to this disk slot
         * 
         * @return builder
         * 
         */
        public Builder diskId(Integer diskId) {
            return diskId(Output.of(diskId));
        }

        /**
         * @param diskLabel The `label` of the `disk` to map to this `device` slot.
         * 
         * @return builder
         * 
         */
        public Builder diskLabel(@Nullable Output diskLabel) {
            $.diskLabel = diskLabel;
            return this;
        }

        /**
         * @param diskLabel The `label` of the `disk` to map to this `device` slot.
         * 
         * @return builder
         * 
         */
        public Builder diskLabel(String diskLabel) {
            return diskLabel(Output.of(diskLabel));
        }

        /**
         * @param volumeId The Block Storage volume ID to map to this disk slot
         * 
         * @return builder
         * 
         */
        public Builder volumeId(@Nullable Output volumeId) {
            $.volumeId = volumeId;
            return this;
        }

        /**
         * @param volumeId The Block Storage volume ID to map to this disk slot
         * 
         * @return builder
         * 
         */
        public Builder volumeId(Integer volumeId) {
            return volumeId(Output.of(volumeId));
        }

        public InstanceConfigDevicesSdbArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy