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

com.pulumi.azurenative.avs.inputs.DiskPoolVolumeArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.avs.inputs;

import com.pulumi.azurenative.avs.enums.MountOptionEnum;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * An iSCSI volume from Microsoft.StoragePool provider
 * 
 */
public final class DiskPoolVolumeArgs extends com.pulumi.resources.ResourceArgs {

    public static final DiskPoolVolumeArgs Empty = new DiskPoolVolumeArgs();

    /**
     * Name of the LUN to be used for datastore
     * 
     */
    @Import(name="lunName", required=true)
    private Output lunName;

    /**
     * @return Name of the LUN to be used for datastore
     * 
     */
    public Output lunName() {
        return this.lunName;
    }

    /**
     * Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN
     * 
     */
    @Import(name="mountOption")
    private @Nullable Output> mountOption;

    /**
     * @return Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN
     * 
     */
    public Optional>> mountOption() {
        return Optional.ofNullable(this.mountOption);
    }

    /**
     * Azure resource ID of the iSCSI target
     * 
     */
    @Import(name="targetId", required=true)
    private Output targetId;

    /**
     * @return Azure resource ID of the iSCSI target
     * 
     */
    public Output targetId() {
        return this.targetId;
    }

    private DiskPoolVolumeArgs() {}

    private DiskPoolVolumeArgs(DiskPoolVolumeArgs $) {
        this.lunName = $.lunName;
        this.mountOption = $.mountOption;
        this.targetId = $.targetId;
    }

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

    public static final class Builder {
        private DiskPoolVolumeArgs $;

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

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

        /**
         * @param lunName Name of the LUN to be used for datastore
         * 
         * @return builder
         * 
         */
        public Builder lunName(Output lunName) {
            $.lunName = lunName;
            return this;
        }

        /**
         * @param lunName Name of the LUN to be used for datastore
         * 
         * @return builder
         * 
         */
        public Builder lunName(String lunName) {
            return lunName(Output.of(lunName));
        }

        /**
         * @param mountOption Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN
         * 
         * @return builder
         * 
         */
        public Builder mountOption(@Nullable Output> mountOption) {
            $.mountOption = mountOption;
            return this;
        }

        /**
         * @param mountOption Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN
         * 
         * @return builder
         * 
         */
        public Builder mountOption(Either mountOption) {
            return mountOption(Output.of(mountOption));
        }

        /**
         * @param mountOption Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN
         * 
         * @return builder
         * 
         */
        public Builder mountOption(String mountOption) {
            return mountOption(Either.ofLeft(mountOption));
        }

        /**
         * @param mountOption Mode that describes whether the LUN has to be mounted as a datastore or attached as a LUN
         * 
         * @return builder
         * 
         */
        public Builder mountOption(MountOptionEnum mountOption) {
            return mountOption(Either.ofRight(mountOption));
        }

        /**
         * @param targetId Azure resource ID of the iSCSI target
         * 
         * @return builder
         * 
         */
        public Builder targetId(Output targetId) {
            $.targetId = targetId;
            return this;
        }

        /**
         * @param targetId Azure resource ID of the iSCSI target
         * 
         * @return builder
         * 
         */
        public Builder targetId(String targetId) {
            return targetId(Output.of(targetId));
        }

        public DiskPoolVolumeArgs build() {
            if ($.lunName == null) {
                throw new MissingRequiredPropertyException("DiskPoolVolumeArgs", "lunName");
            }
            $.mountOption = Codegen.stringProp("mountOption").left(MountOptionEnum.class).output().arg($.mountOption).def("MOUNT").getNullable();
            if ($.targetId == null) {
                throw new MissingRequiredPropertyException("DiskPoolVolumeArgs", "targetId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy