public static final class CreateNacosServiceRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateNacosServiceRequest.Builder |
acceptLanguage(String acceptLanguage)
The language of the response.
|
CreateNacosServiceRequest |
build() |
CreateNacosServiceRequest.Builder |
clusterId(String clusterId)
The ID of the cluster.
|
CreateNacosServiceRequest.Builder |
ephemeral(Boolean ephemeral)
Specifies whether the instance is marked as a temporary node.
|
CreateNacosServiceRequest.Builder |
groupName(String groupName)
The name of the group.
|
CreateNacosServiceRequest.Builder |
instanceId(String instanceId)
The ID of the instance.
|
CreateNacosServiceRequest.Builder |
namespaceId(String namespaceId)
The ID of the namespace.
|
CreateNacosServiceRequest.Builder |
protectThreshold(String protectThreshold)
The protection threshold.
|
CreateNacosServiceRequest.Builder |
serviceName(String serviceName)
The name of the service.
|
public CreateNacosServiceRequest.Builder acceptLanguage(String acceptLanguage)
The language of the response. Valid values:
zh
public CreateNacosServiceRequest.Builder clusterId(String clusterId)
The ID of the cluster.
example:This operation contains both the InstanceId and ClusterId parameters. You must specify one of them.
mse-3691a080
public CreateNacosServiceRequest.Builder ephemeral(Boolean ephemeral)
Specifies whether the instance is marked as a temporary node. Valid values:
true: yesfalse: notrue
public CreateNacosServiceRequest.Builder groupName(String groupName)
The name of the group.
example:DEFAULT_GROUP
public CreateNacosServiceRequest.Builder instanceId(String instanceId)
The ID of the instance.
example:This operation contains both the InstanceId and ClusterId parameters. You must specify one of them.
mse-cn-st21ri2****
public CreateNacosServiceRequest.Builder namespaceId(String namespaceId)
The ID of the namespace.
example:production
public CreateNacosServiceRequest.Builder protectThreshold(String protectThreshold)
The protection threshold.
example:0
public CreateNacosServiceRequest.Builder serviceName(String serviceName)
The name of the service.
This parameter is required.
example:com.alibabacloud.hipstershop.cartserviceapi.service.CartService
public CreateNacosServiceRequest build()
Copyright © 2026. All rights reserved.