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

com.pulumi.aws.glue.inputs.GetScriptArgs Maven / Gradle / Ivy

Go to download

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

The 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.glue.inputs;

import com.pulumi.aws.glue.inputs.GetScriptDagEdgeArgs;
import com.pulumi.aws.glue.inputs.GetScriptDagNodeArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetScriptArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetScriptArgs Empty = new GetScriptArgs();

    /**
     * List of the edges in the DAG. Defined below.
     * 
     */
    @Import(name="dagEdges", required=true)
    private Output> dagEdges;

    /**
     * @return List of the edges in the DAG. Defined below.
     * 
     */
    public Output> dagEdges() {
        return this.dagEdges;
    }

    /**
     * List of the nodes in the DAG. Defined below.
     * 
     */
    @Import(name="dagNodes", required=true)
    private Output> dagNodes;

    /**
     * @return List of the nodes in the DAG. Defined below.
     * 
     */
    public Output> dagNodes() {
        return this.dagNodes;
    }

    /**
     * Programming language of the resulting code from the DAG. Defaults to `PYTHON`. Valid values are `PYTHON` and `SCALA`.
     * 
     */
    @Import(name="language")
    private @Nullable Output language;

    /**
     * @return Programming language of the resulting code from the DAG. Defaults to `PYTHON`. Valid values are `PYTHON` and `SCALA`.
     * 
     */
    public Optional> language() {
        return Optional.ofNullable(this.language);
    }

    private GetScriptArgs() {}

    private GetScriptArgs(GetScriptArgs $) {
        this.dagEdges = $.dagEdges;
        this.dagNodes = $.dagNodes;
        this.language = $.language;
    }

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

    public static final class Builder {
        private GetScriptArgs $;

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

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

        /**
         * @param dagEdges List of the edges in the DAG. Defined below.
         * 
         * @return builder
         * 
         */
        public Builder dagEdges(Output> dagEdges) {
            $.dagEdges = dagEdges;
            return this;
        }

        /**
         * @param dagEdges List of the edges in the DAG. Defined below.
         * 
         * @return builder
         * 
         */
        public Builder dagEdges(List dagEdges) {
            return dagEdges(Output.of(dagEdges));
        }

        /**
         * @param dagEdges List of the edges in the DAG. Defined below.
         * 
         * @return builder
         * 
         */
        public Builder dagEdges(GetScriptDagEdgeArgs... dagEdges) {
            return dagEdges(List.of(dagEdges));
        }

        /**
         * @param dagNodes List of the nodes in the DAG. Defined below.
         * 
         * @return builder
         * 
         */
        public Builder dagNodes(Output> dagNodes) {
            $.dagNodes = dagNodes;
            return this;
        }

        /**
         * @param dagNodes List of the nodes in the DAG. Defined below.
         * 
         * @return builder
         * 
         */
        public Builder dagNodes(List dagNodes) {
            return dagNodes(Output.of(dagNodes));
        }

        /**
         * @param dagNodes List of the nodes in the DAG. Defined below.
         * 
         * @return builder
         * 
         */
        public Builder dagNodes(GetScriptDagNodeArgs... dagNodes) {
            return dagNodes(List.of(dagNodes));
        }

        /**
         * @param language Programming language of the resulting code from the DAG. Defaults to `PYTHON`. Valid values are `PYTHON` and `SCALA`.
         * 
         * @return builder
         * 
         */
        public Builder language(@Nullable Output language) {
            $.language = language;
            return this;
        }

        /**
         * @param language Programming language of the resulting code from the DAG. Defaults to `PYTHON`. Valid values are `PYTHON` and `SCALA`.
         * 
         * @return builder
         * 
         */
        public Builder language(String language) {
            return language(Output.of(language));
        }

        public GetScriptArgs build() {
            if ($.dagEdges == null) {
                throw new MissingRequiredPropertyException("GetScriptArgs", "dagEdges");
            }
            if ($.dagNodes == null) {
                throw new MissingRequiredPropertyException("GetScriptArgs", "dagNodes");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy