public static final class UpdateNacosInstanceRequest.Builder extends Object
public UpdateNacosInstanceRequest.Builder acceptLanguage(String acceptLanguage)
The language of the response. Valid values:
zh
public UpdateNacosInstanceRequest.Builder clusterName(String clusterName)
The name of the Nacos instance.
example:DEFAULT
public UpdateNacosInstanceRequest.Builder enabled(Boolean enabled)
Specifies whether to disable this service. Valid values:
true: yes.false: no.This parameter is required.
example:true
public UpdateNacosInstanceRequest.Builder ephemeral(Boolean ephemeral)
Specifies whether the node is a non-persistent node. Valid values:
true: yes.false: no.This parameter is required.
example:false
public UpdateNacosInstanceRequest.Builder groupName(String groupName)
The name of the group.
This parameter is required.
example:DEFAULT_GROUP
public UpdateNacosInstanceRequest.Builder instanceId(String instanceId)
The ID of the instance.
This parameter is required.
example:mse-cn-123456
public UpdateNacosInstanceRequest.Builder ip(String ip)
The IP address of the Nacos instance.
This parameter is required.
example:1.2.X.X
public UpdateNacosInstanceRequest.Builder metadata(String metadata)
The metadata of the instance.
example:[int]
public UpdateNacosInstanceRequest.Builder namespaceId(String namespaceId)
The ID of the namespace.
example:9e78a671-4b9b-4dd4-99c1-0****
public UpdateNacosInstanceRequest.Builder port(Integer port)
The port number of the Nacos instance.
This parameter is required.
example:12281
public UpdateNacosInstanceRequest.Builder serviceName(String serviceName)
The name of the service.
This parameter is required.
example:hello_service
public UpdateNacosInstanceRequest.Builder weight(String weight)
The weight. Valid values: 0 to 10000. The value must be an integer. A larger value indicates a higher frequency at which the instance is accessed.
This parameter is required.
example:1
public UpdateNacosInstanceRequest build()
Copyright © 2026. All rights reserved.