ServiceProps
Properties for defining a Service.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-apig-service
Initializer
import com.aliyun.ros.cdk.apig.ServiceProps;
ServiceProps.builder()
.gatewayId(java.lang.String)
.gatewayId(IResolvable)
// .addresses(IResolvable)
// .addresses(java.util.List<java.lang.String)
// .addresses(IResolvable>)
// .aiServiceConfig(IResolvable)
// .aiServiceConfig(AiServiceConfigProperty)
// .groupName(java.lang.String)
// .groupName(IResolvable)
// .namespace(java.lang.String)
// .namespace(IResolvable)
// .qualifier(java.lang.String)
// .qualifier(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .serviceName(java.lang.String)
// .serviceName(IResolvable)
// .sourceType(java.lang.String)
// .sourceType(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
gatewayId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property gatewayId: The ID of the Cloud Native API Gateway. |
addresses | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property addresses: Service Address List. |
aiServiceConfig | com.aliyun.ros.cdk.core.IResolvable OR AiServiceConfigProperty | Property aiServiceConfig: AI service configuration when SourceType equals AI. |
groupName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property groupName: The service group name. |
namespace | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property namespace: The namespace of the service: - SourceType is K8S, indicating the namespace of the K8S service. |
qualifier | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property qualifier: The function version or alias. |
resourceGroupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property resourceGroupId: The ID of the resource group. |
serviceName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property serviceName: The name of the service, need to fill in manually when SourceType is VIP\/DNS\/AI. |
sourceType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property sourceType: The type of the service source, optional value is K8S\/MSE_NACOS\/FC3\/SAE_K8S_SERVICE\/VIP\/DNS\/AI. |
gatewayIdRequired
public java.lang.Object getGatewayId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property gatewayId: The ID of the Cloud Native API Gateway.
addressesOptional
public java.lang.Object getAddresses();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property addresses: Service Address List.
aiServiceConfigOptional
public java.lang.Object getAiServiceConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR AiServiceConfigProperty
Property aiServiceConfig: AI service configuration when SourceType equals AI.
groupNameOptional
public java.lang.Object getGroupName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property groupName: The service group name.
Required when SourceType is MSE_NACOS.
namespaceOptional
public java.lang.Object getNamespace();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property namespace: The namespace of the service: - SourceType is K8S, indicating the namespace of the K8S service.
When-SourceType is set to MSE_NACOS, it indicates the namespace in Nacos. When the SourceType is K8S and MSE_NACOS, it needs to be specified.
qualifierOptional
public java.lang.Object getQualifier();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property qualifier: The function version or alias.
resourceGroupIdOptional
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: The ID of the resource group.
serviceNameOptional
public java.lang.Object getServiceName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property serviceName: The name of the service, need to fill in manually when SourceType is VIP\/DNS\/AI.
sourceTypeOptional
public java.lang.Object getSourceType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property sourceType: The type of the service source, optional value is K8S\/MSE_NACOS\/FC3\/SAE_K8S_SERVICE\/VIP\/DNS\/AI.