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

com.pulumi.azurenative.web.inputs.ContainerArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.web.inputs.ContainerResourcesArgs;
import com.pulumi.azurenative.web.inputs.EnvironmentVarArgs;
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;


/**
 * Container App container definition.
 * 
 */
public final class ContainerArgs extends com.pulumi.resources.ResourceArgs {

    public static final ContainerArgs Empty = new ContainerArgs();

    /**
     * Container start command arguments.
     * 
     */
    @Import(name="args")
    private @Nullable Output> args;

    /**
     * @return Container start command arguments.
     * 
     */
    public Optional>> args() {
        return Optional.ofNullable(this.args);
    }

    /**
     * Container start command.
     * 
     */
    @Import(name="command")
    private @Nullable Output> command;

    /**
     * @return Container start command.
     * 
     */
    public Optional>> command() {
        return Optional.ofNullable(this.command);
    }

    /**
     * Container environment variables.
     * 
     */
    @Import(name="env")
    private @Nullable Output> env;

    /**
     * @return Container environment variables.
     * 
     */
    public Optional>> env() {
        return Optional.ofNullable(this.env);
    }

    /**
     * Container image tag.
     * 
     */
    @Import(name="image")
    private @Nullable Output image;

    /**
     * @return Container image tag.
     * 
     */
    public Optional> image() {
        return Optional.ofNullable(this.image);
    }

    /**
     * Custom container name.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Custom container name.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Container resource requirements.
     * 
     */
    @Import(name="resources")
    private @Nullable Output resources;

    /**
     * @return Container resource requirements.
     * 
     */
    public Optional> resources() {
        return Optional.ofNullable(this.resources);
    }

    private ContainerArgs() {}

    private ContainerArgs(ContainerArgs $) {
        this.args = $.args;
        this.command = $.command;
        this.env = $.env;
        this.image = $.image;
        this.name = $.name;
        this.resources = $.resources;
    }

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

    public static final class Builder {
        private ContainerArgs $;

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

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

        /**
         * @param args Container start command arguments.
         * 
         * @return builder
         * 
         */
        public Builder args(@Nullable Output> args) {
            $.args = args;
            return this;
        }

        /**
         * @param args Container start command arguments.
         * 
         * @return builder
         * 
         */
        public Builder args(List args) {
            return args(Output.of(args));
        }

        /**
         * @param args Container start command arguments.
         * 
         * @return builder
         * 
         */
        public Builder args(String... args) {
            return args(List.of(args));
        }

        /**
         * @param command Container start command.
         * 
         * @return builder
         * 
         */
        public Builder command(@Nullable Output> command) {
            $.command = command;
            return this;
        }

        /**
         * @param command Container start command.
         * 
         * @return builder
         * 
         */
        public Builder command(List command) {
            return command(Output.of(command));
        }

        /**
         * @param command Container start command.
         * 
         * @return builder
         * 
         */
        public Builder command(String... command) {
            return command(List.of(command));
        }

        /**
         * @param env Container environment variables.
         * 
         * @return builder
         * 
         */
        public Builder env(@Nullable Output> env) {
            $.env = env;
            return this;
        }

        /**
         * @param env Container environment variables.
         * 
         * @return builder
         * 
         */
        public Builder env(List env) {
            return env(Output.of(env));
        }

        /**
         * @param env Container environment variables.
         * 
         * @return builder
         * 
         */
        public Builder env(EnvironmentVarArgs... env) {
            return env(List.of(env));
        }

        /**
         * @param image Container image tag.
         * 
         * @return builder
         * 
         */
        public Builder image(@Nullable Output image) {
            $.image = image;
            return this;
        }

        /**
         * @param image Container image tag.
         * 
         * @return builder
         * 
         */
        public Builder image(String image) {
            return image(Output.of(image));
        }

        /**
         * @param name Custom container name.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Custom container name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resources Container resource requirements.
         * 
         * @return builder
         * 
         */
        public Builder resources(@Nullable Output resources) {
            $.resources = resources;
            return this;
        }

        /**
         * @param resources Container resource requirements.
         * 
         * @return builder
         * 
         */
        public Builder resources(ContainerResourcesArgs resources) {
            return resources(Output.of(resources));
        }

        public ContainerArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy