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

com.pulumi.azurenative.app.inputs.ConfigurationArgs 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.enums.ActiveRevisionsMode;
import com.pulumi.azurenative.app.inputs.DaprArgs;
import com.pulumi.azurenative.app.inputs.IngressArgs;
import com.pulumi.azurenative.app.inputs.RegistryCredentialsArgs;
import com.pulumi.azurenative.app.inputs.SecretArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Non versioned Container App configuration properties that define the mutable settings of a Container app
 * 
 */
public final class ConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConfigurationArgs Empty = new ConfigurationArgs();

    /**
     * ActiveRevisionsMode controls how active revisions are handled for the Container app:
     * <list><item>Multiple: multiple revisions can be active.</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.</item></list>
     * 
     */
    @Import(name="activeRevisionsMode")
    private @Nullable Output> activeRevisionsMode;

    /**
     * @return ActiveRevisionsMode controls how active revisions are handled for the Container app:
     * <list><item>Multiple: multiple revisions can be active.</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.</item></list>
     * 
     */
    public Optional>> activeRevisionsMode() {
        return Optional.ofNullable(this.activeRevisionsMode);
    }

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

    /**
     * Ingress configurations.
     * 
     */
    @Import(name="ingress")
    private @Nullable Output ingress;

    /**
     * @return Ingress configurations.
     * 
     */
    public Optional> ingress() {
        return Optional.ofNullable(this.ingress);
    }

    /**
     * Optional. Max inactive revisions a Container App can have.
     * 
     */
    @Import(name="maxInactiveRevisions")
    private @Nullable Output maxInactiveRevisions;

    /**
     * @return Optional. Max inactive revisions a Container App can have.
     * 
     */
    public Optional> maxInactiveRevisions() {
        return Optional.ofNullable(this.maxInactiveRevisions);
    }

    /**
     * Collection of private container registry credentials for containers used by the Container app
     * 
     */
    @Import(name="registries")
    private @Nullable Output> registries;

    /**
     * @return Collection of private container registry credentials for containers used by the Container app
     * 
     */
    public Optional>> registries() {
        return Optional.ofNullable(this.registries);
    }

    /**
     * Collection of secrets used by a Container app
     * 
     */
    @Import(name="secrets")
    private @Nullable Output> secrets;

    /**
     * @return Collection of secrets used by a Container app
     * 
     */
    public Optional>> secrets() {
        return Optional.ofNullable(this.secrets);
    }

    private ConfigurationArgs() {}

    private ConfigurationArgs(ConfigurationArgs $) {
        this.activeRevisionsMode = $.activeRevisionsMode;
        this.dapr = $.dapr;
        this.ingress = $.ingress;
        this.maxInactiveRevisions = $.maxInactiveRevisions;
        this.registries = $.registries;
        this.secrets = $.secrets;
    }

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

    public static final class Builder {
        private ConfigurationArgs $;

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

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

        /**
         * @param activeRevisionsMode ActiveRevisionsMode controls how active revisions are handled for the Container app:
         * <list><item>Multiple: multiple revisions can be active.</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.</item></list>
         * 
         * @return builder
         * 
         */
        public Builder activeRevisionsMode(@Nullable Output> activeRevisionsMode) {
            $.activeRevisionsMode = activeRevisionsMode;
            return this;
        }

        /**
         * @param activeRevisionsMode ActiveRevisionsMode controls how active revisions are handled for the Container app:
         * <list><item>Multiple: multiple revisions can be active.</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.</item></list>
         * 
         * @return builder
         * 
         */
        public Builder activeRevisionsMode(Either activeRevisionsMode) {
            return activeRevisionsMode(Output.of(activeRevisionsMode));
        }

        /**
         * @param activeRevisionsMode ActiveRevisionsMode controls how active revisions are handled for the Container app:
         * <list><item>Multiple: multiple revisions can be active.</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.</item></list>
         * 
         * @return builder
         * 
         */
        public Builder activeRevisionsMode(String activeRevisionsMode) {
            return activeRevisionsMode(Either.ofLeft(activeRevisionsMode));
        }

        /**
         * @param activeRevisionsMode ActiveRevisionsMode controls how active revisions are handled for the Container app:
         * <list><item>Multiple: multiple revisions can be active.</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode. If no value if provided, this is the default.</item></list>
         * 
         * @return builder
         * 
         */
        public Builder activeRevisionsMode(ActiveRevisionsMode activeRevisionsMode) {
            return activeRevisionsMode(Either.ofRight(activeRevisionsMode));
        }

        /**
         * @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 ingress Ingress configurations.
         * 
         * @return builder
         * 
         */
        public Builder ingress(@Nullable Output ingress) {
            $.ingress = ingress;
            return this;
        }

        /**
         * @param ingress Ingress configurations.
         * 
         * @return builder
         * 
         */
        public Builder ingress(IngressArgs ingress) {
            return ingress(Output.of(ingress));
        }

        /**
         * @param maxInactiveRevisions Optional. Max inactive revisions a Container App can have.
         * 
         * @return builder
         * 
         */
        public Builder maxInactiveRevisions(@Nullable Output maxInactiveRevisions) {
            $.maxInactiveRevisions = maxInactiveRevisions;
            return this;
        }

        /**
         * @param maxInactiveRevisions Optional. Max inactive revisions a Container App can have.
         * 
         * @return builder
         * 
         */
        public Builder maxInactiveRevisions(Integer maxInactiveRevisions) {
            return maxInactiveRevisions(Output.of(maxInactiveRevisions));
        }

        /**
         * @param registries Collection of private container registry credentials for containers used by the Container app
         * 
         * @return builder
         * 
         */
        public Builder registries(@Nullable Output> registries) {
            $.registries = registries;
            return this;
        }

        /**
         * @param registries Collection of private container registry credentials for containers used by the Container app
         * 
         * @return builder
         * 
         */
        public Builder registries(List registries) {
            return registries(Output.of(registries));
        }

        /**
         * @param registries Collection of private container registry credentials for containers used by the Container app
         * 
         * @return builder
         * 
         */
        public Builder registries(RegistryCredentialsArgs... registries) {
            return registries(List.of(registries));
        }

        /**
         * @param secrets Collection of secrets used by a Container app
         * 
         * @return builder
         * 
         */
        public Builder secrets(@Nullable Output> secrets) {
            $.secrets = secrets;
            return this;
        }

        /**
         * @param secrets Collection of secrets used by a Container app
         * 
         * @return builder
         * 
         */
        public Builder secrets(List secrets) {
            return secrets(Output.of(secrets));
        }

        /**
         * @param secrets Collection of secrets used by a Container app
         * 
         * @return builder
         * 
         */
        public Builder secrets(SecretArgs... secrets) {
            return secrets(List.of(secrets));
        }

        public ConfigurationArgs build() {
            $.activeRevisionsMode = Codegen.stringProp("activeRevisionsMode").left(ActiveRevisionsMode.class).output().arg($.activeRevisionsMode).def("Single").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy