Class ComputeRegionHealthCheckGrpcHealthCheck.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • grpcServiceName

        @Stability(Stable)
        public ComputeRegionHealthCheckGrpcHealthCheck.Builder grpcServiceName​(String grpcServiceName)
        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)
        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)
        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)
        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