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

com.pulumi.azurenative.azurestackhci.inputs.VirtualMachineInstancePropertiesStorageProfileArgs Maven / Gradle / Ivy

// *** 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.azurestackhci.inputs;

import com.pulumi.azurenative.azurestackhci.inputs.VirtualMachineInstancePropertiesDataDisksArgs;
import com.pulumi.azurenative.azurestackhci.inputs.VirtualMachineInstancePropertiesImageReferenceArgs;
import com.pulumi.azurenative.azurestackhci.inputs.VirtualMachineInstancePropertiesOsDiskArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * StorageProfile - contains information about the disks and storage information for the virtual machine instance
 * 
 */
public final class VirtualMachineInstancePropertiesStorageProfileArgs extends com.pulumi.resources.ResourceArgs {

    public static final VirtualMachineInstancePropertiesStorageProfileArgs Empty = new VirtualMachineInstancePropertiesStorageProfileArgs();

    /**
     * adds data disks to the virtual machine instance
     * 
     */
    @Import(name="dataDisks")
    private @Nullable Output> dataDisks;

    /**
     * @return adds data disks to the virtual machine instance
     * 
     */
    public Optional>> dataDisks() {
        return Optional.ofNullable(this.dataDisks);
    }

    /**
     * Which Image to use for the virtual machine instance
     * 
     */
    @Import(name="imageReference")
    private @Nullable Output imageReference;

    /**
     * @return Which Image to use for the virtual machine instance
     * 
     */
    public Optional> imageReference() {
        return Optional.ofNullable(this.imageReference);
    }

    /**
     * VHD to attach as OS disk
     * 
     */
    @Import(name="osDisk")
    private @Nullable Output osDisk;

    /**
     * @return VHD to attach as OS disk
     * 
     */
    public Optional> osDisk() {
        return Optional.ofNullable(this.osDisk);
    }

    /**
     * Id of the storage container that hosts the VM configuration file
     * 
     */
    @Import(name="vmConfigStoragePathId")
    private @Nullable Output vmConfigStoragePathId;

    /**
     * @return Id of the storage container that hosts the VM configuration file
     * 
     */
    public Optional> vmConfigStoragePathId() {
        return Optional.ofNullable(this.vmConfigStoragePathId);
    }

    private VirtualMachineInstancePropertiesStorageProfileArgs() {}

    private VirtualMachineInstancePropertiesStorageProfileArgs(VirtualMachineInstancePropertiesStorageProfileArgs $) {
        this.dataDisks = $.dataDisks;
        this.imageReference = $.imageReference;
        this.osDisk = $.osDisk;
        this.vmConfigStoragePathId = $.vmConfigStoragePathId;
    }

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

    public static final class Builder {
        private VirtualMachineInstancePropertiesStorageProfileArgs $;

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

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

        /**
         * @param dataDisks adds data disks to the virtual machine instance
         * 
         * @return builder
         * 
         */
        public Builder dataDisks(@Nullable Output> dataDisks) {
            $.dataDisks = dataDisks;
            return this;
        }

        /**
         * @param dataDisks adds data disks to the virtual machine instance
         * 
         * @return builder
         * 
         */
        public Builder dataDisks(List dataDisks) {
            return dataDisks(Output.of(dataDisks));
        }

        /**
         * @param dataDisks adds data disks to the virtual machine instance
         * 
         * @return builder
         * 
         */
        public Builder dataDisks(VirtualMachineInstancePropertiesDataDisksArgs... dataDisks) {
            return dataDisks(List.of(dataDisks));
        }

        /**
         * @param imageReference Which Image to use for the virtual machine instance
         * 
         * @return builder
         * 
         */
        public Builder imageReference(@Nullable Output imageReference) {
            $.imageReference = imageReference;
            return this;
        }

        /**
         * @param imageReference Which Image to use for the virtual machine instance
         * 
         * @return builder
         * 
         */
        public Builder imageReference(VirtualMachineInstancePropertiesImageReferenceArgs imageReference) {
            return imageReference(Output.of(imageReference));
        }

        /**
         * @param osDisk VHD to attach as OS disk
         * 
         * @return builder
         * 
         */
        public Builder osDisk(@Nullable Output osDisk) {
            $.osDisk = osDisk;
            return this;
        }

        /**
         * @param osDisk VHD to attach as OS disk
         * 
         * @return builder
         * 
         */
        public Builder osDisk(VirtualMachineInstancePropertiesOsDiskArgs osDisk) {
            return osDisk(Output.of(osDisk));
        }

        /**
         * @param vmConfigStoragePathId Id of the storage container that hosts the VM configuration file
         * 
         * @return builder
         * 
         */
        public Builder vmConfigStoragePathId(@Nullable Output vmConfigStoragePathId) {
            $.vmConfigStoragePathId = vmConfigStoragePathId;
            return this;
        }

        /**
         * @param vmConfigStoragePathId Id of the storage container that hosts the VM configuration file
         * 
         * @return builder
         * 
         */
        public Builder vmConfigStoragePathId(String vmConfigStoragePathId) {
            return vmConfigStoragePathId(Output.of(vmConfigStoragePathId));
        }

        public VirtualMachineInstancePropertiesStorageProfileArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy