Class ComputeRegionHealthCheckHttp2HealthCheck.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_health_check.ComputeRegionHealthCheckHttp2HealthCheck.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionHealthCheckHttp2HealthCheck>
- Enclosing interface:
- ComputeRegionHealthCheckHttp2HealthCheck
@Stability(Stable) public static final class ComputeRegionHealthCheckHttp2HealthCheck.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionHealthCheckHttp2HealthCheck>
A builder forComputeRegionHealthCheckHttp2HealthCheck
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
host
@Stability(Stable) public ComputeRegionHealthCheckHttp2HealthCheck.Builder host(String host)
Sets the value ofComputeRegionHealthCheckHttp2HealthCheck.getHost()- Parameters:
host- The value of the host header in the HTTP2 health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_health_check#host ComputeRegionHealthCheck#host}- Returns:
this
-
port
@Stability(Stable) public ComputeRegionHealthCheckHttp2HealthCheck.Builder port(Number port)
Sets the value ofComputeRegionHealthCheckHttp2HealthCheck.getPort()- Parameters:
port- The TCP port number for the HTTP2 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_region_health_check#port ComputeRegionHealthCheck#port}- Returns:
this
-
portName
@Stability(Stable) public ComputeRegionHealthCheckHttp2HealthCheck.Builder portName(String portName)
Sets the value ofComputeRegionHealthCheckHttp2HealthCheck.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_region_health_check#port_name ComputeRegionHealthCheck#port_name}- Returns:
this
-
portSpecification
@Stability(Stable) public ComputeRegionHealthCheckHttp2HealthCheck.Builder portSpecification(String portSpecification)
Sets the value ofComputeRegionHealthCheckHttp2HealthCheck.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, HTTP2 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_region_health_check#port_specification ComputeRegionHealthCheck#port_specification}- Returns:
this
-
proxyHeader
@Stability(Stable) public ComputeRegionHealthCheckHttp2HealthCheck.Builder proxyHeader(String proxyHeader)
Sets the value ofComputeRegionHealthCheckHttp2HealthCheck.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_region_health_check#proxy_header ComputeRegionHealthCheck#proxy_header}- Returns:
this
-
requestPath
@Stability(Stable) public ComputeRegionHealthCheckHttp2HealthCheck.Builder requestPath(String requestPath)
Sets the value ofComputeRegionHealthCheckHttp2HealthCheck.getRequestPath()- Parameters:
requestPath- The request path of the HTTP2 health check request. The default value is /. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_region_health_check#request_path ComputeRegionHealthCheck#request_path}- Returns:
this
-
response
@Stability(Stable) public ComputeRegionHealthCheckHttp2HealthCheck.Builder response(String response)
Sets the value ofComputeRegionHealthCheckHttp2HealthCheck.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_region_health_check#response ComputeRegionHealthCheck#response}- Returns:
this
-
build
@Stability(Stable) public ComputeRegionHealthCheckHttp2HealthCheck build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionHealthCheckHttp2HealthCheck>- Returns:
- a new instance of
ComputeRegionHealthCheckHttp2HealthCheck - Throws:
NullPointerException- if any required attribute was not provided
-
-