Package com.pulumi.gcp.compute.inputs
Class HealthCheckState.Builder
- java.lang.Object
-
- com.pulumi.gcp.compute.inputs.HealthCheckState.Builder
-
- Enclosing class:
- HealthCheckState
public static final class HealthCheckState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(HealthCheckState defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(HealthCheckState defaults)
-
-
Method Detail
-
checkIntervalSec
public HealthCheckState.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 HealthCheckState.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
-
creationTimestamp
public HealthCheckState.Builder creationTimestamp(@Nullable com.pulumi.core.Output<java.lang.String> creationTimestamp)
- Parameters:
creationTimestamp
- Creation timestamp in RFC3339 text format.- Returns:
- builder
-
creationTimestamp
public HealthCheckState.Builder creationTimestamp(java.lang.String creationTimestamp)
- Parameters:
creationTimestamp
- Creation timestamp in RFC3339 text format.- Returns:
- builder
-
description
public HealthCheckState.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 HealthCheckState.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 HealthCheckState.Builder grpcHealthCheck(@Nullable com.pulumi.core.Output<HealthCheckGrpcHealthCheckArgs> grpcHealthCheck)
- Parameters:
grpcHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
grpcHealthCheck
public HealthCheckState.Builder grpcHealthCheck(HealthCheckGrpcHealthCheckArgs grpcHealthCheck)
- Parameters:
grpcHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
healthyThreshold
public HealthCheckState.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 HealthCheckState.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 HealthCheckState.Builder http2HealthCheck(@Nullable com.pulumi.core.Output<HealthCheckHttp2HealthCheckArgs> http2HealthCheck)
- Parameters:
http2HealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
http2HealthCheck
public HealthCheckState.Builder http2HealthCheck(HealthCheckHttp2HealthCheckArgs http2HealthCheck)
- Parameters:
http2HealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
httpHealthCheck
public HealthCheckState.Builder httpHealthCheck(@Nullable com.pulumi.core.Output<HealthCheckHttpHealthCheckArgs> httpHealthCheck)
- Parameters:
httpHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
httpHealthCheck
public HealthCheckState.Builder httpHealthCheck(HealthCheckHttpHealthCheckArgs httpHealthCheck)
- Parameters:
httpHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
httpsHealthCheck
public HealthCheckState.Builder httpsHealthCheck(@Nullable com.pulumi.core.Output<HealthCheckHttpsHealthCheckArgs> httpsHealthCheck)
- Parameters:
httpsHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
httpsHealthCheck
public HealthCheckState.Builder httpsHealthCheck(HealthCheckHttpsHealthCheckArgs httpsHealthCheck)
- Parameters:
httpsHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
logConfig
public HealthCheckState.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 HealthCheckState.Builder logConfig(HealthCheckLogConfigArgs logConfig)
- Parameters:
logConfig
- Configure logging on this health check. Structure is documented below.- Returns:
- builder
-
name
public HealthCheckState.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 HealthCheckState.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 HealthCheckState.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 HealthCheckState.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
-
selfLink
public HealthCheckState.Builder selfLink(@Nullable com.pulumi.core.Output<java.lang.String> selfLink)
- Parameters:
selfLink
- The URI of the created resource.- Returns:
- builder
-
selfLink
public HealthCheckState.Builder selfLink(java.lang.String selfLink)
- Parameters:
selfLink
- The URI of the created resource.- Returns:
- builder
-
sslHealthCheck
public HealthCheckState.Builder sslHealthCheck(@Nullable com.pulumi.core.Output<HealthCheckSslHealthCheckArgs> sslHealthCheck)
- Parameters:
sslHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
sslHealthCheck
public HealthCheckState.Builder sslHealthCheck(HealthCheckSslHealthCheckArgs sslHealthCheck)
- Parameters:
sslHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
tcpHealthCheck
public HealthCheckState.Builder tcpHealthCheck(@Nullable com.pulumi.core.Output<HealthCheckTcpHealthCheckArgs> tcpHealthCheck)
- Parameters:
tcpHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
tcpHealthCheck
public HealthCheckState.Builder tcpHealthCheck(HealthCheckTcpHealthCheckArgs tcpHealthCheck)
- Parameters:
tcpHealthCheck
- A nested object resource Structure is documented below.- Returns:
- builder
-
timeoutSec
public HealthCheckState.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 HealthCheckState.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
-
type
public HealthCheckState.Builder type(@Nullable com.pulumi.core.Output<java.lang.String> type)
- Parameters:
type
- The type of the health check. One of HTTP, HTTPS, TCP, or SSL.- Returns:
- builder
-
type
public HealthCheckState.Builder type(java.lang.String type)
- Parameters:
type
- The type of the health check. One of HTTP, HTTPS, TCP, or SSL.- Returns:
- builder
-
unhealthyThreshold
public HealthCheckState.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 HealthCheckState.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 HealthCheckState build()
-
-