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

com.pulumi.azure.containerapp.inputs.JobTemplateArgs 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.JobTemplateContainerArgs;
import com.pulumi.azure.containerapp.inputs.JobTemplateInitContainerArgs;
import com.pulumi.azure.containerapp.inputs.JobTemplateVolumeArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final JobTemplateArgs Empty = new JobTemplateArgs();

    /**
     * A `container` block as defined below.
     * 
     */
    @Import(name="containers", required=true)
    private Output> containers;

    /**
     * @return A `container` block as defined below.
     * 
     */
    public Output> containers() {
        return this.containers;
    }

    /**
     * A `init_container` block as defined below.
     * 
     */
    @Import(name="initContainers")
    private @Nullable Output> initContainers;

    /**
     * @return A `init_container` block as defined below.
     * 
     */
    public Optional>> initContainers() {
        return Optional.ofNullable(this.initContainers);
    }

    /**
     * A `volume` block as defined below.
     * 
     */
    @Import(name="volumes")
    private @Nullable Output> volumes;

    /**
     * @return A `volume` block as defined below.
     * 
     */
    public Optional>> volumes() {
        return Optional.ofNullable(this.volumes);
    }

    private JobTemplateArgs() {}

    private JobTemplateArgs(JobTemplateArgs $) {
        this.containers = $.containers;
        this.initContainers = $.initContainers;
        this.volumes = $.volumes;
    }

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

    public static final class Builder {
        private JobTemplateArgs $;

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

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

        /**
         * @param containers A `container` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder containers(Output> containers) {
            $.containers = containers;
            return this;
        }

        /**
         * @param containers A `container` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder containers(List containers) {
            return containers(Output.of(containers));
        }

        /**
         * @param containers A `container` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder containers(JobTemplateContainerArgs... containers) {
            return containers(List.of(containers));
        }

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

        /**
         * @param initContainers A `init_container` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder initContainers(List initContainers) {
            return initContainers(Output.of(initContainers));
        }

        /**
         * @param initContainers A `init_container` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder initContainers(JobTemplateInitContainerArgs... initContainers) {
            return initContainers(List.of(initContainers));
        }

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

        /**
         * @param volumes A `volume` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder volumes(List volumes) {
            return volumes(Output.of(volumes));
        }

        /**
         * @param volumes A `volume` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder volumes(JobTemplateVolumeArgs... volumes) {
            return volumes(List.of(volumes));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy