Package com.pulumi.gcp.compute
Class HealthCheckArgs.Builder
- java.lang.Object
-
- com.pulumi.gcp.compute.HealthCheckArgs.Builder
-
- Enclosing class:
- HealthCheckArgs
public static final class HealthCheckArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(HealthCheckArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(HealthCheckArgs defaults)
-
-
Method Detail
-
checkIntervalSec
public HealthCheckArgs.Builder checkIntervalSec(@Nullable com.pulumi.core.Output<java.lang.Integer> checkIntervalSec)
- Parameters:
checkIntervalSec
- How often (in seconds) to send a health check. The default value is 5 seconds.- Returns:
- builder
-
checkIntervalSec
public HealthCheckArgs.Builder checkIntervalSec(java.lang.Integer checkIntervalSec)
- Parameters:
checkIntervalSec
- How often (in seconds) to send a health check. The default value is 5 seconds.- Returns:
- builder
-
description
public HealthCheckArgs.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description
- An optional description of this resource. Provide this property when you create the resource.- Returns:
- builder
-
description
public HealthCheckArgs.Builder description(java.lang.String description)
- Parameters:
description
- An optional description of this resource. Provide this property when you create the resource.- Returns:
- builder
-
grpcHealthCheck
public HealthCheckArgs.Builder grpcHealthCheck(@Nullable com.pulumi.core.Output<HealthCheckGrpcHealthCheckArgs> grpcHealthCheck)
- Parameters:
grpcHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
grpcHealthCheck
public HealthCheckArgs.Builder grpcHealthCheck(HealthCheckGrpcHealthCheckArgs grpcHealthCheck)
- Parameters:
grpcHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
healthyThreshold
public HealthCheckArgs.Builder healthyThreshold(@Nullable com.pulumi.core.Output<java.lang.Integer> healthyThreshold)
- Parameters:
healthyThreshold
- A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.- Returns:
- builder
-
healthyThreshold
public HealthCheckArgs.Builder healthyThreshold(java.lang.Integer healthyThreshold)
- Parameters:
healthyThreshold
- A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2.- Returns:
- builder
-
http2HealthCheck
public HealthCheckArgs.Builder http2HealthCheck(@Nullable com.pulumi.core.Output<HealthCheckHttp2HealthCheckArgs> http2HealthCheck)
- Parameters:
http2HealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
http2HealthCheck
public HealthCheckArgs.Builder http2HealthCheck(HealthCheckHttp2HealthCheckArgs http2HealthCheck)
- Parameters:
http2HealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
httpHealthCheck
public HealthCheckArgs.Builder httpHealthCheck(@Nullable com.pulumi.core.Output<HealthCheckHttpHealthCheckArgs> httpHealthCheck)
- Parameters:
httpHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
httpHealthCheck
public HealthCheckArgs.Builder httpHealthCheck(HealthCheckHttpHealthCheckArgs httpHealthCheck)
- Parameters:
httpHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
httpsHealthCheck
public HealthCheckArgs.Builder httpsHealthCheck(@Nullable com.pulumi.core.Output<HealthCheckHttpsHealthCheckArgs> httpsHealthCheck)
- Parameters:
httpsHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
httpsHealthCheck
public HealthCheckArgs.Builder httpsHealthCheck(HealthCheckHttpsHealthCheckArgs httpsHealthCheck)
- Parameters:
httpsHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
logConfig
public HealthCheckArgs.Builder logConfig(@Nullable com.pulumi.core.Output<HealthCheckLogConfigArgs> logConfig)
- Parameters:
logConfig
- Configure logging on this health check. Structure is documented below.- Returns:
- builder
-
logConfig
public HealthCheckArgs.Builder logConfig(HealthCheckLogConfigArgs logConfig)
- Parameters:
logConfig
- Configure logging on this health check. Structure is documented below.- Returns:
- builder
-
name
public HealthCheckArgs.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name
- Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. ***- Returns:
- builder
-
name
public HealthCheckArgs.Builder name(java.lang.String name)
- Parameters:
name
- Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. ***- Returns:
- builder
-
project
public HealthCheckArgs.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 HealthCheckArgs.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
-
sslHealthCheck
public HealthCheckArgs.Builder sslHealthCheck(@Nullable com.pulumi.core.Output<HealthCheckSslHealthCheckArgs> sslHealthCheck)
- Parameters:
sslHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
sslHealthCheck
public HealthCheckArgs.Builder sslHealthCheck(HealthCheckSslHealthCheckArgs sslHealthCheck)
- Parameters:
sslHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
tcpHealthCheck
public HealthCheckArgs.Builder tcpHealthCheck(@Nullable com.pulumi.core.Output<HealthCheckTcpHealthCheckArgs> tcpHealthCheck)
- Parameters:
tcpHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
tcpHealthCheck
public HealthCheckArgs.Builder tcpHealthCheck(HealthCheckTcpHealthCheckArgs tcpHealthCheck)
- Parameters:
tcpHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
timeoutSec
public HealthCheckArgs.Builder timeoutSec(@Nullable com.pulumi.core.Output<java.lang.Integer> timeoutSec)
- Parameters:
timeoutSec
- How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.- Returns:
- builder
-
timeoutSec
public HealthCheckArgs.Builder timeoutSec(java.lang.Integer timeoutSec)
- Parameters:
timeoutSec
- How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec.- Returns:
- builder
-
unhealthyThreshold
public HealthCheckArgs.Builder unhealthyThreshold(@Nullable com.pulumi.core.Output<java.lang.Integer> unhealthyThreshold)
- Parameters:
unhealthyThreshold
- A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.- Returns:
- builder
-
unhealthyThreshold
public HealthCheckArgs.Builder unhealthyThreshold(java.lang.Integer unhealthyThreshold)
- Parameters:
unhealthyThreshold
- A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2.- Returns:
- builder
-
build
public HealthCheckArgs build()
-
-