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

com.pulumi.azurenative.app.ManagedEnvironmentArgs 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;

import com.pulumi.azurenative.app.inputs.AppLogsConfigurationArgs;
import com.pulumi.azurenative.app.inputs.CustomDomainConfigurationArgs;
import com.pulumi.azurenative.app.inputs.EnvironmentSkuPropertiesArgs;
import com.pulumi.azurenative.app.inputs.VnetConfigurationArgs;
import com.pulumi.azurenative.app.inputs.WorkloadProfileArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ManagedEnvironmentArgs Empty = new ManagedEnvironmentArgs();

    /**
     * Cluster configuration which enables the log daemon to export
     * app logs to a destination. Currently only "log-analytics" is
     * supported
     * 
     */
    @Import(name="appLogsConfiguration")
    private @Nullable Output appLogsConfiguration;

    /**
     * @return Cluster configuration which enables the log daemon to export
     * app logs to a destination. Currently only "log-analytics" is
     * supported
     * 
     */
    public Optional> appLogsConfiguration() {
        return Optional.ofNullable(this.appLogsConfiguration);
    }

    /**
     * Custom domain configuration for the environment
     * 
     */
    @Import(name="customDomainConfiguration")
    private @Nullable Output customDomainConfiguration;

    /**
     * @return Custom domain configuration for the environment
     * 
     */
    public Optional> customDomainConfiguration() {
        return Optional.ofNullable(this.customDomainConfiguration);
    }

    /**
     * Application Insights connection string used by Dapr to export Service to Service communication telemetry
     * 
     */
    @Import(name="daprAIConnectionString")
    private @Nullable Output daprAIConnectionString;

    /**
     * @return Application Insights connection string used by Dapr to export Service to Service communication telemetry
     * 
     */
    public Optional> daprAIConnectionString() {
        return Optional.ofNullable(this.daprAIConnectionString);
    }

    /**
     * Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry
     * 
     */
    @Import(name="daprAIInstrumentationKey")
    private @Nullable Output daprAIInstrumentationKey;

    /**
     * @return Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry
     * 
     */
    public Optional> daprAIInstrumentationKey() {
        return Optional.ofNullable(this.daprAIInstrumentationKey);
    }

    /**
     * Name of the Environment.
     * 
     */
    @Import(name="environmentName")
    private @Nullable Output environmentName;

    /**
     * @return Name of the Environment.
     * 
     */
    public Optional> environmentName() {
        return Optional.ofNullable(this.environmentName);
    }

    /**
     * Kind of the Environment.
     * 
     */
    @Import(name="kind")
    private @Nullable Output kind;

    /**
     * @return Kind of the Environment.
     * 
     */
    public Optional> kind() {
        return Optional.ofNullable(this.kind);
    }

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

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

    /**
     * SKU properties of the Environment.
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return SKU properties of the Environment.
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

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

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

    /**
     * Vnet configuration for the environment
     * 
     */
    @Import(name="vnetConfiguration")
    private @Nullable Output vnetConfiguration;

    /**
     * @return Vnet configuration for the environment
     * 
     */
    public Optional> vnetConfiguration() {
        return Optional.ofNullable(this.vnetConfiguration);
    }

    /**
     * Workload profiles configured for the Managed Environment.
     * 
     */
    @Import(name="workloadProfiles")
    private @Nullable Output> workloadProfiles;

    /**
     * @return Workload profiles configured for the Managed Environment.
     * 
     */
    public Optional>> workloadProfiles() {
        return Optional.ofNullable(this.workloadProfiles);
    }

    /**
     * Whether or not this Managed Environment is zone-redundant.
     * 
     */
    @Import(name="zoneRedundant")
    private @Nullable Output zoneRedundant;

    /**
     * @return Whether or not this Managed Environment is zone-redundant.
     * 
     */
    public Optional> zoneRedundant() {
        return Optional.ofNullable(this.zoneRedundant);
    }

    private ManagedEnvironmentArgs() {}

    private ManagedEnvironmentArgs(ManagedEnvironmentArgs $) {
        this.appLogsConfiguration = $.appLogsConfiguration;
        this.customDomainConfiguration = $.customDomainConfiguration;
        this.daprAIConnectionString = $.daprAIConnectionString;
        this.daprAIInstrumentationKey = $.daprAIInstrumentationKey;
        this.environmentName = $.environmentName;
        this.kind = $.kind;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
        this.vnetConfiguration = $.vnetConfiguration;
        this.workloadProfiles = $.workloadProfiles;
        this.zoneRedundant = $.zoneRedundant;
    }

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

    public static final class Builder {
        private ManagedEnvironmentArgs $;

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

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

        /**
         * @param appLogsConfiguration Cluster configuration which enables the log daemon to export
         * app logs to a destination. Currently only "log-analytics" is
         * supported
         * 
         * @return builder
         * 
         */
        public Builder appLogsConfiguration(@Nullable Output appLogsConfiguration) {
            $.appLogsConfiguration = appLogsConfiguration;
            return this;
        }

        /**
         * @param appLogsConfiguration Cluster configuration which enables the log daemon to export
         * app logs to a destination. Currently only "log-analytics" is
         * supported
         * 
         * @return builder
         * 
         */
        public Builder appLogsConfiguration(AppLogsConfigurationArgs appLogsConfiguration) {
            return appLogsConfiguration(Output.of(appLogsConfiguration));
        }

        /**
         * @param customDomainConfiguration Custom domain configuration for the environment
         * 
         * @return builder
         * 
         */
        public Builder customDomainConfiguration(@Nullable Output customDomainConfiguration) {
            $.customDomainConfiguration = customDomainConfiguration;
            return this;
        }

        /**
         * @param customDomainConfiguration Custom domain configuration for the environment
         * 
         * @return builder
         * 
         */
        public Builder customDomainConfiguration(CustomDomainConfigurationArgs customDomainConfiguration) {
            return customDomainConfiguration(Output.of(customDomainConfiguration));
        }

        /**
         * @param daprAIConnectionString Application Insights connection string used by Dapr to export Service to Service communication telemetry
         * 
         * @return builder
         * 
         */
        public Builder daprAIConnectionString(@Nullable Output daprAIConnectionString) {
            $.daprAIConnectionString = daprAIConnectionString;
            return this;
        }

        /**
         * @param daprAIConnectionString Application Insights connection string used by Dapr to export Service to Service communication telemetry
         * 
         * @return builder
         * 
         */
        public Builder daprAIConnectionString(String daprAIConnectionString) {
            return daprAIConnectionString(Output.of(daprAIConnectionString));
        }

        /**
         * @param daprAIInstrumentationKey Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry
         * 
         * @return builder
         * 
         */
        public Builder daprAIInstrumentationKey(@Nullable Output daprAIInstrumentationKey) {
            $.daprAIInstrumentationKey = daprAIInstrumentationKey;
            return this;
        }

        /**
         * @param daprAIInstrumentationKey Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry
         * 
         * @return builder
         * 
         */
        public Builder daprAIInstrumentationKey(String daprAIInstrumentationKey) {
            return daprAIInstrumentationKey(Output.of(daprAIInstrumentationKey));
        }

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

        /**
         * @param environmentName Name of the Environment.
         * 
         * @return builder
         * 
         */
        public Builder environmentName(String environmentName) {
            return environmentName(Output.of(environmentName));
        }

        /**
         * @param kind Kind of the Environment.
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Kind of the Environment.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

        /**
         * @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 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 sku SKU properties of the Environment.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku SKU properties of the Environment.
         * 
         * @return builder
         * 
         */
        public Builder sku(EnvironmentSkuPropertiesArgs sku) {
            return sku(Output.of(sku));
        }

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

        /**
         * @param vnetConfiguration Vnet configuration for the environment
         * 
         * @return builder
         * 
         */
        public Builder vnetConfiguration(VnetConfigurationArgs vnetConfiguration) {
            return vnetConfiguration(Output.of(vnetConfiguration));
        }

        /**
         * @param workloadProfiles Workload profiles configured for the Managed Environment.
         * 
         * @return builder
         * 
         */
        public Builder workloadProfiles(@Nullable Output> workloadProfiles) {
            $.workloadProfiles = workloadProfiles;
            return this;
        }

        /**
         * @param workloadProfiles Workload profiles configured for the Managed Environment.
         * 
         * @return builder
         * 
         */
        public Builder workloadProfiles(List workloadProfiles) {
            return workloadProfiles(Output.of(workloadProfiles));
        }

        /**
         * @param workloadProfiles Workload profiles configured for the Managed Environment.
         * 
         * @return builder
         * 
         */
        public Builder workloadProfiles(WorkloadProfileArgs... workloadProfiles) {
            return workloadProfiles(List.of(workloadProfiles));
        }

        /**
         * @param zoneRedundant Whether or not this Managed Environment is zone-redundant.
         * 
         * @return builder
         * 
         */
        public Builder zoneRedundant(@Nullable Output zoneRedundant) {
            $.zoneRedundant = zoneRedundant;
            return this;
        }

        /**
         * @param zoneRedundant Whether or not this Managed Environment is zone-redundant.
         * 
         * @return builder
         * 
         */
        public Builder zoneRedundant(Boolean zoneRedundant) {
            return zoneRedundant(Output.of(zoneRedundant));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy