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

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

There is a newer version: 2.72.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.ContainerArgs;
import com.pulumi.azurenative.web.inputs.DaprArgs;
import com.pulumi.azurenative.web.inputs.ScaleArgs;
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);
    }

    /**
     * Dapr configuration for the Container App.
     * 
     */
    @Import(name="dapr")
    private @Nullable Output dapr;

    /**
     * @return Dapr configuration for the Container App.
     * 
     */
    public Optional> dapr() {
        return Optional.ofNullable(this.dapr);
    }

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

    private TemplateArgs() {}

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

    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 dapr Dapr configuration for the Container App.
         * 
         * @return builder
         * 
         */
        public Builder dapr(@Nullable Output dapr) {
            $.dapr = dapr;
            return this;
        }

        /**
         * @param dapr Dapr configuration for the Container App.
         * 
         * @return builder
         * 
         */
        public Builder dapr(DaprArgs dapr) {
            return dapr(Output.of(dapr));
        }

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

        public TemplateArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy