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

com.pulumi.azurenative.datafactory.inputs.DistcpSettingsArgs 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.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Distcp settings.
 * 
 */
public final class DistcpSettingsArgs extends com.pulumi.resources.ResourceArgs {

    public static final DistcpSettingsArgs Empty = new DistcpSettingsArgs();

    /**
     * Specifies the Distcp options. Type: string (or Expression with resultType string).
     * 
     */
    @Import(name="distcpOptions")
    private @Nullable Output distcpOptions;

    /**
     * @return Specifies the Distcp options. Type: string (or Expression with resultType string).
     * 
     */
    public Optional> distcpOptions() {
        return Optional.ofNullable(this.distcpOptions);
    }

    /**
     * Specifies the Yarn ResourceManager endpoint. Type: string (or Expression with resultType string).
     * 
     */
    @Import(name="resourceManagerEndpoint", required=true)
    private Output resourceManagerEndpoint;

    /**
     * @return Specifies the Yarn ResourceManager endpoint. Type: string (or Expression with resultType string).
     * 
     */
    public Output resourceManagerEndpoint() {
        return this.resourceManagerEndpoint;
    }

    /**
     * Specifies an existing folder path which will be used to store temp Distcp command script. The script file is generated by ADF and will be removed after Copy job finished. Type: string (or Expression with resultType string).
     * 
     */
    @Import(name="tempScriptPath", required=true)
    private Output tempScriptPath;

    /**
     * @return Specifies an existing folder path which will be used to store temp Distcp command script. The script file is generated by ADF and will be removed after Copy job finished. Type: string (or Expression with resultType string).
     * 
     */
    public Output tempScriptPath() {
        return this.tempScriptPath;
    }

    private DistcpSettingsArgs() {}

    private DistcpSettingsArgs(DistcpSettingsArgs $) {
        this.distcpOptions = $.distcpOptions;
        this.resourceManagerEndpoint = $.resourceManagerEndpoint;
        this.tempScriptPath = $.tempScriptPath;
    }

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

    public static final class Builder {
        private DistcpSettingsArgs $;

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

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

        /**
         * @param distcpOptions Specifies the Distcp options. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder distcpOptions(@Nullable Output distcpOptions) {
            $.distcpOptions = distcpOptions;
            return this;
        }

        /**
         * @param distcpOptions Specifies the Distcp options. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder distcpOptions(Object distcpOptions) {
            return distcpOptions(Output.of(distcpOptions));
        }

        /**
         * @param resourceManagerEndpoint Specifies the Yarn ResourceManager endpoint. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder resourceManagerEndpoint(Output resourceManagerEndpoint) {
            $.resourceManagerEndpoint = resourceManagerEndpoint;
            return this;
        }

        /**
         * @param resourceManagerEndpoint Specifies the Yarn ResourceManager endpoint. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder resourceManagerEndpoint(Object resourceManagerEndpoint) {
            return resourceManagerEndpoint(Output.of(resourceManagerEndpoint));
        }

        /**
         * @param tempScriptPath Specifies an existing folder path which will be used to store temp Distcp command script. The script file is generated by ADF and will be removed after Copy job finished. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder tempScriptPath(Output tempScriptPath) {
            $.tempScriptPath = tempScriptPath;
            return this;
        }

        /**
         * @param tempScriptPath Specifies an existing folder path which will be used to store temp Distcp command script. The script file is generated by ADF and will be removed after Copy job finished. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder tempScriptPath(Object tempScriptPath) {
            return tempScriptPath(Output.of(tempScriptPath));
        }

        public DistcpSettingsArgs build() {
            if ($.resourceManagerEndpoint == null) {
                throw new MissingRequiredPropertyException("DistcpSettingsArgs", "resourceManagerEndpoint");
            }
            if ($.tempScriptPath == null) {
                throw new MissingRequiredPropertyException("DistcpSettingsArgs", "tempScriptPath");
            }
            return $;
        }
    }

}