
target.apidocs.com.google.api.services.compute.model.HttpQueryParameterMatch.html Maven / Gradle / Ivy
HttpQueryParameterMatch (Compute Engine API beta-rev20220312-1.32.1)
com.google.api.services.compute.model
Class HttpQueryParameterMatch
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.HttpQueryParameterMatch
-
public final class HttpQueryParameterMatch
extends GenericJson
HttpRouteRuleMatch criteria for a request's query parameter.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
HttpQueryParameterMatch()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
HttpQueryParameterMatch
clone()
String
getExactMatch()
The queryParameterMatch matches if the value of the parameter exactly matches the contents of
exactMatch.
String
getName()
The name of the query parameter to match.
Boolean
getPresentMatch()
Specifies that the queryParameterMatch matches if the request contains the query parameter,
irrespective of whether the parameter has a value or not.
String
getRegexMatch()
The queryParameterMatch matches if the value of the parameter matches the regular expression
specified by regexMatch.
HttpQueryParameterMatch
set(String fieldName,
Object value)
HttpQueryParameterMatch
setExactMatch(String exactMatch)
The queryParameterMatch matches if the value of the parameter exactly matches the contents of
exactMatch.
HttpQueryParameterMatch
setName(String name)
The name of the query parameter to match.
HttpQueryParameterMatch
setPresentMatch(Boolean presentMatch)
Specifies that the queryParameterMatch matches if the request contains the query parameter,
irrespective of whether the parameter has a value or not.
HttpQueryParameterMatch
setRegexMatch(String regexMatch)
The queryParameterMatch matches if the value of the parameter matches the regular expression
specified by regexMatch.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getExactMatch
public String getExactMatch()
The queryParameterMatch matches if the value of the parameter exactly matches the contents of
exactMatch. Only one of presentMatch, exactMatch, or regexMatch must be set.
- Returns:
- value or
null
for none
-
setExactMatch
public HttpQueryParameterMatch setExactMatch(String exactMatch)
The queryParameterMatch matches if the value of the parameter exactly matches the contents of
exactMatch. Only one of presentMatch, exactMatch, or regexMatch must be set.
- Parameters:
exactMatch
- exactMatch or null
for none
-
getName
public String getName()
The name of the query parameter to match. The query parameter must exist in the request, in the
absence of which the request match fails.
- Returns:
- value or
null
for none
-
setName
public HttpQueryParameterMatch setName(String name)
The name of the query parameter to match. The query parameter must exist in the request, in the
absence of which the request match fails.
- Parameters:
name
- name or null
for none
-
getPresentMatch
public Boolean getPresentMatch()
Specifies that the queryParameterMatch matches if the request contains the query parameter,
irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch,
or regexMatch must be set.
- Returns:
- value or
null
for none
-
setPresentMatch
public HttpQueryParameterMatch setPresentMatch(Boolean presentMatch)
Specifies that the queryParameterMatch matches if the request contains the query parameter,
irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch,
or regexMatch must be set.
- Parameters:
presentMatch
- presentMatch or null
for none
-
getRegexMatch
public String getRegexMatch()
The queryParameterMatch matches if the value of the parameter matches the regular expression
specified by regexMatch. For more information about regular expression syntax, see Syntax. Only
one of presentMatch, exactMatch, or regexMatch must be set. regexMatch only applies when the
loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
- Returns:
- value or
null
for none
-
setRegexMatch
public HttpQueryParameterMatch setRegexMatch(String regexMatch)
The queryParameterMatch matches if the value of the parameter matches the regular expression
specified by regexMatch. For more information about regular expression syntax, see Syntax. Only
one of presentMatch, exactMatch, or regexMatch must be set. regexMatch only applies when the
loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
- Parameters:
regexMatch
- regexMatch or null
for none
-
set
public HttpQueryParameterMatch set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public HttpQueryParameterMatch clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy