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

com.pulumi.azurenative.app.inputs.JobTemplateArgs 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.app.inputs;

import com.pulumi.azurenative.app.inputs.ContainerArgs;
import com.pulumi.azurenative.app.inputs.InitContainerArgs;
import com.pulumi.azurenative.app.inputs.VolumeArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Container Apps Job versioned application definition. Defines the desired state of an immutable revision. Any changes to this section Will result in a new revision being created
 * 
 */
public final class JobTemplateArgs extends com.pulumi.resources.ResourceArgs {

    public static final JobTemplateArgs Empty = new JobTemplateArgs();

    /**
     * List of container definitions for the Container App.
     * 
     */
    @Import(name="containers")
    private @Nullable Output> containers;

    /**
     * @return List of container definitions for the Container App.
     * 
     */
    public Optional>> containers() {
        return Optional.ofNullable(this.containers);
    }

    /**
     * List of specialized containers that run before app containers.
     * 
     */
    @Import(name="initContainers")
    private @Nullable Output> initContainers;

    /**
     * @return List of specialized containers that run before app containers.
     * 
     */
    public Optional>> initContainers() {
        return Optional.ofNullable(this.initContainers);
    }

    /**
     * List of volume definitions for the Container App.
     * 
     */
    @Import(name="volumes")
    private @Nullable Output> volumes;

    /**
     * @return List of volume definitions for the Container App.
     * 
     */
    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 List of container definitions for the Container App.
         * 
         * @return builder
         * 
         */
        public Builder containers(@Nullable Output> containers) {
            $.containers = containers;
            return this;
        }

        /**
         * @param containers List of container definitions for the Container App.
         * 
         * @return builder
         * 
         */
        public Builder containers(List containers) {
            return containers(Output.of(containers));
        }

        /**
         * @param containers List of container definitions for the Container App.
         * 
         * @return builder
         * 
         */
        public Builder containers(ContainerArgs... containers) {
            return containers(List.of(containers));
        }

        /**
         * @param initContainers List of specialized containers that run before app containers.
         * 
         * @return builder
         * 
         */
        public Builder initContainers(@Nullable Output> initContainers) {
            $.initContainers = initContainers;
            return this;
        }

        /**
         * @param initContainers List of specialized containers that run before app containers.
         * 
         * @return builder
         * 
         */
        public Builder initContainers(List initContainers) {
            return initContainers(Output.of(initContainers));
        }

        /**
         * @param initContainers List of specialized containers that run before app containers.
         * 
         * @return builder
         * 
         */
        public Builder initContainers(InitContainerArgs... initContainers) {
            return initContainers(List.of(initContainers));
        }

        /**
         * @param volumes List of volume definitions for the Container App.
         * 
         * @return builder
         * 
         */
        public Builder volumes(@Nullable Output> volumes) {
            $.volumes = volumes;
            return this;
        }

        /**
         * @param volumes List of volume definitions for the Container App.
         * 
         * @return builder
         * 
         */
        public Builder volumes(List volumes) {
            return volumes(Output.of(volumes));
        }

        /**
         * @param volumes List of volume definitions for the Container App.
         * 
         * @return builder
         * 
         */
        public Builder volumes(VolumeArgs... volumes) {
            return volumes(List.of(volumes));
        }

        public JobTemplateArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy