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

com.pulumi.azurenative.hdinsight.inputs.RuntimeScriptActionArgs Maven / Gradle / Ivy

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

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;


/**
 * Describes a script action on a running cluster.
 * 
 */
public final class RuntimeScriptActionArgs extends com.pulumi.resources.ResourceArgs {

    public static final RuntimeScriptActionArgs Empty = new RuntimeScriptActionArgs();

    /**
     * The name of the script action.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the script action.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The parameters for the script
     * 
     */
    @Import(name="parameters")
    private @Nullable Output parameters;

    /**
     * @return The parameters for the script
     * 
     */
    public Optional> parameters() {
        return Optional.ofNullable(this.parameters);
    }

    /**
     * The list of roles where script will be executed.
     * 
     */
    @Import(name="roles", required=true)
    private Output> roles;

    /**
     * @return The list of roles where script will be executed.
     * 
     */
    public Output> roles() {
        return this.roles;
    }

    /**
     * The URI to the script.
     * 
     */
    @Import(name="uri", required=true)
    private Output uri;

    /**
     * @return The URI to the script.
     * 
     */
    public Output uri() {
        return this.uri;
    }

    private RuntimeScriptActionArgs() {}

    private RuntimeScriptActionArgs(RuntimeScriptActionArgs $) {
        this.name = $.name;
        this.parameters = $.parameters;
        this.roles = $.roles;
        this.uri = $.uri;
    }

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

    public static final class Builder {
        private RuntimeScriptActionArgs $;

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

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

        /**
         * @param name The name of the script action.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the script action.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param parameters The parameters for the script
         * 
         * @return builder
         * 
         */
        public Builder parameters(@Nullable Output parameters) {
            $.parameters = parameters;
            return this;
        }

        /**
         * @param parameters The parameters for the script
         * 
         * @return builder
         * 
         */
        public Builder parameters(String parameters) {
            return parameters(Output.of(parameters));
        }

        /**
         * @param roles The list of roles where script will be executed.
         * 
         * @return builder
         * 
         */
        public Builder roles(Output> roles) {
            $.roles = roles;
            return this;
        }

        /**
         * @param roles The list of roles where script will be executed.
         * 
         * @return builder
         * 
         */
        public Builder roles(List roles) {
            return roles(Output.of(roles));
        }

        /**
         * @param roles The list of roles where script will be executed.
         * 
         * @return builder
         * 
         */
        public Builder roles(String... roles) {
            return roles(List.of(roles));
        }

        /**
         * @param uri The URI to the script.
         * 
         * @return builder
         * 
         */
        public Builder uri(Output uri) {
            $.uri = uri;
            return this;
        }

        /**
         * @param uri The URI to the script.
         * 
         * @return builder
         * 
         */
        public Builder uri(String uri) {
            return uri(Output.of(uri));
        }

        public RuntimeScriptActionArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("RuntimeScriptActionArgs", "name");
            }
            if ($.roles == null) {
                throw new MissingRequiredPropertyException("RuntimeScriptActionArgs", "roles");
            }
            if ($.uri == null) {
                throw new MissingRequiredPropertyException("RuntimeScriptActionArgs", "uri");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy