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

com.pulumi.googlenative.firebasehosting.v1beta1.outputs.HeaderResponse Maven / Gradle / Ivy

// *** 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.googlenative.firebasehosting.v1beta1.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Map;
import java.util.Objects;

@CustomType
public final class HeaderResponse {
    /**
     * @return The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
     * 
     */
    private String glob;
    /**
     * @return The additional headers to add to the response.
     * 
     */
    private Map headers;
    /**
     * @return The user-supplied RE2 regular expression to match against the request URL path.
     * 
     */
    private String regex;

    private HeaderResponse() {}
    /**
     * @return The user-supplied [glob](https://firebase.google.com/docs/hosting/full-config#glob_pattern_matching) to match against the request URL path.
     * 
     */
    public String glob() {
        return this.glob;
    }
    /**
     * @return The additional headers to add to the response.
     * 
     */
    public Map headers() {
        return this.headers;
    }
    /**
     * @return The user-supplied RE2 regular expression to match against the request URL path.
     * 
     */
    public String regex() {
        return this.regex;
    }

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

    public static Builder builder(HeaderResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String glob;
        private Map headers;
        private String regex;
        public Builder() {}
        public Builder(HeaderResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.glob = defaults.glob;
    	      this.headers = defaults.headers;
    	      this.regex = defaults.regex;
        }

        @CustomType.Setter
        public Builder glob(String glob) {
            this.glob = Objects.requireNonNull(glob);
            return this;
        }
        @CustomType.Setter
        public Builder headers(Map headers) {
            this.headers = Objects.requireNonNull(headers);
            return this;
        }
        @CustomType.Setter
        public Builder regex(String regex) {
            this.regex = Objects.requireNonNull(regex);
            return this;
        }
        public HeaderResponse build() {
            final var o = new HeaderResponse();
            o.glob = glob;
            o.headers = headers;
            o.regex = regex;
            return o;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy