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

com.pulumi.kubernetes.helm.v4.inputs.PostRendererArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
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.kubernetes.helm.v4.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;


/**
 * Specification defining the post-renderer to use.
 * 
 */
public final class PostRendererArgs extends com.pulumi.resources.ResourceArgs {

    public static final PostRendererArgs Empty = new PostRendererArgs();

    /**
     * Arguments to pass to the post-renderer command.
     * 
     */
    @Import(name="args")
    private @Nullable Output> args;

    /**
     * @return Arguments to pass to the post-renderer command.
     * 
     */
    public Optional>> args() {
        return Optional.ofNullable(this.args);
    }

    /**
     * Path to an executable to be used for post rendering.
     * 
     */
    @Import(name="command", required=true)
    private Output command;

    /**
     * @return Path to an executable to be used for post rendering.
     * 
     */
    public Output command() {
        return this.command;
    }

    private PostRendererArgs() {}

    private PostRendererArgs(PostRendererArgs $) {
        this.args = $.args;
        this.command = $.command;
    }

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

    public static final class Builder {
        private PostRendererArgs $;

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

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

        /**
         * @param args Arguments to pass to the post-renderer command.
         * 
         * @return builder
         * 
         */
        public Builder args(@Nullable Output> args) {
            $.args = args;
            return this;
        }

        /**
         * @param args Arguments to pass to the post-renderer command.
         * 
         * @return builder
         * 
         */
        public Builder args(List args) {
            return args(Output.of(args));
        }

        /**
         * @param args Arguments to pass to the post-renderer command.
         * 
         * @return builder
         * 
         */
        public Builder args(String... args) {
            return args(List.of(args));
        }

        /**
         * @param command Path to an executable to be used for post rendering.
         * 
         * @return builder
         * 
         */
        public Builder command(Output command) {
            $.command = command;
            return this;
        }

        /**
         * @param command Path to an executable to be used for post rendering.
         * 
         * @return builder
         * 
         */
        public Builder command(String command) {
            return command(Output.of(command));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy