Class TargetPoolArgs.Builder

  • Enclosing class:
    TargetPoolArgs

    public static final class TargetPoolArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • backupPool

        public TargetPoolArgs.Builder backupPool​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> backupPool)
        Parameters:
        backupPool - URL to the backup target pool. Must also set failover\_ratio.
        Returns:
        builder
      • backupPool

        public TargetPoolArgs.Builder backupPool​(java.lang.String backupPool)
        Parameters:
        backupPool - URL to the backup target pool. Must also set failover\_ratio.
        Returns:
        builder
      • description

        public TargetPoolArgs.Builder description​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - Textual description field.
        Returns:
        builder
      • description

        public TargetPoolArgs.Builder description​(java.lang.String description)
        Parameters:
        description - Textual description field.
        Returns:
        builder
      • failoverRatio

        public TargetPoolArgs.Builder failoverRatio​(@Nullable
                                                    com.pulumi.core.Output<java.lang.Double> failoverRatio)
        Parameters:
        failoverRatio - Ratio (0 to 1) of failed nodes before using the backup pool (which must also be set).
        Returns:
        builder
      • failoverRatio

        public TargetPoolArgs.Builder failoverRatio​(java.lang.Double failoverRatio)
        Parameters:
        failoverRatio - Ratio (0 to 1) of failed nodes before using the backup pool (which must also be set).
        Returns:
        builder
      • healthChecks

        public TargetPoolArgs.Builder healthChecks​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> healthChecks)
        Parameters:
        healthChecks - List of zero or one health check name or self_link. Only legacy `gcp.compute.HttpHealthCheck` is supported.
        Returns:
        builder
      • healthChecks

        public TargetPoolArgs.Builder healthChecks​(java.lang.String healthChecks)
        Parameters:
        healthChecks - List of zero or one health check name or self_link. Only legacy `gcp.compute.HttpHealthCheck` is supported.
        Returns:
        builder
      • instances

        public TargetPoolArgs.Builder instances​(@Nullable
                                                com.pulumi.core.Output<java.util.List<java.lang.String>> instances)
        Parameters:
        instances - List of instances in the pool. They can be given as URLs, or in the form of "zone/name". Note that the instances need not exist at the time of target pool creation, so there is no need to use the interpolation to create a dependency on the instances from the target pool.
        Returns:
        builder
      • instances

        public TargetPoolArgs.Builder instances​(java.util.List<java.lang.String> instances)
        Parameters:
        instances - List of instances in the pool. They can be given as URLs, or in the form of "zone/name". Note that the instances need not exist at the time of target pool creation, so there is no need to use the interpolation to create a dependency on the instances from the target pool.
        Returns:
        builder
      • instances

        public TargetPoolArgs.Builder instances​(java.lang.String... instances)
        Parameters:
        instances - List of instances in the pool. They can be given as URLs, or in the form of "zone/name". Note that the instances need not exist at the time of target pool creation, so there is no need to use the interpolation to create a dependency on the instances from the target pool.
        Returns:
        builder
      • name

        public TargetPoolArgs.Builder name​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - A unique name for the resource, required by GCE. Changing this forces a new resource to be created. ***
        Returns:
        builder
      • name

        public TargetPoolArgs.Builder name​(java.lang.String name)
        Parameters:
        name - A unique name for the resource, required by GCE. Changing this forces a new resource to be created. ***
        Returns:
        builder
      • project

        public TargetPoolArgs.Builder project​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> project)
        Parameters:
        project - The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
        Returns:
        builder
      • project

        public TargetPoolArgs.Builder project​(java.lang.String project)
        Parameters:
        project - The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
        Returns:
        builder
      • region

        public TargetPoolArgs.Builder region​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Where the target pool resides. Defaults to project region.
        Returns:
        builder
      • region

        public TargetPoolArgs.Builder region​(java.lang.String region)
        Parameters:
        region - Where the target pool resides. Defaults to project region.
        Returns:
        builder
      • securityPolicy

        public TargetPoolArgs.Builder securityPolicy​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> securityPolicy)
        Parameters:
        securityPolicy - ) The resource URL for the security policy associated with this target pool.
        Returns:
        builder
      • securityPolicy

        public TargetPoolArgs.Builder securityPolicy​(java.lang.String securityPolicy)
        Parameters:
        securityPolicy - ) The resource URL for the security policy associated with this target pool.
        Returns:
        builder
      • sessionAffinity

        public TargetPoolArgs.Builder sessionAffinity​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> sessionAffinity)
        Parameters:
        sessionAffinity - How to distribute load. Options are "NONE" (no affinity). "CLIENT\_IP" (hash of the source/dest addresses / ports), and "CLIENT\_IP\_PROTO" also includes the protocol (default "NONE").
        Returns:
        builder
      • sessionAffinity

        public TargetPoolArgs.Builder sessionAffinity​(java.lang.String sessionAffinity)
        Parameters:
        sessionAffinity - How to distribute load. Options are "NONE" (no affinity). "CLIENT\_IP" (hash of the source/dest addresses / ports), and "CLIENT\_IP\_PROTO" also includes the protocol (default "NONE").
        Returns:
        builder