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

com.pulumi.azurenative.datafactory.inputs.HdfsLocationArgs Maven / Gradle / Ivy

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

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.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The location of HDFS.
 * 
 */
public final class HdfsLocationArgs extends com.pulumi.resources.ResourceArgs {

    public static final HdfsLocationArgs Empty = new HdfsLocationArgs();

    /**
     * Specify the file name of dataset. Type: string (or Expression with resultType string).
     * 
     */
    @Import(name="fileName")
    private @Nullable Output fileName;

    /**
     * @return Specify the file name of dataset. Type: string (or Expression with resultType string).
     * 
     */
    public Optional> fileName() {
        return Optional.ofNullable(this.fileName);
    }

    /**
     * Specify the folder path of dataset. Type: string (or Expression with resultType string)
     * 
     */
    @Import(name="folderPath")
    private @Nullable Output folderPath;

    /**
     * @return Specify the folder path of dataset. Type: string (or Expression with resultType string)
     * 
     */
    public Optional> folderPath() {
        return Optional.ofNullable(this.folderPath);
    }

    /**
     * Type of dataset storage location.
     * Expected value is 'HdfsLocation'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Type of dataset storage location.
     * Expected value is 'HdfsLocation'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private HdfsLocationArgs() {}

    private HdfsLocationArgs(HdfsLocationArgs $) {
        this.fileName = $.fileName;
        this.folderPath = $.folderPath;
        this.type = $.type;
    }

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

    public static final class Builder {
        private HdfsLocationArgs $;

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

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

        /**
         * @param fileName Specify the file name of dataset. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder fileName(@Nullable Output fileName) {
            $.fileName = fileName;
            return this;
        }

        /**
         * @param fileName Specify the file name of dataset. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder fileName(Object fileName) {
            return fileName(Output.of(fileName));
        }

        /**
         * @param folderPath Specify the folder path of dataset. Type: string (or Expression with resultType string)
         * 
         * @return builder
         * 
         */
        public Builder folderPath(@Nullable Output folderPath) {
            $.folderPath = folderPath;
            return this;
        }

        /**
         * @param folderPath Specify the folder path of dataset. Type: string (or Expression with resultType string)
         * 
         * @return builder
         * 
         */
        public Builder folderPath(Object folderPath) {
            return folderPath(Output.of(folderPath));
        }

        /**
         * @param type Type of dataset storage location.
         * Expected value is 'HdfsLocation'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of dataset storage location.
         * Expected value is 'HdfsLocation'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public HdfsLocationArgs build() {
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}