public final class CustomErrorResponsePolicyCustomErrorResponseRule
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 |
---|
CustomErrorResponsePolicyCustomErrorResponseRule() |
Modifier and Type | Method and Description |
---|---|
CustomErrorResponsePolicyCustomErrorResponseRule |
clone() |
List<String> |
getMatchResponseCodes()
Valid values include: - A number between 400 and 599: For example 401 or 503, in which case the
load balancer applies the policy if the error code exactly matches this value.
|
Integer |
getOverrideResponseCode()
The HTTP status code returned with the response containing the custom error content.
|
String |
getPath()
The full path to a file within backendBucket .
|
CustomErrorResponsePolicyCustomErrorResponseRule |
set(String fieldName,
Object value) |
CustomErrorResponsePolicyCustomErrorResponseRule |
setMatchResponseCodes(List<String> matchResponseCodes)
Valid values include: - A number between 400 and 599: For example 401 or 503, in which case the
load balancer applies the policy if the error code exactly matches this value.
|
CustomErrorResponsePolicyCustomErrorResponseRule |
setOverrideResponseCode(Integer overrideResponseCode)
The HTTP status code returned with the response containing the custom error content.
|
CustomErrorResponsePolicyCustomErrorResponseRule |
setPath(String path)
The full path to a file within backendBucket .
|
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 CustomErrorResponsePolicyCustomErrorResponseRule()
public List<String> getMatchResponseCodes()
null
for nonepublic CustomErrorResponsePolicyCustomErrorResponseRule setMatchResponseCodes(List<String> matchResponseCodes)
matchResponseCodes
- matchResponseCodes or null
for nonepublic Integer getOverrideResponseCode()
null
for nonepublic CustomErrorResponsePolicyCustomErrorResponseRule setOverrideResponseCode(Integer overrideResponseCode)
overrideResponseCode
- overrideResponseCode or null
for nonepublic String getPath()
null
for nonepublic CustomErrorResponsePolicyCustomErrorResponseRule setPath(String path)
path
- path or null
for nonepublic CustomErrorResponsePolicyCustomErrorResponseRule set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public CustomErrorResponsePolicyCustomErrorResponseRule clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.