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

com.pulumi.azurenative.datamigration.inputs.FileShareArgs 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.datamigration.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;


/**
 * File share information with Path, Username, and Password.
 * 
 */
public final class FileShareArgs extends com.pulumi.resources.ResourceArgs {

    public static final FileShareArgs Empty = new FileShareArgs();

    /**
     * Password credential used to connect to the share location.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return Password credential used to connect to the share location.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * The folder path for this share.
     * 
     */
    @Import(name="path", required=true)
    private Output path;

    /**
     * @return The folder path for this share.
     * 
     */
    public Output path() {
        return this.path;
    }

    /**
     * User name credential to connect to the share location
     * 
     */
    @Import(name="userName")
    private @Nullable Output userName;

    /**
     * @return User name credential to connect to the share location
     * 
     */
    public Optional> userName() {
        return Optional.ofNullable(this.userName);
    }

    private FileShareArgs() {}

    private FileShareArgs(FileShareArgs $) {
        this.password = $.password;
        this.path = $.path;
        this.userName = $.userName;
    }

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

    public static final class Builder {
        private FileShareArgs $;

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

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

        /**
         * @param password Password credential used to connect to the share location.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password Password credential used to connect to the share location.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param path The folder path for this share.
         * 
         * @return builder
         * 
         */
        public Builder path(Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path The folder path for this share.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param userName User name credential to connect to the share location
         * 
         * @return builder
         * 
         */
        public Builder userName(@Nullable Output userName) {
            $.userName = userName;
            return this;
        }

        /**
         * @param userName User name credential to connect to the share location
         * 
         * @return builder
         * 
         */
        public Builder userName(String userName) {
            return userName(Output.of(userName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy