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

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

import com.pulumi.azurenative.web.enums.LoadBalancingMode;
import com.pulumi.azurenative.web.enums.UpgradePreference;
import com.pulumi.azurenative.web.inputs.AseV3NetworkingConfigurationArgs;
import com.pulumi.azurenative.web.inputs.CustomDnsSuffixConfigurationArgs;
import com.pulumi.azurenative.web.inputs.NameValuePairArgs;
import com.pulumi.azurenative.web.inputs.VirtualNetworkProfileArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
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 AppServiceEnvironmentArgs extends com.pulumi.resources.ResourceArgs {

    public static final AppServiceEnvironmentArgs Empty = new AppServiceEnvironmentArgs();

    /**
     * Custom settings for changing the behavior of the App Service Environment.
     * 
     */
    @Import(name="clusterSettings")
    private @Nullable Output> clusterSettings;

    /**
     * @return Custom settings for changing the behavior of the App Service Environment.
     * 
     */
    public Optional>> clusterSettings() {
        return Optional.ofNullable(this.clusterSettings);
    }

    /**
     * Full view of the custom domain suffix configuration for ASEv3.
     * 
     */
    @Import(name="customDnsSuffixConfiguration")
    private @Nullable Output customDnsSuffixConfiguration;

    /**
     * @return Full view of the custom domain suffix configuration for ASEv3.
     * 
     */
    public Optional> customDnsSuffixConfiguration() {
        return Optional.ofNullable(this.customDnsSuffixConfiguration);
    }

    /**
     * Dedicated Host Count
     * 
     */
    @Import(name="dedicatedHostCount")
    private @Nullable Output dedicatedHostCount;

    /**
     * @return Dedicated Host Count
     * 
     */
    public Optional> dedicatedHostCount() {
        return Optional.ofNullable(this.dedicatedHostCount);
    }

    /**
     * DNS suffix of the App Service Environment.
     * 
     */
    @Import(name="dnsSuffix")
    private @Nullable Output dnsSuffix;

    /**
     * @return DNS suffix of the App Service Environment.
     * 
     */
    public Optional> dnsSuffix() {
        return Optional.ofNullable(this.dnsSuffix);
    }

    /**
     * Scale factor for front-ends.
     * 
     */
    @Import(name="frontEndScaleFactor")
    private @Nullable Output frontEndScaleFactor;

    /**
     * @return Scale factor for front-ends.
     * 
     */
    public Optional> frontEndScaleFactor() {
        return Optional.ofNullable(this.frontEndScaleFactor);
    }

    /**
     * Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment.
     * 
     */
    @Import(name="internalLoadBalancingMode")
    private @Nullable Output> internalLoadBalancingMode;

    /**
     * @return Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment.
     * 
     */
    public Optional>> internalLoadBalancingMode() {
        return Optional.ofNullable(this.internalLoadBalancingMode);
    }

    /**
     * Number of IP SSL addresses reserved for the App Service Environment.
     * 
     */
    @Import(name="ipsslAddressCount")
    private @Nullable Output ipsslAddressCount;

    /**
     * @return Number of IP SSL addresses reserved for the App Service Environment.
     * 
     */
    public Optional> ipsslAddressCount() {
        return Optional.ofNullable(this.ipsslAddressCount);
    }

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

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

    /**
     * Resource Location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

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

    /**
     * Front-end VM size, e.g. "Medium", "Large".
     * 
     */
    @Import(name="multiSize")
    private @Nullable Output multiSize;

    /**
     * @return Front-end VM size, e.g. "Medium", "Large".
     * 
     */
    public Optional> multiSize() {
        return Optional.ofNullable(this.multiSize);
    }

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

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

    /**
     * Full view of networking configuration for an ASE.
     * 
     */
    @Import(name="networkingConfiguration")
    private @Nullable Output networkingConfiguration;

    /**
     * @return Full view of networking configuration for an ASE.
     * 
     */
    public Optional> networkingConfiguration() {
        return Optional.ofNullable(this.networkingConfiguration);
    }

    /**
     * Name of the resource group to which the resource belongs.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the resource group to which the resource belongs.
     * 
     */
    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);
    }

    /**
     * Upgrade Preference
     * 
     */
    @Import(name="upgradePreference")
    private @Nullable Output> upgradePreference;

    /**
     * @return Upgrade Preference
     * 
     */
    public Optional>> upgradePreference() {
        return Optional.ofNullable(this.upgradePreference);
    }

    /**
     * User added ip ranges to whitelist on ASE db
     * 
     */
    @Import(name="userWhitelistedIpRanges")
    private @Nullable Output> userWhitelistedIpRanges;

    /**
     * @return User added ip ranges to whitelist on ASE db
     * 
     */
    public Optional>> userWhitelistedIpRanges() {
        return Optional.ofNullable(this.userWhitelistedIpRanges);
    }

    /**
     * Description of the Virtual Network.
     * 
     */
    @Import(name="virtualNetwork", required=true)
    private Output virtualNetwork;

    /**
     * @return Description of the Virtual Network.
     * 
     */
    public Output virtualNetwork() {
        return this.virtualNetwork;
    }

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

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

    private AppServiceEnvironmentArgs() {}

    private AppServiceEnvironmentArgs(AppServiceEnvironmentArgs $) {
        this.clusterSettings = $.clusterSettings;
        this.customDnsSuffixConfiguration = $.customDnsSuffixConfiguration;
        this.dedicatedHostCount = $.dedicatedHostCount;
        this.dnsSuffix = $.dnsSuffix;
        this.frontEndScaleFactor = $.frontEndScaleFactor;
        this.internalLoadBalancingMode = $.internalLoadBalancingMode;
        this.ipsslAddressCount = $.ipsslAddressCount;
        this.kind = $.kind;
        this.location = $.location;
        this.multiSize = $.multiSize;
        this.name = $.name;
        this.networkingConfiguration = $.networkingConfiguration;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.upgradePreference = $.upgradePreference;
        this.userWhitelistedIpRanges = $.userWhitelistedIpRanges;
        this.virtualNetwork = $.virtualNetwork;
        this.zoneRedundant = $.zoneRedundant;
    }

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

    public static final class Builder {
        private AppServiceEnvironmentArgs $;

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

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

        /**
         * @param clusterSettings Custom settings for changing the behavior of the App Service Environment.
         * 
         * @return builder
         * 
         */
        public Builder clusterSettings(@Nullable Output> clusterSettings) {
            $.clusterSettings = clusterSettings;
            return this;
        }

        /**
         * @param clusterSettings Custom settings for changing the behavior of the App Service Environment.
         * 
         * @return builder
         * 
         */
        public Builder clusterSettings(List clusterSettings) {
            return clusterSettings(Output.of(clusterSettings));
        }

        /**
         * @param clusterSettings Custom settings for changing the behavior of the App Service Environment.
         * 
         * @return builder
         * 
         */
        public Builder clusterSettings(NameValuePairArgs... clusterSettings) {
            return clusterSettings(List.of(clusterSettings));
        }

        /**
         * @param customDnsSuffixConfiguration Full view of the custom domain suffix configuration for ASEv3.
         * 
         * @return builder
         * 
         */
        public Builder customDnsSuffixConfiguration(@Nullable Output customDnsSuffixConfiguration) {
            $.customDnsSuffixConfiguration = customDnsSuffixConfiguration;
            return this;
        }

        /**
         * @param customDnsSuffixConfiguration Full view of the custom domain suffix configuration for ASEv3.
         * 
         * @return builder
         * 
         */
        public Builder customDnsSuffixConfiguration(CustomDnsSuffixConfigurationArgs customDnsSuffixConfiguration) {
            return customDnsSuffixConfiguration(Output.of(customDnsSuffixConfiguration));
        }

        /**
         * @param dedicatedHostCount Dedicated Host Count
         * 
         * @return builder
         * 
         */
        public Builder dedicatedHostCount(@Nullable Output dedicatedHostCount) {
            $.dedicatedHostCount = dedicatedHostCount;
            return this;
        }

        /**
         * @param dedicatedHostCount Dedicated Host Count
         * 
         * @return builder
         * 
         */
        public Builder dedicatedHostCount(Integer dedicatedHostCount) {
            return dedicatedHostCount(Output.of(dedicatedHostCount));
        }

        /**
         * @param dnsSuffix DNS suffix of the App Service Environment.
         * 
         * @return builder
         * 
         */
        public Builder dnsSuffix(@Nullable Output dnsSuffix) {
            $.dnsSuffix = dnsSuffix;
            return this;
        }

        /**
         * @param dnsSuffix DNS suffix of the App Service Environment.
         * 
         * @return builder
         * 
         */
        public Builder dnsSuffix(String dnsSuffix) {
            return dnsSuffix(Output.of(dnsSuffix));
        }

        /**
         * @param frontEndScaleFactor Scale factor for front-ends.
         * 
         * @return builder
         * 
         */
        public Builder frontEndScaleFactor(@Nullable Output frontEndScaleFactor) {
            $.frontEndScaleFactor = frontEndScaleFactor;
            return this;
        }

        /**
         * @param frontEndScaleFactor Scale factor for front-ends.
         * 
         * @return builder
         * 
         */
        public Builder frontEndScaleFactor(Integer frontEndScaleFactor) {
            return frontEndScaleFactor(Output.of(frontEndScaleFactor));
        }

        /**
         * @param internalLoadBalancingMode Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment.
         * 
         * @return builder
         * 
         */
        public Builder internalLoadBalancingMode(@Nullable Output> internalLoadBalancingMode) {
            $.internalLoadBalancingMode = internalLoadBalancingMode;
            return this;
        }

        /**
         * @param internalLoadBalancingMode Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment.
         * 
         * @return builder
         * 
         */
        public Builder internalLoadBalancingMode(Either internalLoadBalancingMode) {
            return internalLoadBalancingMode(Output.of(internalLoadBalancingMode));
        }

        /**
         * @param internalLoadBalancingMode Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment.
         * 
         * @return builder
         * 
         */
        public Builder internalLoadBalancingMode(String internalLoadBalancingMode) {
            return internalLoadBalancingMode(Either.ofLeft(internalLoadBalancingMode));
        }

        /**
         * @param internalLoadBalancingMode Specifies which endpoints to serve internally in the Virtual Network for the App Service Environment.
         * 
         * @return builder
         * 
         */
        public Builder internalLoadBalancingMode(LoadBalancingMode internalLoadBalancingMode) {
            return internalLoadBalancingMode(Either.ofRight(internalLoadBalancingMode));
        }

        /**
         * @param ipsslAddressCount Number of IP SSL addresses reserved for the App Service Environment.
         * 
         * @return builder
         * 
         */
        public Builder ipsslAddressCount(@Nullable Output ipsslAddressCount) {
            $.ipsslAddressCount = ipsslAddressCount;
            return this;
        }

        /**
         * @param ipsslAddressCount Number of IP SSL addresses reserved for the App Service Environment.
         * 
         * @return builder
         * 
         */
        public Builder ipsslAddressCount(Integer ipsslAddressCount) {
            return ipsslAddressCount(Output.of(ipsslAddressCount));
        }

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

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

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

        /**
         * @param location Resource Location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param multiSize Front-end VM size, e.g. "Medium", "Large".
         * 
         * @return builder
         * 
         */
        public Builder multiSize(@Nullable Output multiSize) {
            $.multiSize = multiSize;
            return this;
        }

        /**
         * @param multiSize Front-end VM size, e.g. "Medium", "Large".
         * 
         * @return builder
         * 
         */
        public Builder multiSize(String multiSize) {
            return multiSize(Output.of(multiSize));
        }

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

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

        /**
         * @param networkingConfiguration Full view of networking configuration for an ASE.
         * 
         * @return builder
         * 
         */
        public Builder networkingConfiguration(@Nullable Output networkingConfiguration) {
            $.networkingConfiguration = networkingConfiguration;
            return this;
        }

        /**
         * @param networkingConfiguration Full view of networking configuration for an ASE.
         * 
         * @return builder
         * 
         */
        public Builder networkingConfiguration(AseV3NetworkingConfigurationArgs networkingConfiguration) {
            return networkingConfiguration(Output.of(networkingConfiguration));
        }

        /**
         * @param resourceGroupName Name of the resource group to which the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the resource group to which the resource belongs.
         * 
         * @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 upgradePreference Upgrade Preference
         * 
         * @return builder
         * 
         */
        public Builder upgradePreference(@Nullable Output> upgradePreference) {
            $.upgradePreference = upgradePreference;
            return this;
        }

        /**
         * @param upgradePreference Upgrade Preference
         * 
         * @return builder
         * 
         */
        public Builder upgradePreference(Either upgradePreference) {
            return upgradePreference(Output.of(upgradePreference));
        }

        /**
         * @param upgradePreference Upgrade Preference
         * 
         * @return builder
         * 
         */
        public Builder upgradePreference(String upgradePreference) {
            return upgradePreference(Either.ofLeft(upgradePreference));
        }

        /**
         * @param upgradePreference Upgrade Preference
         * 
         * @return builder
         * 
         */
        public Builder upgradePreference(UpgradePreference upgradePreference) {
            return upgradePreference(Either.ofRight(upgradePreference));
        }

        /**
         * @param userWhitelistedIpRanges User added ip ranges to whitelist on ASE db
         * 
         * @return builder
         * 
         */
        public Builder userWhitelistedIpRanges(@Nullable Output> userWhitelistedIpRanges) {
            $.userWhitelistedIpRanges = userWhitelistedIpRanges;
            return this;
        }

        /**
         * @param userWhitelistedIpRanges User added ip ranges to whitelist on ASE db
         * 
         * @return builder
         * 
         */
        public Builder userWhitelistedIpRanges(List userWhitelistedIpRanges) {
            return userWhitelistedIpRanges(Output.of(userWhitelistedIpRanges));
        }

        /**
         * @param userWhitelistedIpRanges User added ip ranges to whitelist on ASE db
         * 
         * @return builder
         * 
         */
        public Builder userWhitelistedIpRanges(String... userWhitelistedIpRanges) {
            return userWhitelistedIpRanges(List.of(userWhitelistedIpRanges));
        }

        /**
         * @param virtualNetwork Description of the Virtual Network.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetwork(Output virtualNetwork) {
            $.virtualNetwork = virtualNetwork;
            return this;
        }

        /**
         * @param virtualNetwork Description of the Virtual Network.
         * 
         * @return builder
         * 
         */
        public Builder virtualNetwork(VirtualNetworkProfileArgs virtualNetwork) {
            return virtualNetwork(Output.of(virtualNetwork));
        }

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

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

        public AppServiceEnvironmentArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AppServiceEnvironmentArgs", "resourceGroupName");
            }
            $.upgradePreference = Codegen.stringProp("upgradePreference").left(UpgradePreference.class).output().arg($.upgradePreference).def("None").getNullable();
            if ($.virtualNetwork == null) {
                throw new MissingRequiredPropertyException("AppServiceEnvironmentArgs", "virtualNetwork");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy