Class TargetPoolCreationOptions.Builder

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

public static class TargetPoolCreationOptions.Builder extends Object
  • Constructor Details

    • Builder

      public Builder(String name)
  • Method Details

    • healthChecks

      public TargetPoolCreationOptions.Builder healthChecks(List<URI> healthChecks)
      The set of HealthChecks
    • instances

      public TargetPoolCreationOptions.Builder instances(List<URI> instances)
      A List of resource URIs to the member VMs serving this pool. They must live in zones contained in the same region as this pool.
    • sessionAffinity

      Defines the session affinity option. Session affinity determines the hash method that Google Compute Engine uses to distribute traffic.
    • failoverRatio

      public TargetPoolCreationOptions.Builder failoverRatio(float failoverRatio)
      This field is applicable only when the target pool is serving a forwarding rule as the primary pool (e.g. not as a backup pool to some other target pool). The value of the a float between [0, 1]. If set, backupPool must also be set.
      Returns:
      failoverRatio, a float between [0, 1]
    • backupPool

      public TargetPoolCreationOptions.Builder backupPool(URI backupPool)
      This field is applicable only when the target pool is serving a forwarding rule as the primary pool (e.g. not as a backup pool to some other target pool). Must be a fully-qualified URL to a target pool that is in the same region as the primary target pool. If set, failoverRatio must also be set
      Returns:
      backupPool, Fully-qualified URI to a target pool in the same region as primary target pool
    • description

      public TargetPoolCreationOptions.Builder description(String description)
      An optional textual description of the TargetPool.
      Returns:
      description, provided by the client.
    • build

      public TargetPoolCreationOptions build()