Class ComputeHealthCheckTcpHealthCheck.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_health_check.ComputeHealthCheckTcpHealthCheck.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeHealthCheckTcpHealthCheck>
- Enclosing interface:
- ComputeHealthCheckTcpHealthCheck
@Stability(Stable) public static final class ComputeHealthCheckTcpHealthCheck.Builder extends Object implements software.amazon.jsii.Builder<ComputeHealthCheckTcpHealthCheck>
A builder forComputeHealthCheckTcpHealthCheck
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeHealthCheckTcpHealthCheckbuild()Builds the configured instance.ComputeHealthCheckTcpHealthCheck.Builderport(Number port)Sets the value ofComputeHealthCheckTcpHealthCheck.getPort()ComputeHealthCheckTcpHealthCheck.BuilderportName(String portName)Sets the value ofComputeHealthCheckTcpHealthCheck.getPortName()ComputeHealthCheckTcpHealthCheck.BuilderportSpecification(String portSpecification)Sets the value ofComputeHealthCheckTcpHealthCheck.getPortSpecification()ComputeHealthCheckTcpHealthCheck.BuilderproxyHeader(String proxyHeader)Sets the value ofComputeHealthCheckTcpHealthCheck.getProxyHeader()ComputeHealthCheckTcpHealthCheck.Builderrequest(String request)Sets the value ofComputeHealthCheckTcpHealthCheck.getRequest()ComputeHealthCheckTcpHealthCheck.Builderresponse(String response)Sets the value ofComputeHealthCheckTcpHealthCheck.getResponse()
-
-
-
Method Detail
-
port
@Stability(Stable) public ComputeHealthCheckTcpHealthCheck.Builder port(Number port)
Sets the value ofComputeHealthCheckTcpHealthCheck.getPort()- Parameters:
port- The TCP port number for the TCP health check request. The default value is 443. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_health_check#port ComputeHealthCheck#port}- Returns:
this
-
portName
@Stability(Stable) public ComputeHealthCheckTcpHealthCheck.Builder portName(String portName)
Sets the value ofComputeHealthCheckTcpHealthCheck.getPortName()- Parameters:
portName- Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_health_check#port_name ComputeHealthCheck#port_name}- Returns:
this
-
portSpecification
@Stability(Stable) public ComputeHealthCheckTcpHealthCheck.Builder portSpecification(String portSpecification)
Sets the value ofComputeHealthCheckTcpHealthCheck.getPortSpecification()- Parameters:
portSpecification- Specifies how port is selected for health checking, can be one of the following values:. * 'USE_FIXED_PORT': The port number in 'port' is used for health checking. * 'USE_NAMED_PORT': The 'portName' is used for health checking. * 'USE_SERVING_PORT': For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, TCP health check follows behavior specified in 'port' and 'portName' fields. Possible values: ["USE_FIXED_PORT", "USE_NAMED_PORT", "USE_SERVING_PORT"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_health_check#port_specification ComputeHealthCheck#port_specification}- Returns:
this
-
proxyHeader
@Stability(Stable) public ComputeHealthCheckTcpHealthCheck.Builder proxyHeader(String proxyHeader)
Sets the value ofComputeHealthCheckTcpHealthCheck.getProxyHeader()- Parameters:
proxyHeader- Specifies the type of proxy header to append before sending data to the backend. Default value: "NONE" Possible values: ["NONE", "PROXY_V1"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_health_check#proxy_header ComputeHealthCheck#proxy_header}- Returns:
this
-
request
@Stability(Stable) public ComputeHealthCheckTcpHealthCheck.Builder request(String request)
Sets the value ofComputeHealthCheckTcpHealthCheck.getRequest()- Parameters:
request- The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_health_check#request ComputeHealthCheck#request}- Returns:
this
-
response
@Stability(Stable) public ComputeHealthCheckTcpHealthCheck.Builder response(String response)
Sets the value ofComputeHealthCheckTcpHealthCheck.getResponse()- Parameters:
response- The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_health_check#response ComputeHealthCheck#response}- Returns:
this
-
build
@Stability(Stable) public ComputeHealthCheckTcpHealthCheck build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeHealthCheckTcpHealthCheck>- Returns:
- a new instance of
ComputeHealthCheckTcpHealthCheck - Throws:
NullPointerException- if any required attribute was not provided
-
-