public final class HttpHeaderMatch
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
HttpHeaderMatch() |
| Modifier and Type | Method and Description |
|---|---|
HttpHeaderMatch |
clone() |
java.lang.String |
getExactMatch()
The value should exactly match contents of exactMatch.
|
java.lang.String |
getHeaderName()
The name of the HTTP header to match.
|
java.lang.Boolean |
getInvertMatch()
If set to false, the headerMatch is considered a match if the match criteria above are met.
|
java.lang.String |
getPrefixMatch()
The value of the header must start with the contents of prefixMatch.
|
java.lang.Boolean |
getPresentMatch()
A header with the contents of headerName must exist.
|
Int64RangeMatch |
getRangeMatch()
The header value must be an integer and its value must be in the range specified in rangeMatch.
|
java.lang.String |
getRegexMatch()
The value of the header must match the regular expression specified in regexMatch.
|
java.lang.String |
getSuffixMatch()
The value of the header must end with the contents of suffixMatch.
|
HttpHeaderMatch |
set(java.lang.String fieldName,
java.lang.Object value) |
HttpHeaderMatch |
setExactMatch(java.lang.String exactMatch)
The value should exactly match contents of exactMatch.
|
HttpHeaderMatch |
setHeaderName(java.lang.String headerName)
The name of the HTTP header to match.
|
HttpHeaderMatch |
setInvertMatch(java.lang.Boolean invertMatch)
If set to false, the headerMatch is considered a match if the match criteria above are met.
|
HttpHeaderMatch |
setPrefixMatch(java.lang.String prefixMatch)
The value of the header must start with the contents of prefixMatch.
|
HttpHeaderMatch |
setPresentMatch(java.lang.Boolean presentMatch)
A header with the contents of headerName must exist.
|
HttpHeaderMatch |
setRangeMatch(Int64RangeMatch rangeMatch)
The header value must be an integer and its value must be in the range specified in rangeMatch.
|
HttpHeaderMatch |
setRegexMatch(java.lang.String regexMatch)
The value of the header must match the regular expression specified in regexMatch.
|
HttpHeaderMatch |
setSuffixMatch(java.lang.String suffixMatch)
The value of the header must end with the contents of suffixMatch.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getExactMatch()
null for nonepublic HttpHeaderMatch setExactMatch(java.lang.String exactMatch)
exactMatch - exactMatch or null for nonepublic java.lang.String getHeaderName()
null for nonepublic HttpHeaderMatch setHeaderName(java.lang.String headerName)
headerName - headerName or null for nonepublic java.lang.Boolean getInvertMatch()
null for nonepublic HttpHeaderMatch setInvertMatch(java.lang.Boolean invertMatch)
invertMatch - invertMatch or null for nonepublic java.lang.String getPrefixMatch()
null for nonepublic HttpHeaderMatch setPrefixMatch(java.lang.String prefixMatch)
prefixMatch - prefixMatch or null for nonepublic java.lang.Boolean getPresentMatch()
null for nonepublic HttpHeaderMatch setPresentMatch(java.lang.Boolean presentMatch)
presentMatch - presentMatch or null for nonepublic Int64RangeMatch getRangeMatch()
null for nonepublic HttpHeaderMatch setRangeMatch(Int64RangeMatch rangeMatch)
rangeMatch - rangeMatch or null for nonepublic java.lang.String getRegexMatch()
null for nonepublic HttpHeaderMatch setRegexMatch(java.lang.String regexMatch)
regexMatch - regexMatch or null for nonepublic java.lang.String getSuffixMatch()
null for nonepublic HttpHeaderMatch setSuffixMatch(java.lang.String suffixMatch)
suffixMatch - suffixMatch or null for nonepublic HttpHeaderMatch set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic HttpHeaderMatch clone()
clone in class com.google.api.client.json.GenericJson