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

target.apidocs.com.google.api.services.compute.model.HttpHeaderMatch.html Maven / Gradle / Ivy

There is a newer version: v1-rev20250320-2.0.0
Show newest version






HttpHeaderMatch (Compute Engine API v1-rev20250107-2.0.0)












com.google.api.services.compute.model

Class HttpHeaderMatch

    • Constructor Detail

      • HttpHeaderMatch

        public HttpHeaderMatch()
    • Method Detail

      • getExactMatch

        public String getExactMatch()
        The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
        Returns:
        value or null for none
      • setExactMatch

        public HttpHeaderMatch setExactMatch(String exactMatch)
        The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
        Parameters:
        exactMatch - exactMatch or null for none
      • getHeaderName

        public String getHeaderName()
        The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method". When the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true, only non-binary user-specified custom metadata and the `content-type` header are supported. The following transport-level headers cannot be used in header matching rules: `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, `accept- encoding`, `content-encoding`, `grpc-accept-encoding`, `grpc-encoding`, `grpc-previous-rpc- attempts`, `grpc-tags-bin`, `grpc-timeout` and `grpc-trace-bin`.
        Returns:
        value or null for none
      • setHeaderName

        public HttpHeaderMatch setHeaderName(String headerName)
        The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method". When the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true, only non-binary user-specified custom metadata and the `content-type` header are supported. The following transport-level headers cannot be used in header matching rules: `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, `accept- encoding`, `content-encoding`, `grpc-accept-encoding`, `grpc-encoding`, `grpc-previous-rpc- attempts`, `grpc-tags-bin`, `grpc-timeout` and `grpc-trace-bin`.
        Parameters:
        headerName - headerName or null for none
      • getInvertMatch

        public Boolean getInvertMatch()
        If set to false, the headerMatch is considered a match if the preceding match criteria are met. If set to true, the headerMatch is considered a match if the preceding match criteria are NOT met. The default setting is false.
        Returns:
        value or null for none
      • setInvertMatch

        public HttpHeaderMatch setInvertMatch(Boolean invertMatch)
        If set to false, the headerMatch is considered a match if the preceding match criteria are met. If set to true, the headerMatch is considered a match if the preceding match criteria are NOT met. The default setting is false.
        Parameters:
        invertMatch - invertMatch or null for none
      • getPrefixMatch

        public String getPrefixMatch()
        The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
        Returns:
        value or null for none
      • setPrefixMatch

        public HttpHeaderMatch setPrefixMatch(String prefixMatch)
        The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
        Parameters:
        prefixMatch - prefixMatch or null for none
      • getPresentMatch

        public Boolean getPresentMatch()
        A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
        Returns:
        value or null for none
      • setPresentMatch

        public HttpHeaderMatch setPresentMatch(Boolean presentMatch)
        A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
        Parameters:
        presentMatch - presentMatch or null for none
      • getRangeMatch

        public Int64RangeMatch getRangeMatch()
        The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
        Returns:
        value or null for none
      • setRangeMatch

        public HttpHeaderMatch setRangeMatch(Int64RangeMatch rangeMatch)
        The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
        Parameters:
        rangeMatch - rangeMatch or null for none
      • getRegexMatch

        public String getRegexMatch()
        The value of the header must match the regular expression specified in regexMatch. For more information about regular expression syntax, see Syntax. For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
        Returns:
        value or null for none
      • setRegexMatch

        public HttpHeaderMatch setRegexMatch(String regexMatch)
        The value of the header must match the regular expression specified in regexMatch. For more information about regular expression syntax, see Syntax. For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
        Parameters:
        regexMatch - regexMatch or null for none
      • getSuffixMatch

        public String getSuffixMatch()
        The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
        Returns:
        value or null for none
      • setSuffixMatch

        public HttpHeaderMatch setSuffixMatch(String suffixMatch)
        The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
        Parameters:
        suffixMatch - suffixMatch or null for none
      • clone

        public HttpHeaderMatch clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2025 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy