Skip to content

NacosServiceProps

Properties for defining a NacosService.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mse-nacosservice

Initializer

import com.aliyun.ros.cdk.mse.NacosServiceProps;
NacosServiceProps.builder()
    .instanceId(java.lang.String)
    .instanceId(IResolvable)
    .serviceName(java.lang.String)
    .serviceName(IResolvable)
//  .ephemeral(java.lang.Boolean)
//  .ephemeral(IResolvable)
//  .groupName(java.lang.String)
//  .groupName(IResolvable)
//  .namespaceId(java.lang.String)
//  .namespaceId(IResolvable)
//  .protectThreshold(java.lang.String)
//  .protectThreshold(IResolvable)
    .build();

Properties

Name Type Description
instanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceId: The ID of the instance.
serviceName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property serviceName: The name of the service.
ephemeral java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property ephemeral: Specifies whether the instance is a temporary node.
groupName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property groupName: The name of the group.
namespaceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property namespaceId: The ID of the namespace.
protectThreshold java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property protectThreshold: The protection threshold.

instanceIdRequired

public java.lang.Object getInstanceId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property instanceId: The ID of the instance.


serviceNameRequired

public java.lang.Object getServiceName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property serviceName: The name of the service.


ephemeralOptional

public java.lang.Object getEphemeral();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property ephemeral: Specifies whether the instance is a temporary node.

Valid values: true: yes false: no


groupNameOptional

public java.lang.Object getGroupName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property groupName: The name of the group.


namespaceIdOptional

public java.lang.Object getNamespaceId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property namespaceId: The ID of the namespace.


protectThresholdOptional

public java.lang.Object getProtectThreshold();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property protectThreshold: The protection threshold.