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

com.pulumi.azurenative.app.inputs.TemplateArgs 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.ScaleArgs;
import com.pulumi.azurenative.app.inputs.VolumeArgs;
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 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 TemplateArgs extends com.pulumi.resources.ResourceArgs {

    public static final TemplateArgs Empty = new TemplateArgs();

    /**
     * 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);
    }

    /**
     * User friendly suffix that is appended to the revision name
     * 
     */
    @Import(name="revisionSuffix")
    private @Nullable Output revisionSuffix;

    /**
     * @return User friendly suffix that is appended to the revision name
     * 
     */
    public Optional> revisionSuffix() {
        return Optional.ofNullable(this.revisionSuffix);
    }

    /**
     * Scaling properties for the Container App.
     * 
     */
    @Import(name="scale")
    private @Nullable Output scale;

    /**
     * @return Scaling properties for the Container App.
     * 
     */
    public Optional> scale() {
        return Optional.ofNullable(this.scale);
    }

    /**
     * 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 TemplateArgs() {}

    private TemplateArgs(TemplateArgs $) {
        this.containers = $.containers;
        this.initContainers = $.initContainers;
        this.revisionSuffix = $.revisionSuffix;
        this.scale = $.scale;
        this.volumes = $.volumes;
    }

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

    public static final class Builder {
        private TemplateArgs $;

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

        public Builder(TemplateArgs defaults) {
            $ = new TemplateArgs(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 revisionSuffix User friendly suffix that is appended to the revision name
         * 
         * @return builder
         * 
         */
        public Builder revisionSuffix(@Nullable Output revisionSuffix) {
            $.revisionSuffix = revisionSuffix;
            return this;
        }

        /**
         * @param revisionSuffix User friendly suffix that is appended to the revision name
         * 
         * @return builder
         * 
         */
        public Builder revisionSuffix(String revisionSuffix) {
            return revisionSuffix(Output.of(revisionSuffix));
        }

        /**
         * @param scale Scaling properties for the Container App.
         * 
         * @return builder
         * 
         */
        public Builder scale(@Nullable Output scale) {
            $.scale = scale;
            return this;
        }

        /**
         * @param scale Scaling properties for the Container App.
         * 
         * @return builder
         * 
         */
        public Builder scale(ScaleArgs scale) {
            return scale(Output.of(scale));
        }

        /**
         * @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 TemplateArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy