Class UrlMapOptions.Builder

java.lang.Object
org.jclouds.googlecomputeengine.options.UrlMapOptions.Builder
Enclosing class:
UrlMapOptions

public static class UrlMapOptions.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • 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

      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 use buildForPatch() 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 use build().