Skip to content

RuleProps

Properties for defining a Rule.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-slb-rule

Initializer

import com.aliyun.ros.cdk.slb.RuleProps;
RuleProps.builder()
    .listenerPort(java.lang.Number)
    .listenerPort(IResolvable)
    .loadBalancerId(java.lang.String)
    .loadBalancerId(IResolvable)
    .ruleList(IResolvable)
    .ruleList(java.util.List<IResolvable)
    .ruleList(RuleListProperty>)
//  .listenerProtocol(java.lang.String)
//  .listenerProtocol(IResolvable)
    .build();

Properties

Name Type Description
listenerPort java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property listenerPort: The front-end HTTPS listener port of the Server Load Balancer instance.
loadBalancerId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property loadBalancerId: The ID of Server Load Balancer instance.
ruleList com.aliyun.ros.cdk.core.IResolvable OR java.util.ListRuleListProperty> Property ruleList: The forwarding rules to add.
listenerProtocol java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property listenerProtocol: The frontend protocol that is used by the SLB instance.

listenerPortRequired

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

Property listenerPort: The front-end HTTPS listener port of the Server Load Balancer instance.

Valid value: 1-65535


loadBalancerIdRequired

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

Property loadBalancerId: The ID of Server Load Balancer instance.


ruleListRequired

public java.lang.Object getRuleList();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListRuleListProperty>

Property ruleList: The forwarding rules to add.


listenerProtocolOptional

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

Property listenerProtocol: The frontend protocol that is used by the SLB instance.