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

com.pulumi.azurenative.containerinstance.inputs.ContainerExecArgs Maven / Gradle / Ivy

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The container execution command, for liveness or readiness probe
 * 
 */
public final class ContainerExecArgs extends com.pulumi.resources.ResourceArgs {

    public static final ContainerExecArgs Empty = new ContainerExecArgs();

    /**
     * The commands to execute within the container.
     * 
     */
    @Import(name="command")
    private @Nullable Output> command;

    /**
     * @return The commands to execute within the container.
     * 
     */
    public Optional>> command() {
        return Optional.ofNullable(this.command);
    }

    private ContainerExecArgs() {}

    private ContainerExecArgs(ContainerExecArgs $) {
        this.command = $.command;
    }

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

    public static final class Builder {
        private ContainerExecArgs $;

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

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

        /**
         * @param command The commands to execute within the container.
         * 
         * @return builder
         * 
         */
        public Builder command(@Nullable Output> command) {
            $.command = command;
            return this;
        }

        /**
         * @param command The commands to execute within the container.
         * 
         * @return builder
         * 
         */
        public Builder command(List command) {
            return command(Output.of(command));
        }

        /**
         * @param command The commands to execute within the container.
         * 
         * @return builder
         * 
         */
        public Builder command(String... command) {
            return command(List.of(command));
        }

        public ContainerExecArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy