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

com.pulumi.azurenative.servicefabricmesh.outputs.HttpRouteMatchRuleResponse 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.azurenative.servicefabricmesh.outputs;

import com.pulumi.azurenative.servicefabricmesh.outputs.HttpRouteMatchHeaderResponse;
import com.pulumi.azurenative.servicefabricmesh.outputs.HttpRouteMatchPathResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class HttpRouteMatchRuleResponse {
    /**
     * @return headers and their values to match in request.
     * 
     */
    private @Nullable List headers;
    /**
     * @return Path to match for routing.
     * 
     */
    private HttpRouteMatchPathResponse path;

    private HttpRouteMatchRuleResponse() {}
    /**
     * @return headers and their values to match in request.
     * 
     */
    public List headers() {
        return this.headers == null ? List.of() : this.headers;
    }
    /**
     * @return Path to match for routing.
     * 
     */
    public HttpRouteMatchPathResponse path() {
        return this.path;
    }

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

    public static Builder builder(HttpRouteMatchRuleResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List headers;
        private HttpRouteMatchPathResponse path;
        public Builder() {}
        public Builder(HttpRouteMatchRuleResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.headers = defaults.headers;
    	      this.path = defaults.path;
        }

        @CustomType.Setter
        public Builder headers(@Nullable List headers) {

            this.headers = headers;
            return this;
        }
        public Builder headers(HttpRouteMatchHeaderResponse... headers) {
            return headers(List.of(headers));
        }
        @CustomType.Setter
        public Builder path(HttpRouteMatchPathResponse path) {
            if (path == null) {
              throw new MissingRequiredPropertyException("HttpRouteMatchRuleResponse", "path");
            }
            this.path = path;
            return this;
        }
        public HttpRouteMatchRuleResponse build() {
            final var _resultValue = new HttpRouteMatchRuleResponse();
            _resultValue.headers = headers;
            _resultValue.path = path;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy