Class ComputeRegionHealthCheckGrpcHealthCheck.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_region_health_check.ComputeRegionHealthCheckGrpcHealthCheck.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeRegionHealthCheckGrpcHealthCheck>
- Enclosing interface:
- ComputeRegionHealthCheckGrpcHealthCheck
@Stability(Stable) public static final class ComputeRegionHealthCheckGrpcHealthCheck.Builder extends Object implements software.amazon.jsii.Builder<ComputeRegionHealthCheckGrpcHealthCheck>
A builder forComputeRegionHealthCheckGrpcHealthCheck
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeRegionHealthCheckGrpcHealthCheckbuild()Builds the configured instance.ComputeRegionHealthCheckGrpcHealthCheck.BuildergrpcServiceName(String grpcServiceName)Sets the value ofComputeRegionHealthCheckGrpcHealthCheck.getGrpcServiceName()ComputeRegionHealthCheckGrpcHealthCheck.Builderport(Number port)Sets the value ofComputeRegionHealthCheckGrpcHealthCheck.getPort()ComputeRegionHealthCheckGrpcHealthCheck.BuilderportName(String portName)Sets the value ofComputeRegionHealthCheckGrpcHealthCheck.getPortName()ComputeRegionHealthCheckGrpcHealthCheck.BuilderportSpecification(String portSpecification)Sets the value ofComputeRegionHealthCheckGrpcHealthCheck.getPortSpecification()
-
-
-
Method Detail
-
grpcServiceName
@Stability(Stable) public ComputeRegionHealthCheckGrpcHealthCheck.Builder grpcServiceName(String grpcServiceName)
Sets the value ofComputeRegionHealthCheckGrpcHealthCheck.getGrpcServiceName()- Parameters:
grpcServiceName- The gRPC service name for the health check. The value of grpcServiceName has the following meanings by convention:. * Empty serviceName means the overall status of all services at the backend. * Non-empty serviceName means the health of that gRPC service, as defined by the owner of the service. The grpcServiceName 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#grpc_service_name ComputeRegionHealthCheck#grpc_service_name}- Returns:
this
-
port
@Stability(Stable) public ComputeRegionHealthCheckGrpcHealthCheck.Builder port(Number port)
Sets the value ofComputeRegionHealthCheckGrpcHealthCheck.getPort()- Parameters:
port- The port number for the health check request. Must be specified if portName and portSpecification are not set or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535. 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 ComputeRegionHealthCheckGrpcHealthCheck.Builder portName(String portName)
Sets the value ofComputeRegionHealthCheckGrpcHealthCheck.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 ComputeRegionHealthCheckGrpcHealthCheck.Builder portSpecification(String portSpecification)
Sets the value ofComputeRegionHealthCheckGrpcHealthCheck.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, gRPC 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
-
build
@Stability(Stable) public ComputeRegionHealthCheckGrpcHealthCheck build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeRegionHealthCheckGrpcHealthCheck>- Returns:
- a new instance of
ComputeRegionHealthCheckGrpcHealthCheck - Throws:
NullPointerException- if any required attribute was not provided
-
-