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

com.pulumi.aws.datasync.NfsLocationArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.66.3
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.aws.datasync;

import com.pulumi.aws.datasync.inputs.NfsLocationMountOptionsArgs;
import com.pulumi.aws.datasync.inputs.NfsLocationOnPremConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NfsLocationArgs Empty = new NfsLocationArgs();

    /**
     * Configuration block containing mount options used by DataSync to access the NFS Server.
     * 
     */
    @Import(name="mountOptions")
    private @Nullable Output mountOptions;

    /**
     * @return Configuration block containing mount options used by DataSync to access the NFS Server.
     * 
     */
    public Optional> mountOptions() {
        return Optional.ofNullable(this.mountOptions);
    }

    /**
     * Configuration block containing information for connecting to the NFS File System.
     * 
     */
    @Import(name="onPremConfig", required=true)
    private Output onPremConfig;

    /**
     * @return Configuration block containing information for connecting to the NFS File System.
     * 
     */
    public Output onPremConfig() {
        return this.onPremConfig;
    }

    /**
     * Specifies the IP address or DNS name of the NFS server. The DataSync Agent(s) use this to mount the NFS server.
     * 
     */
    @Import(name="serverHostname", required=true)
    private Output serverHostname;

    /**
     * @return Specifies the IP address or DNS name of the NFS server. The DataSync Agent(s) use this to mount the NFS server.
     * 
     */
    public Output serverHostname() {
        return this.serverHostname;
    }

    /**
     * Subdirectory to perform actions as source or destination. Should be exported by the NFS server.
     * 
     */
    @Import(name="subdirectory", required=true)
    private Output subdirectory;

    /**
     * @return Subdirectory to perform actions as source or destination. Should be exported by the NFS server.
     * 
     */
    public Output subdirectory() {
        return this.subdirectory;
    }

    /**
     * Key-value pairs of resource tags to assign to the DataSync Location. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Key-value pairs of resource tags to assign to the DataSync Location. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private NfsLocationArgs() {}

    private NfsLocationArgs(NfsLocationArgs $) {
        this.mountOptions = $.mountOptions;
        this.onPremConfig = $.onPremConfig;
        this.serverHostname = $.serverHostname;
        this.subdirectory = $.subdirectory;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private NfsLocationArgs $;

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

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

        /**
         * @param mountOptions Configuration block containing mount options used by DataSync to access the NFS Server.
         * 
         * @return builder
         * 
         */
        public Builder mountOptions(@Nullable Output mountOptions) {
            $.mountOptions = mountOptions;
            return this;
        }

        /**
         * @param mountOptions Configuration block containing mount options used by DataSync to access the NFS Server.
         * 
         * @return builder
         * 
         */
        public Builder mountOptions(NfsLocationMountOptionsArgs mountOptions) {
            return mountOptions(Output.of(mountOptions));
        }

        /**
         * @param onPremConfig Configuration block containing information for connecting to the NFS File System.
         * 
         * @return builder
         * 
         */
        public Builder onPremConfig(Output onPremConfig) {
            $.onPremConfig = onPremConfig;
            return this;
        }

        /**
         * @param onPremConfig Configuration block containing information for connecting to the NFS File System.
         * 
         * @return builder
         * 
         */
        public Builder onPremConfig(NfsLocationOnPremConfigArgs onPremConfig) {
            return onPremConfig(Output.of(onPremConfig));
        }

        /**
         * @param serverHostname Specifies the IP address or DNS name of the NFS server. The DataSync Agent(s) use this to mount the NFS server.
         * 
         * @return builder
         * 
         */
        public Builder serverHostname(Output serverHostname) {
            $.serverHostname = serverHostname;
            return this;
        }

        /**
         * @param serverHostname Specifies the IP address or DNS name of the NFS server. The DataSync Agent(s) use this to mount the NFS server.
         * 
         * @return builder
         * 
         */
        public Builder serverHostname(String serverHostname) {
            return serverHostname(Output.of(serverHostname));
        }

        /**
         * @param subdirectory Subdirectory to perform actions as source or destination. Should be exported by the NFS server.
         * 
         * @return builder
         * 
         */
        public Builder subdirectory(Output subdirectory) {
            $.subdirectory = subdirectory;
            return this;
        }

        /**
         * @param subdirectory Subdirectory to perform actions as source or destination. Should be exported by the NFS server.
         * 
         * @return builder
         * 
         */
        public Builder subdirectory(String subdirectory) {
            return subdirectory(Output.of(subdirectory));
        }

        /**
         * @param tags Key-value pairs of resource tags to assign to the DataSync Location. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Key-value pairs of resource tags to assign to the DataSync Location. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public NfsLocationArgs build() {
            if ($.onPremConfig == null) {
                throw new MissingRequiredPropertyException("NfsLocationArgs", "onPremConfig");
            }
            if ($.serverHostname == null) {
                throw new MissingRequiredPropertyException("NfsLocationArgs", "serverHostname");
            }
            if ($.subdirectory == null) {
                throw new MissingRequiredPropertyException("NfsLocationArgs", "subdirectory");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy