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

com.pulumi.azurenative.app.ContainerAppArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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;

import com.pulumi.azurenative.app.inputs.ConfigurationArgs;
import com.pulumi.azurenative.app.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.app.inputs.ManagedServiceIdentityArgs;
import com.pulumi.azurenative.app.inputs.TemplateArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ContainerAppArgs extends com.pulumi.resources.ResourceArgs {

    public static final ContainerAppArgs Empty = new ContainerAppArgs();

    /**
     * Non versioned Container App configuration properties.
     * 
     */
    @Import(name="configuration")
    private @Nullable Output configuration;

    /**
     * @return Non versioned Container App configuration properties.
     * 
     */
    public Optional> configuration() {
        return Optional.ofNullable(this.configuration);
    }

    /**
     * Name of the Container App.
     * 
     */
    @Import(name="containerAppName")
    private @Nullable Output containerAppName;

    /**
     * @return Name of the Container App.
     * 
     */
    public Optional> containerAppName() {
        return Optional.ofNullable(this.containerAppName);
    }

    /**
     * Resource ID of environment.
     * 
     */
    @Import(name="environmentId")
    private @Nullable Output environmentId;

    /**
     * @return Resource ID of environment.
     * 
     */
    public Optional> environmentId() {
        return Optional.ofNullable(this.environmentId);
    }

    /**
     * The complex type of the extended location.
     * 
     */
    @Import(name="extendedLocation")
    private @Nullable Output extendedLocation;

    /**
     * @return The complex type of the extended location.
     * 
     */
    public Optional> extendedLocation() {
        return Optional.ofNullable(this.extendedLocation);
    }

    /**
     * managed identities for the Container App to interact with other Azure services without maintaining any secrets or credentials in code.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return managed identities for the Container App to interact with other Azure services without maintaining any secrets or credentials in code.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Deprecated. Resource ID of the Container App's environment.
     * 
     */
    @Import(name="managedEnvironmentId")
    private @Nullable Output managedEnvironmentId;

    /**
     * @return Deprecated. Resource ID of the Container App's environment.
     * 
     */
    public Optional> managedEnvironmentId() {
        return Optional.ofNullable(this.managedEnvironmentId);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Container App versioned application definition.
     * 
     */
    @Import(name="template")
    private @Nullable Output template;

    /**
     * @return Container App versioned application definition.
     * 
     */
    public Optional> template() {
        return Optional.ofNullable(this.template);
    }

    /**
     * Workload profile type to pin for container app execution.
     * 
     */
    @Import(name="workloadProfileType")
    private @Nullable Output workloadProfileType;

    /**
     * @return Workload profile type to pin for container app execution.
     * 
     */
    public Optional> workloadProfileType() {
        return Optional.ofNullable(this.workloadProfileType);
    }

    private ContainerAppArgs() {}

    private ContainerAppArgs(ContainerAppArgs $) {
        this.configuration = $.configuration;
        this.containerAppName = $.containerAppName;
        this.environmentId = $.environmentId;
        this.extendedLocation = $.extendedLocation;
        this.identity = $.identity;
        this.location = $.location;
        this.managedEnvironmentId = $.managedEnvironmentId;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.template = $.template;
        this.workloadProfileType = $.workloadProfileType;
    }

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

    public static final class Builder {
        private ContainerAppArgs $;

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

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

        /**
         * @param configuration Non versioned Container App configuration properties.
         * 
         * @return builder
         * 
         */
        public Builder configuration(@Nullable Output configuration) {
            $.configuration = configuration;
            return this;
        }

        /**
         * @param configuration Non versioned Container App configuration properties.
         * 
         * @return builder
         * 
         */
        public Builder configuration(ConfigurationArgs configuration) {
            return configuration(Output.of(configuration));
        }

        /**
         * @param containerAppName Name of the Container App.
         * 
         * @return builder
         * 
         */
        public Builder containerAppName(@Nullable Output containerAppName) {
            $.containerAppName = containerAppName;
            return this;
        }

        /**
         * @param containerAppName Name of the Container App.
         * 
         * @return builder
         * 
         */
        public Builder containerAppName(String containerAppName) {
            return containerAppName(Output.of(containerAppName));
        }

        /**
         * @param environmentId Resource ID of environment.
         * 
         * @return builder
         * 
         */
        public Builder environmentId(@Nullable Output environmentId) {
            $.environmentId = environmentId;
            return this;
        }

        /**
         * @param environmentId Resource ID of environment.
         * 
         * @return builder
         * 
         */
        public Builder environmentId(String environmentId) {
            return environmentId(Output.of(environmentId));
        }

        /**
         * @param extendedLocation The complex type of the extended location.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(@Nullable Output extendedLocation) {
            $.extendedLocation = extendedLocation;
            return this;
        }

        /**
         * @param extendedLocation The complex type of the extended location.
         * 
         * @return builder
         * 
         */
        public Builder extendedLocation(ExtendedLocationArgs extendedLocation) {
            return extendedLocation(Output.of(extendedLocation));
        }

        /**
         * @param identity managed identities for the Container App to interact with other Azure services without maintaining any secrets or credentials in code.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity managed identities for the Container App to interact with other Azure services without maintaining any secrets or credentials in code.
         * 
         * @return builder
         * 
         */
        public Builder identity(ManagedServiceIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param managedEnvironmentId Deprecated. Resource ID of the Container App's environment.
         * 
         * @return builder
         * 
         */
        public Builder managedEnvironmentId(@Nullable Output managedEnvironmentId) {
            $.managedEnvironmentId = managedEnvironmentId;
            return this;
        }

        /**
         * @param managedEnvironmentId Deprecated. Resource ID of the Container App's environment.
         * 
         * @return builder
         * 
         */
        public Builder managedEnvironmentId(String managedEnvironmentId) {
            return managedEnvironmentId(Output.of(managedEnvironmentId));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param template Container App versioned application definition.
         * 
         * @return builder
         * 
         */
        public Builder template(@Nullable Output template) {
            $.template = template;
            return this;
        }

        /**
         * @param template Container App versioned application definition.
         * 
         * @return builder
         * 
         */
        public Builder template(TemplateArgs template) {
            return template(Output.of(template));
        }

        /**
         * @param workloadProfileType Workload profile type to pin for container app execution.
         * 
         * @return builder
         * 
         */
        public Builder workloadProfileType(@Nullable Output workloadProfileType) {
            $.workloadProfileType = workloadProfileType;
            return this;
        }

        /**
         * @param workloadProfileType Workload profile type to pin for container app execution.
         * 
         * @return builder
         * 
         */
        public Builder workloadProfileType(String workloadProfileType) {
            return workloadProfileType(Output.of(workloadProfileType));
        }

        public ContainerAppArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ContainerAppArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy