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







HttpHeaderMatch (Compute Engine API alpha-rev20200526-1.30.9)












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".
        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".
        Parameters:
        headerName - headerName or null for none
      • getInvertMatch

        public Boolean getInvertMatch()
        If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above 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 match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above 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. Note that rangeMatch is not supported for Loadbalancers that have their 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. Note that rangeMatch is not supported for Loadbalancers that have their 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 regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript 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. Note that regexMatch only applies to Loadbalancers that have their loadBalancingScheme 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 regular expression grammar, please see: en.cppreference.com/w/cpp/regex/ecmascript 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. Note that regexMatch only applies to Loadbalancers that have their loadBalancingScheme 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

Copyright © 2011–2020 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy