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

com.pulumi.azure.containerapp.inputs.JobTemplateInitContainerArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.containerapp.inputs;

import com.pulumi.azure.containerapp.inputs.JobTemplateInitContainerEnvArgs;
import com.pulumi.azure.containerapp.inputs.JobTemplateInitContainerVolumeMountArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class JobTemplateInitContainerArgs extends com.pulumi.resources.ResourceArgs {

    public static final JobTemplateInitContainerArgs Empty = new JobTemplateInitContainerArgs();

    /**
     * A list of extra arguments to pass to the container.
     * 
     */
    @Import(name="args")
    private @Nullable Output> args;

    /**
     * @return A list of extra arguments to pass to the container.
     * 
     */
    public Optional>> args() {
        return Optional.ofNullable(this.args);
    }

    /**
     * A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
     * 
     */
    @Import(name="commands")
    private @Nullable Output> commands;

    /**
     * @return A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
     * 
     */
    public Optional>> commands() {
        return Optional.ofNullable(this.commands);
    }

    /**
     * The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`.
     * 
     * > **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`
     * 
     */
    @Import(name="cpu")
    private @Nullable Output cpu;

    /**
     * @return The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`.
     * 
     * > **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`
     * 
     */
    public Optional> cpu() {
        return Optional.ofNullable(this.cpu);
    }

    /**
     * One or more `env` blocks as detailed below.
     * 
     */
    @Import(name="envs")
    private @Nullable Output> envs;

    /**
     * @return One or more `env` blocks as detailed below.
     * 
     */
    public Optional>> envs() {
        return Optional.ofNullable(this.envs);
    }

    /**
     * The amount of ephemeral storage available to the Container App.
     * 
     * > **NOTE:** `ephemeral_storage` is currently in preview and not configurable at this time.
     * 
     */
    @Import(name="ephemeralStorage")
    private @Nullable Output ephemeralStorage;

    /**
     * @return The amount of ephemeral storage available to the Container App.
     * 
     * > **NOTE:** `ephemeral_storage` is currently in preview and not configurable at this time.
     * 
     */
    public Optional> ephemeralStorage() {
        return Optional.ofNullable(this.ephemeralStorage);
    }

    /**
     * The image to use to create the container.
     * 
     */
    @Import(name="image", required=true)
    private Output image;

    /**
     * @return The image to use to create the container.
     * 
     */
    public Output image() {
        return this.image;
    }

    /**
     * The amount of memory to allocate to the container. Possible values are `0.5Gi`, `1Gi`, `1.5Gi`, `2Gi`, `2.5Gi`, `3Gi`, `3.5Gi` and `4Gi`.
     * 
     * > **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`
     * 
     */
    @Import(name="memory")
    private @Nullable Output memory;

    /**
     * @return The amount of memory to allocate to the container. Possible values are `0.5Gi`, `1Gi`, `1.5Gi`, `2Gi`, `2.5Gi`, `3Gi`, `3.5Gi` and `4Gi`.
     * 
     * > **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`
     * 
     */
    public Optional> memory() {
        return Optional.ofNullable(this.memory);
    }

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

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

    /**
     * A `volume_mounts` block as detailed below.
     * 
     */
    @Import(name="volumeMounts")
    private @Nullable Output> volumeMounts;

    /**
     * @return A `volume_mounts` block as detailed below.
     * 
     */
    public Optional>> volumeMounts() {
        return Optional.ofNullable(this.volumeMounts);
    }

    private JobTemplateInitContainerArgs() {}

    private JobTemplateInitContainerArgs(JobTemplateInitContainerArgs $) {
        this.args = $.args;
        this.commands = $.commands;
        this.cpu = $.cpu;
        this.envs = $.envs;
        this.ephemeralStorage = $.ephemeralStorage;
        this.image = $.image;
        this.memory = $.memory;
        this.name = $.name;
        this.volumeMounts = $.volumeMounts;
    }

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

    public static final class Builder {
        private JobTemplateInitContainerArgs $;

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

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

        /**
         * @param args A list of extra arguments to pass to the container.
         * 
         * @return builder
         * 
         */
        public Builder args(@Nullable Output> args) {
            $.args = args;
            return this;
        }

        /**
         * @param args A list of extra arguments to pass to the container.
         * 
         * @return builder
         * 
         */
        public Builder args(List args) {
            return args(Output.of(args));
        }

        /**
         * @param args A list of extra arguments to pass to the container.
         * 
         * @return builder
         * 
         */
        public Builder args(String... args) {
            return args(List.of(args));
        }

        /**
         * @param commands A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
         * 
         * @return builder
         * 
         */
        public Builder commands(@Nullable Output> commands) {
            $.commands = commands;
            return this;
        }

        /**
         * @param commands A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
         * 
         * @return builder
         * 
         */
        public Builder commands(List commands) {
            return commands(Output.of(commands));
        }

        /**
         * @param commands A command to pass to the container to override the default. This is provided as a list of command line elements without spaces.
         * 
         * @return builder
         * 
         */
        public Builder commands(String... commands) {
            return commands(List.of(commands));
        }

        /**
         * @param cpu The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`.
         * 
         * > **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`
         * 
         * @return builder
         * 
         */
        public Builder cpu(@Nullable Output cpu) {
            $.cpu = cpu;
            return this;
        }

        /**
         * @param cpu The amount of vCPU to allocate to the container. Possible values include `0.25`, `0.5`, `0.75`, `1.0`, `1.25`, `1.5`, `1.75`, and `2.0`.
         * 
         * > **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.0` / `2.0` or `0.5` / `1.0`
         * 
         * @return builder
         * 
         */
        public Builder cpu(Double cpu) {
            return cpu(Output.of(cpu));
        }

        /**
         * @param envs One or more `env` blocks as detailed below.
         * 
         * @return builder
         * 
         */
        public Builder envs(@Nullable Output> envs) {
            $.envs = envs;
            return this;
        }

        /**
         * @param envs One or more `env` blocks as detailed below.
         * 
         * @return builder
         * 
         */
        public Builder envs(List envs) {
            return envs(Output.of(envs));
        }

        /**
         * @param envs One or more `env` blocks as detailed below.
         * 
         * @return builder
         * 
         */
        public Builder envs(JobTemplateInitContainerEnvArgs... envs) {
            return envs(List.of(envs));
        }

        /**
         * @param ephemeralStorage The amount of ephemeral storage available to the Container App.
         * 
         * > **NOTE:** `ephemeral_storage` is currently in preview and not configurable at this time.
         * 
         * @return builder
         * 
         */
        public Builder ephemeralStorage(@Nullable Output ephemeralStorage) {
            $.ephemeralStorage = ephemeralStorage;
            return this;
        }

        /**
         * @param ephemeralStorage The amount of ephemeral storage available to the Container App.
         * 
         * > **NOTE:** `ephemeral_storage` is currently in preview and not configurable at this time.
         * 
         * @return builder
         * 
         */
        public Builder ephemeralStorage(String ephemeralStorage) {
            return ephemeralStorage(Output.of(ephemeralStorage));
        }

        /**
         * @param image The image to use to create the container.
         * 
         * @return builder
         * 
         */
        public Builder image(Output image) {
            $.image = image;
            return this;
        }

        /**
         * @param image The image to use to create the container.
         * 
         * @return builder
         * 
         */
        public Builder image(String image) {
            return image(Output.of(image));
        }

        /**
         * @param memory The amount of memory to allocate to the container. Possible values are `0.5Gi`, `1Gi`, `1.5Gi`, `2Gi`, `2.5Gi`, `3Gi`, `3.5Gi` and `4Gi`.
         * 
         * > **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`
         * 
         * @return builder
         * 
         */
        public Builder memory(@Nullable Output memory) {
            $.memory = memory;
            return this;
        }

        /**
         * @param memory The amount of memory to allocate to the container. Possible values are `0.5Gi`, `1Gi`, `1.5Gi`, `2Gi`, `2.5Gi`, `3Gi`, `3.5Gi` and `4Gi`.
         * 
         * > **NOTE:** `cpu` and `memory` must be specified in `0.25'/'0.5Gi` combination increments. e.g. `1.25` / `2.5Gi` or `0.75` / `1.5Gi`
         * 
         * @return builder
         * 
         */
        public Builder memory(String memory) {
            return memory(Output.of(memory));
        }

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

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

        /**
         * @param volumeMounts A `volume_mounts` block as detailed below.
         * 
         * @return builder
         * 
         */
        public Builder volumeMounts(@Nullable Output> volumeMounts) {
            $.volumeMounts = volumeMounts;
            return this;
        }

        /**
         * @param volumeMounts A `volume_mounts` block as detailed below.
         * 
         * @return builder
         * 
         */
        public Builder volumeMounts(List volumeMounts) {
            return volumeMounts(Output.of(volumeMounts));
        }

        /**
         * @param volumeMounts A `volume_mounts` block as detailed below.
         * 
         * @return builder
         * 
         */
        public Builder volumeMounts(JobTemplateInitContainerVolumeMountArgs... volumeMounts) {
            return volumeMounts(List.of(volumeMounts));
        }

        public JobTemplateInitContainerArgs build() {
            if ($.image == null) {
                throw new MissingRequiredPropertyException("JobTemplateInitContainerArgs", "image");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("JobTemplateInitContainerArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy