public static final class UpdateNacosClusterRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
UpdateNacosClusterRequest.Builder |
acceptLanguage(String acceptLanguage)
The language of the response.
|
UpdateNacosClusterRequest |
build() |
UpdateNacosClusterRequest.Builder |
checkPort(Integer checkPort)
The port used for health checks.
|
UpdateNacosClusterRequest.Builder |
clusterName(String clusterName)
The name of the Nacos cluster.
|
UpdateNacosClusterRequest.Builder |
groupName(String groupName)
The name of the group.
|
UpdateNacosClusterRequest.Builder |
healthChecker(String healthChecker)
The type of the health check.
|
UpdateNacosClusterRequest.Builder |
instanceId(String instanceId)
The ID of the instance.
|
UpdateNacosClusterRequest.Builder |
namespaceId(String namespaceId)
The ID of the namespace.
|
UpdateNacosClusterRequest.Builder |
serviceName(String serviceName)
The name of the service.
|
UpdateNacosClusterRequest.Builder |
useInstancePortForCheck(Boolean useInstancePortForCheck)
Specifies whether to use the port of the instance for a health check.
|
public UpdateNacosClusterRequest.Builder acceptLanguage(String acceptLanguage)
The language of the response. Valid values:
zh
public UpdateNacosClusterRequest.Builder checkPort(Integer checkPort)
The port used for health checks.
example:80
public UpdateNacosClusterRequest.Builder clusterName(String clusterName)
The name of the Nacos cluster.
This parameter is required.
example:DEFAULT
public UpdateNacosClusterRequest.Builder groupName(String groupName)
The name of the group.
This parameter is required.
example:DEFAULT_GROUP
public UpdateNacosClusterRequest.Builder healthChecker(String healthChecker)
The type of the health check.
example:{"type":"none"}
public UpdateNacosClusterRequest.Builder instanceId(String instanceId)
The ID of the instance.
This parameter is required.
example:mse-cn-123456
public UpdateNacosClusterRequest.Builder namespaceId(String namespaceId)
The ID of the namespace.
example:9e78a671-4b9b-4dd4-99c1-0b9da87d3dec
public UpdateNacosClusterRequest.Builder serviceName(String serviceName)
The name of the service.
This parameter is required.
example:hello_service
public UpdateNacosClusterRequest.Builder useInstancePortForCheck(Boolean useInstancePortForCheck)
Specifies whether to use the port of the instance for a health check.
example:false
public UpdateNacosClusterRequest build()
Copyright © 2026. All rights reserved.