public final class HostRule
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 |
---|
HostRule() |
Modifier and Type | Method and Description |
---|---|
HostRule |
clone() |
java.lang.String |
getDescription()
An optional description of this resource.
|
java.util.List<java.lang.String> |
getHosts()
The list of host patterns to match.
|
java.lang.String |
getPathMatcher()
The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches
the URL's host portion.
|
HostRule |
set(java.lang.String fieldName,
java.lang.Object value) |
HostRule |
setDescription(java.lang.String description)
An optional description of this resource.
|
HostRule |
setHosts(java.util.List<java.lang.String> hosts)
The list of host patterns to match.
|
HostRule |
setPathMatcher(java.lang.String pathMatcher)
The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches
the URL's host portion.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getDescription()
null
for nonepublic HostRule setDescription(java.lang.String description)
description
- description or null
for nonepublic java.util.List<java.lang.String> getHosts()
null
for nonepublic HostRule setHosts(java.util.List<java.lang.String> hosts)
hosts
- hosts or null
for nonepublic java.lang.String getPathMatcher()
null
for nonepublic HostRule setPathMatcher(java.lang.String pathMatcher)
pathMatcher
- pathMatcher or null
for nonepublic HostRule set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public HostRule clone()
clone
in class com.google.api.client.json.GenericJson