public final class UrlMapTest
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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
UrlMapTest() |
Modifier and Type | Method and Description |
---|---|
UrlMapTest |
clone() |
String |
getDescription()
Description of this test case.
|
String |
getExpectedOutputUrl()
The expected output URL evaluated by the load balancer containing the scheme, host, path and
query parameters.
|
Integer |
getExpectedRedirectResponseCode()
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the
HTTP status code in load balancer's redirect response.
|
List<UrlMapTestHeader> |
getHeaders()
HTTP headers for this request.
|
String |
getHost()
Host portion of the URL.
|
String |
getPath()
Path portion of the URL.
|
String |
getService()
Expected BackendService or BackendBucket resource the given URL should be mapped to.
|
UrlMapTest |
set(String fieldName,
Object value) |
UrlMapTest |
setDescription(String description)
Description of this test case.
|
UrlMapTest |
setExpectedOutputUrl(String expectedOutputUrl)
The expected output URL evaluated by the load balancer containing the scheme, host, path and
query parameters.
|
UrlMapTest |
setExpectedRedirectResponseCode(Integer expectedRedirectResponseCode)
For rules with urlRedirect, the test passes only if expectedRedirectResponseCode matches the
HTTP status code in load balancer's redirect response.
|
UrlMapTest |
setHeaders(List<UrlMapTestHeader> headers)
HTTP headers for this request.
|
UrlMapTest |
setHost(String host)
Host portion of the URL.
|
UrlMapTest |
setPath(String path)
Path portion of the URL.
|
UrlMapTest |
setService(String service)
Expected BackendService or BackendBucket resource the given URL should be mapped to.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getDescription()
null
for nonepublic UrlMapTest setDescription(String description)
description
- description or null
for nonepublic String getExpectedOutputUrl()
null
for nonepublic UrlMapTest setExpectedOutputUrl(String expectedOutputUrl)
expectedOutputUrl
- expectedOutputUrl or null
for nonepublic Integer getExpectedRedirectResponseCode()
null
for nonepublic UrlMapTest setExpectedRedirectResponseCode(Integer expectedRedirectResponseCode)
expectedRedirectResponseCode
- expectedRedirectResponseCode or null
for nonepublic List<UrlMapTestHeader> getHeaders()
null
for nonepublic UrlMapTest setHeaders(List<UrlMapTestHeader> headers)
headers
- headers or null
for nonepublic String getHost()
null
for nonepublic UrlMapTest setHost(String host)
host
- host or null
for nonepublic String getPath()
null
for nonepublic UrlMapTest setPath(String path)
path
- path or null
for nonepublic String getService()
null
for nonepublic UrlMapTest setService(String service)
service
- service or null
for nonepublic UrlMapTest set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public UrlMapTest clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.