// *** 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.azure.containerservice.outputs;

import com.pulumi.azure.containerservice.outputs.KubernetesClusterWebAppRoutingWebAppRoutingIdentity;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class KubernetesClusterWebAppRouting {
    /**
     * @return Specifies the ID of the DNS Zone in which DNS entries are created for applications deployed to the cluster when Web App Routing is enabled. For Bring-Your-Own DNS zones this property should be set to an empty string `&#34;&#34;`.
     * 
     */
    private String dnsZoneId;
    /**
     * @return A `web_app_routing_identity` block is exported. The exported attributes are defined below.
     * 
     */
    private @Nullable List<KubernetesClusterWebAppRoutingWebAppRoutingIdentity> webAppRoutingIdentities;

    private KubernetesClusterWebAppRouting() {}
    /**
     * @return Specifies the ID of the DNS Zone in which DNS entries are created for applications deployed to the cluster when Web App Routing is enabled. For Bring-Your-Own DNS zones this property should be set to an empty string `&#34;&#34;`.
     * 
     */
    public String dnsZoneId() {
        return this.dnsZoneId;
    }
    /**
     * @return A `web_app_routing_identity` block is exported. The exported attributes are defined below.
     * 
     */
    public List<KubernetesClusterWebAppRoutingWebAppRoutingIdentity> webAppRoutingIdentities() {
        return this.webAppRoutingIdentities == null ? List.of() : this.webAppRoutingIdentities;
    }

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

    public static Builder builder(KubernetesClusterWebAppRouting defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String dnsZoneId;
        private @Nullable List<KubernetesClusterWebAppRoutingWebAppRoutingIdentity> webAppRoutingIdentities;
        public Builder() {}
        public Builder(KubernetesClusterWebAppRouting defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dnsZoneId = defaults.dnsZoneId;
    	      this.webAppRoutingIdentities = defaults.webAppRoutingIdentities;
        }

        @CustomType.Setter
        public Builder dnsZoneId(String dnsZoneId) {
            this.dnsZoneId = Objects.requireNonNull(dnsZoneId);
            return this;
        }
        @CustomType.Setter
        public Builder webAppRoutingIdentities(@Nullable List<KubernetesClusterWebAppRoutingWebAppRoutingIdentity> webAppRoutingIdentities) {
            this.webAppRoutingIdentities = webAppRoutingIdentities;
            return this;
        }
        public Builder webAppRoutingIdentities(KubernetesClusterWebAppRoutingWebAppRoutingIdentity... webAppRoutingIdentities) {
            return webAppRoutingIdentities(List.of(webAppRoutingIdentities));
        }
        public KubernetesClusterWebAppRouting build() {
            final var o = new KubernetesClusterWebAppRouting();
            o.dnsZoneId = dnsZoneId;
            o.webAppRoutingIdentities = webAppRoutingIdentities;
            return o;
        }
    }
}
