target.apidocs.com.google.api.services.compute.model.HostRule.html Maven / Gradle / Ivy
HostRule (Compute Engine API alpha-rev20200526-1.30.9)
com.google.api.services.compute.model
Class HostRule
- 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.HostRule
-
public final class HostRule
extends GenericJson
UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the
BackendService.
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
HostRule()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
HostRule
clone()
String
getDescription()
An optional description of this resource.
List<String>
getHosts()
The list of host patterns to match.
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(String fieldName,
Object value)
HostRule
setDescription(String description)
An optional description of this resource.
HostRule
setHosts(List<String> hosts)
The list of host patterns to match.
HostRule
setPathMatcher(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.
-
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
-
getDescription
public String getDescription()
An optional description of this resource. Provide this property when you create the resource.
- Returns:
- value or
null
for none
-
setDescription
public HostRule setDescription(String description)
An optional description of this resource. Provide this property when you create the resource.
- Parameters:
description
- description or null
for none
-
getHosts
public List<String> getHosts()
The list of host patterns to match. They must be valid hostnames with optional port numbers in
the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first
character and must be followed in the pattern by either - or ..
- Returns:
- value or
null
for none
-
setHosts
public HostRule setHosts(List<String> hosts)
The list of host patterns to match. They must be valid hostnames with optional port numbers in
the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first
character and must be followed in the pattern by either - or ..
- Parameters:
hosts
- hosts or null
for none
-
getPathMatcher
public 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.
- Returns:
- value or
null
for none
-
setPathMatcher
public HostRule setPathMatcher(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.
- Parameters:
pathMatcher
- pathMatcher or null
for none
-
set
public HostRule set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public HostRule clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy