Class ComputeHealthCheckGrpcHealthCheck.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_health_check.ComputeHealthCheckGrpcHealthCheck.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeHealthCheckGrpcHealthCheck>
- Enclosing interface:
- ComputeHealthCheckGrpcHealthCheck
@Stability(Stable) public static final class ComputeHealthCheckGrpcHealthCheck.Builder extends Object implements software.amazon.jsii.Builder<ComputeHealthCheckGrpcHealthCheck>
A builder forComputeHealthCheckGrpcHealthCheck
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeHealthCheckGrpcHealthCheckbuild()Builds the configured instance.ComputeHealthCheckGrpcHealthCheck.BuildergrpcServiceName(String grpcServiceName)Sets the value ofComputeHealthCheckGrpcHealthCheck.getGrpcServiceName()ComputeHealthCheckGrpcHealthCheck.Builderport(Number port)Sets the value ofComputeHealthCheckGrpcHealthCheck.getPort()ComputeHealthCheckGrpcHealthCheck.BuilderportName(String portName)Sets the value ofComputeHealthCheckGrpcHealthCheck.getPortName()ComputeHealthCheckGrpcHealthCheck.BuilderportSpecification(String portSpecification)Sets the value ofComputeHealthCheckGrpcHealthCheck.getPortSpecification()
-
-
-
Method Detail
-
grpcServiceName
@Stability(Stable) public ComputeHealthCheckGrpcHealthCheck.Builder grpcServiceName(String grpcServiceName)
Sets the value ofComputeHealthCheckGrpcHealthCheck.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_health_check#grpc_service_name ComputeHealthCheck#grpc_service_name}- Returns:
this
-
port
@Stability(Stable) public ComputeHealthCheckGrpcHealthCheck.Builder port(Number port)
Sets the value ofComputeHealthCheckGrpcHealthCheck.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_health_check#port ComputeHealthCheck#port}- Returns:
this
-
portName
@Stability(Stable) public ComputeHealthCheckGrpcHealthCheck.Builder portName(String portName)
Sets the value ofComputeHealthCheckGrpcHealthCheck.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 ComputeHealthCheckGrpcHealthCheck.Builder portSpecification(String portSpecification)
Sets the value ofComputeHealthCheckGrpcHealthCheck.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_health_check#port_specification ComputeHealthCheck#port_specification}- Returns:
this
-
build
@Stability(Stable) public ComputeHealthCheckGrpcHealthCheck build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeHealthCheckGrpcHealthCheck>- Returns:
- a new instance of
ComputeHealthCheckGrpcHealthCheck - Throws:
NullPointerException- if any required attribute was not provided
-
-