Class TargetPoolCreationOptions.Builder
- java.lang.Object
-
- org.jclouds.googlecomputeengine.options.TargetPoolCreationOptions.Builder
-
- Enclosing class:
- TargetPoolCreationOptions
public static class TargetPoolCreationOptions.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TargetPoolCreationOptions.BuilderbackupPool(URI backupPool)This field is applicable only when the target pool is serving a forwarding rule as the primary pool (e.g.TargetPoolCreationOptionsbuild()TargetPoolCreationOptions.Builderdescription(String description)An optional textual description of the TargetPool.TargetPoolCreationOptions.BuilderfailoverRatio(float failoverRatio)This field is applicable only when the target pool is serving a forwarding rule as the primary pool (e.g.TargetPoolCreationOptions.BuilderhealthChecks(List<URI> healthChecks)The set of HealthChecksTargetPoolCreationOptions.Builderinstances(List<URI> instances)A List of resource URIs to the member VMs serving this pool.TargetPoolCreationOptions.BuildersessionAffinity(TargetPoolCreationOptions.SessionAffinityValue sessionAffinity)Defines the session affinity option.
-
-
-
Constructor Detail
-
Builder
public Builder(String name)
-
-
Method Detail
-
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
public TargetPoolCreationOptions.Builder sessionAffinity(TargetPoolCreationOptions.SessionAffinityValue 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()
-
-