Class UrlMapOptions.Builder
- java.lang.Object
-
- org.jclouds.googlecomputeengine.options.UrlMapOptions.Builder
-
- Enclosing class:
- UrlMapOptions
public static class UrlMapOptions.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UrlMapOptionsbuild()Builds the UrlMapOptions.UrlMapOptionsbuildForPatch()This build option is specifically for when patching an existing UrlMap.UrlMapOptions.BuilderdefaultService(URI defaultService)The URL of the BackendService resource if none of the hostRules match.UrlMapOptions.Builderdescription(String description)An optional textual description of the UrlMap.UrlMapOptions.Builderfingerprint(String fingerprint)Fingerprint of this resource.UrlMapOptions.BuilderhostRules(List<UrlMap.HostRule> hostRules)Rules for matching and directing incoming hosts.UrlMapOptions.Buildername(String name)Name of the UrlMap resource.UrlMapOptions.BuilderpathMatchers(List<UrlMap.PathMatcher> pathMatchers)The list of named PathMatchers to use against the URL.UrlMapOptions.Buildertests(List<UrlMap.UrlMapTest> tests)The list of expected URL mappings.
-
-
-
Method Detail
-
name
public UrlMapOptions.Builder name(String name)
Name of the UrlMap resource.
-
description
public UrlMapOptions.Builder description(String description)
An optional textual description of the UrlMap.
-
hostRules
public UrlMapOptions.Builder hostRules(List<UrlMap.HostRule> hostRules)
Rules for matching and directing incoming hosts.
-
pathMatchers
public UrlMapOptions.Builder pathMatchers(List<UrlMap.PathMatcher> pathMatchers)
The list of named PathMatchers to use against the URL.
-
tests
public UrlMapOptions.Builder tests(List<UrlMap.UrlMapTest> tests)
The list of expected URL mappings. Request to update this UrlMap will succeed only all of the test cases pass.
-
defaultService
public UrlMapOptions.Builder defaultService(URI defaultService)
The URL of the BackendService resource if none of the hostRules match.
-
fingerprint
public UrlMapOptions.Builder fingerprint(String fingerprint)
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap.
-
build
public UrlMapOptions build()
Builds the UrlMapOptions. Note: This enforces that "name" and "defaultService" are not null as the GCE API expects. If you are patching an existing UrlMap you may wish to usebuildForPatch()instead.
-
buildForPatch
public UrlMapOptions buildForPatch()
This build option is specifically for when patching an existing UrlMap. If not patching an existing urlMap it is recommended that you usebuild().
-
-