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

com.pulumi.azure.batch.inputs.PoolMountNfsMountArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.batch.inputs;

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


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

    public static final PoolMountNfsMountArgs Empty = new PoolMountNfsMountArgs();

    /**
     * Additional command line options to pass to the mount command. These are 'net use' options in Windows and 'mount' options in Linux.
     * 
     */
    @Import(name="mountOptions")
    private @Nullable Output mountOptions;

    /**
     * @return Additional command line options to pass to the mount command. These are 'net use' options in Windows and 'mount' options in Linux.
     * 
     */
    public Optional> mountOptions() {
        return Optional.ofNullable(this.mountOptions);
    }

    /**
     * The relative path on compute node where the file system will be mounted All file systems are mounted relative to the Batch mounts directory, accessible via the `AZ_BATCH_NODE_MOUNTS_DIR` environment variable.
     * 
     */
    @Import(name="relativeMountPath", required=true)
    private Output relativeMountPath;

    /**
     * @return The relative path on compute node where the file system will be mounted All file systems are mounted relative to the Batch mounts directory, accessible via the `AZ_BATCH_NODE_MOUNTS_DIR` environment variable.
     * 
     */
    public Output relativeMountPath() {
        return this.relativeMountPath;
    }

    /**
     * The URI of the file system to mount.
     * 
     */
    @Import(name="source", required=true)
    private Output source;

    /**
     * @return The URI of the file system to mount.
     * 
     */
    public Output source() {
        return this.source;
    }

    private PoolMountNfsMountArgs() {}

    private PoolMountNfsMountArgs(PoolMountNfsMountArgs $) {
        this.mountOptions = $.mountOptions;
        this.relativeMountPath = $.relativeMountPath;
        this.source = $.source;
    }

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

    public static final class Builder {
        private PoolMountNfsMountArgs $;

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

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

        /**
         * @param mountOptions Additional command line options to pass to the mount command. These are 'net use' options in Windows and 'mount' options in Linux.
         * 
         * @return builder
         * 
         */
        public Builder mountOptions(@Nullable Output mountOptions) {
            $.mountOptions = mountOptions;
            return this;
        }

        /**
         * @param mountOptions Additional command line options to pass to the mount command. These are 'net use' options in Windows and 'mount' options in Linux.
         * 
         * @return builder
         * 
         */
        public Builder mountOptions(String mountOptions) {
            return mountOptions(Output.of(mountOptions));
        }

        /**
         * @param relativeMountPath The relative path on compute node where the file system will be mounted All file systems are mounted relative to the Batch mounts directory, accessible via the `AZ_BATCH_NODE_MOUNTS_DIR` environment variable.
         * 
         * @return builder
         * 
         */
        public Builder relativeMountPath(Output relativeMountPath) {
            $.relativeMountPath = relativeMountPath;
            return this;
        }

        /**
         * @param relativeMountPath The relative path on compute node where the file system will be mounted All file systems are mounted relative to the Batch mounts directory, accessible via the `AZ_BATCH_NODE_MOUNTS_DIR` environment variable.
         * 
         * @return builder
         * 
         */
        public Builder relativeMountPath(String relativeMountPath) {
            return relativeMountPath(Output.of(relativeMountPath));
        }

        /**
         * @param source The URI of the file system to mount.
         * 
         * @return builder
         * 
         */
        public Builder source(Output source) {
            $.source = source;
            return this;
        }

        /**
         * @param source The URI of the file system to mount.
         * 
         * @return builder
         * 
         */
        public Builder source(String source) {
            return source(Output.of(source));
        }

        public PoolMountNfsMountArgs build() {
            if ($.relativeMountPath == null) {
                throw new MissingRequiredPropertyException("PoolMountNfsMountArgs", "relativeMountPath");
            }
            if ($.source == null) {
                throw new MissingRequiredPropertyException("PoolMountNfsMountArgs", "source");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy