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

com.pulumi.azurenative.devtestlab.inputs.AttachNewDataDiskOptionsArgs 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.devtestlab.inputs;

import com.pulumi.azurenative.devtestlab.enums.StorageType;
import com.pulumi.core.Either;
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;


/**
 * Properties to attach new disk to the Virtual Machine.
 * 
 */
public final class AttachNewDataDiskOptionsArgs extends com.pulumi.resources.ResourceArgs {

    public static final AttachNewDataDiskOptionsArgs Empty = new AttachNewDataDiskOptionsArgs();

    /**
     * The name of the disk to be attached.
     * 
     */
    @Import(name="diskName")
    private @Nullable Output diskName;

    /**
     * @return The name of the disk to be attached.
     * 
     */
    public Optional> diskName() {
        return Optional.ofNullable(this.diskName);
    }

    /**
     * Size of the disk to be attached in Gibibytes.
     * 
     */
    @Import(name="diskSizeGiB")
    private @Nullable Output diskSizeGiB;

    /**
     * @return Size of the disk to be attached in Gibibytes.
     * 
     */
    public Optional> diskSizeGiB() {
        return Optional.ofNullable(this.diskSizeGiB);
    }

    /**
     * The storage type for the disk (i.e. Standard, Premium).
     * 
     */
    @Import(name="diskType")
    private @Nullable Output> diskType;

    /**
     * @return The storage type for the disk (i.e. Standard, Premium).
     * 
     */
    public Optional>> diskType() {
        return Optional.ofNullable(this.diskType);
    }

    private AttachNewDataDiskOptionsArgs() {}

    private AttachNewDataDiskOptionsArgs(AttachNewDataDiskOptionsArgs $) {
        this.diskName = $.diskName;
        this.diskSizeGiB = $.diskSizeGiB;
        this.diskType = $.diskType;
    }

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

    public static final class Builder {
        private AttachNewDataDiskOptionsArgs $;

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

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

        /**
         * @param diskName The name of the disk to be attached.
         * 
         * @return builder
         * 
         */
        public Builder diskName(@Nullable Output diskName) {
            $.diskName = diskName;
            return this;
        }

        /**
         * @param diskName The name of the disk to be attached.
         * 
         * @return builder
         * 
         */
        public Builder diskName(String diskName) {
            return diskName(Output.of(diskName));
        }

        /**
         * @param diskSizeGiB Size of the disk to be attached in Gibibytes.
         * 
         * @return builder
         * 
         */
        public Builder diskSizeGiB(@Nullable Output diskSizeGiB) {
            $.diskSizeGiB = diskSizeGiB;
            return this;
        }

        /**
         * @param diskSizeGiB Size of the disk to be attached in Gibibytes.
         * 
         * @return builder
         * 
         */
        public Builder diskSizeGiB(Integer diskSizeGiB) {
            return diskSizeGiB(Output.of(diskSizeGiB));
        }

        /**
         * @param diskType The storage type for the disk (i.e. Standard, Premium).
         * 
         * @return builder
         * 
         */
        public Builder diskType(@Nullable Output> diskType) {
            $.diskType = diskType;
            return this;
        }

        /**
         * @param diskType The storage type for the disk (i.e. Standard, Premium).
         * 
         * @return builder
         * 
         */
        public Builder diskType(Either diskType) {
            return diskType(Output.of(diskType));
        }

        /**
         * @param diskType The storage type for the disk (i.e. Standard, Premium).
         * 
         * @return builder
         * 
         */
        public Builder diskType(String diskType) {
            return diskType(Either.ofLeft(diskType));
        }

        /**
         * @param diskType The storage type for the disk (i.e. Standard, Premium).
         * 
         * @return builder
         * 
         */
        public Builder diskType(StorageType diskType) {
            return diskType(Either.ofRight(diskType));
        }

        public AttachNewDataDiskOptionsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy