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

com.pulumi.azurenative.networkcloud.inputs.StorageProfileArgs 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.networkcloud.inputs;

import com.pulumi.azurenative.networkcloud.inputs.OsDiskArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final StorageProfileArgs Empty = new StorageProfileArgs();

    /**
     * The disk to use with this virtual machine.
     * 
     */
    @Import(name="osDisk", required=true)
    private Output osDisk;

    /**
     * @return The disk to use with this virtual machine.
     * 
     */
    public Output osDisk() {
        return this.osDisk;
    }

    /**
     * The resource IDs of volumes that are requested to be attached to the virtual machine.
     * 
     */
    @Import(name="volumeAttachments")
    private @Nullable Output> volumeAttachments;

    /**
     * @return The resource IDs of volumes that are requested to be attached to the virtual machine.
     * 
     */
    public Optional>> volumeAttachments() {
        return Optional.ofNullable(this.volumeAttachments);
    }

    private StorageProfileArgs() {}

    private StorageProfileArgs(StorageProfileArgs $) {
        this.osDisk = $.osDisk;
        this.volumeAttachments = $.volumeAttachments;
    }

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

    public static final class Builder {
        private StorageProfileArgs $;

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

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

        /**
         * @param osDisk The disk to use with this virtual machine.
         * 
         * @return builder
         * 
         */
        public Builder osDisk(Output osDisk) {
            $.osDisk = osDisk;
            return this;
        }

        /**
         * @param osDisk The disk to use with this virtual machine.
         * 
         * @return builder
         * 
         */
        public Builder osDisk(OsDiskArgs osDisk) {
            return osDisk(Output.of(osDisk));
        }

        /**
         * @param volumeAttachments The resource IDs of volumes that are requested to be attached to the virtual machine.
         * 
         * @return builder
         * 
         */
        public Builder volumeAttachments(@Nullable Output> volumeAttachments) {
            $.volumeAttachments = volumeAttachments;
            return this;
        }

        /**
         * @param volumeAttachments The resource IDs of volumes that are requested to be attached to the virtual machine.
         * 
         * @return builder
         * 
         */
        public Builder volumeAttachments(List volumeAttachments) {
            return volumeAttachments(Output.of(volumeAttachments));
        }

        /**
         * @param volumeAttachments The resource IDs of volumes that are requested to be attached to the virtual machine.
         * 
         * @return builder
         * 
         */
        public Builder volumeAttachments(String... volumeAttachments) {
            return volumeAttachments(List.of(volumeAttachments));
        }

        public StorageProfileArgs build() {
            if ($.osDisk == null) {
                throw new MissingRequiredPropertyException("StorageProfileArgs", "osDisk");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy