// *** 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.gcp.appengine.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ApplicationUrlDispatchRulesDispatchRuleArgs Empty = new ApplicationUrlDispatchRulesDispatchRuleArgs();

    /**
     * Domain name to match against. The wildcard &#34;*&#34; is supported if specified before a period: &#34;*.&#34;.
     * Defaults to matching all domains: &#34;*&#34;.
     * 
     */
    @Import(name="domain")
    private @Nullable Output<String> domain;

    /**
     * @return Domain name to match against. The wildcard &#34;*&#34; is supported if specified before a period: &#34;*.&#34;.
     * Defaults to matching all domains: &#34;*&#34;.
     * 
     */
    public Optional<Output<String>> domain() {
        return Optional.ofNullable(this.domain);
    }

    /**
     * Pathname within the host. Must start with a &#34;/&#34;. A single &#34;*&#34; can be included at the end of the path.
     * The sum of the lengths of the domain and path may not exceed 100 characters.
     * 
     */
    @Import(name="path", required=true)
    private Output<String> path;

    /**
     * @return Pathname within the host. Must start with a &#34;/&#34;. A single &#34;*&#34; can be included at the end of the path.
     * The sum of the lengths of the domain and path may not exceed 100 characters.
     * 
     */
    public Output<String> path() {
        return this.path;
    }

    /**
     * Pathname within the host. Must start with a &#34;/&#34;. A single &#34;*&#34; can be included at the end of the path.
     * The sum of the lengths of the domain and path may not exceed 100 characters.
     * 
     * ***
     * 
     */
    @Import(name="service", required=true)
    private Output<String> service;

    /**
     * @return Pathname within the host. Must start with a &#34;/&#34;. A single &#34;*&#34; can be included at the end of the path.
     * The sum of the lengths of the domain and path may not exceed 100 characters.
     * 
     * ***
     * 
     */
    public Output<String> service() {
        return this.service;
    }

    private ApplicationUrlDispatchRulesDispatchRuleArgs() {}

    private ApplicationUrlDispatchRulesDispatchRuleArgs(ApplicationUrlDispatchRulesDispatchRuleArgs $) {
        this.domain = $.domain;
        this.path = $.path;
        this.service = $.service;
    }

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

    public static final class Builder {
        private ApplicationUrlDispatchRulesDispatchRuleArgs $;

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

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

        /**
         * @param domain Domain name to match against. The wildcard &#34;*&#34; is supported if specified before a period: &#34;*.&#34;.
         * Defaults to matching all domains: &#34;*&#34;.
         * 
         * @return builder
         * 
         */
        public Builder domain(@Nullable Output<String> domain) {
            $.domain = domain;
            return this;
        }

        /**
         * @param domain Domain name to match against. The wildcard &#34;*&#34; is supported if specified before a period: &#34;*.&#34;.
         * Defaults to matching all domains: &#34;*&#34;.
         * 
         * @return builder
         * 
         */
        public Builder domain(String domain) {
            return domain(Output.of(domain));
        }

        /**
         * @param path Pathname within the host. Must start with a &#34;/&#34;. A single &#34;*&#34; can be included at the end of the path.
         * The sum of the lengths of the domain and path may not exceed 100 characters.
         * 
         * @return builder
         * 
         */
        public Builder path(Output<String> path) {
            $.path = path;
            return this;
        }

        /**
         * @param path Pathname within the host. Must start with a &#34;/&#34;. A single &#34;*&#34; can be included at the end of the path.
         * The sum of the lengths of the domain and path may not exceed 100 characters.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param service Pathname within the host. Must start with a &#34;/&#34;. A single &#34;*&#34; can be included at the end of the path.
         * The sum of the lengths of the domain and path may not exceed 100 characters.
         * 
         * ***
         * 
         * @return builder
         * 
         */
        public Builder service(Output<String> service) {
            $.service = service;
            return this;
        }

        /**
         * @param service Pathname within the host. Must start with a &#34;/&#34;. A single &#34;*&#34; can be included at the end of the path.
         * The sum of the lengths of the domain and path may not exceed 100 characters.
         * 
         * ***
         * 
         * @return builder
         * 
         */
        public Builder service(String service) {
            return service(Output.of(service));
        }

        public ApplicationUrlDispatchRulesDispatchRuleArgs build() {
            $.path = Objects.requireNonNull($.path, "expected parameter 'path' to be non-null");
            $.service = Objects.requireNonNull($.service, "expected parameter 'service' to be non-null");
            return $;
        }
    }

}
