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

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

import com.pulumi.azurenative.web.enums.ActiveRevisionsMode;
import com.pulumi.azurenative.web.inputs.IngressArgs;
import com.pulumi.azurenative.web.inputs.RegistryCredentialsArgs;
import com.pulumi.azurenative.web.inputs.SecretArgs;
import com.pulumi.core.Either;
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;


/**
 * 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. If no value if provided, this is the default</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode</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. If no value if provided, this is the default</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode</item></list>
     * 
     */
    public Optional>> activeRevisionsMode() {
        return Optional.ofNullable(this.activeRevisionsMode);
    }

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

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

    /**
     * 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.ingress = $.ingress;
        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. If no value if provided, this is the default</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode</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. If no value if provided, this is the default</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode</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. If no value if provided, this is the default</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode</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. If no value if provided, this is the default</item><item>Single: Only one revision can be active at a time. Revision weights can not be used in this mode</item></list>
         * 
         * @return builder
         * 
         */
        public Builder activeRevisionsMode(ActiveRevisionsMode activeRevisionsMode) {
            return activeRevisionsMode(Either.ofRight(activeRevisionsMode));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy