TrafficQosRuleProps
Properties for defining a TrafficQosRule.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-trafficqosrule
Initializer
import com.aliyun.ros.cdk.vpc.TrafficQosRuleProps;
TrafficQosRuleProps.builder()
.priority(java.lang.Number)
.priority(IResolvable)
.protocol(java.lang.String)
.protocol(IResolvable)
.qosId(java.lang.String)
.qosId(IResolvable)
.queueId(java.lang.String)
.queueId(IResolvable)
// .dstCidr(java.lang.String)
// .dstCidr(IResolvable)
// .dstIpv6Cidr(java.lang.String)
// .dstIpv6Cidr(IResolvable)
// .dstPortRange(java.lang.String)
// .dstPortRange(IResolvable)
// .matchDscp(java.lang.Number)
// .matchDscp(IResolvable)
// .remarkingDscp(java.lang.Number)
// .remarkingDscp(IResolvable)
// .ruleDescription(java.lang.String)
// .ruleDescription(IResolvable)
// .ruleName(java.lang.String)
// .ruleName(IResolvable)
// .srcCidr(java.lang.String)
// .srcCidr(IResolvable)
// .srcIpv6Cidr(java.lang.String)
// .srcIpv6Cidr(IResolvable)
// .srcPortRange(java.lang.String)
// .srcPortRange(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
priority | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property priority: The priority of the QoS rule. |
protocol | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property protocol: QoS rule protocol type, value: - ALL - ICMP(IPv4) - ICMPv6(IPv6)* * - TCP - UDP - GRE - SSH - Telnet - HTTP - HTTPS - MS SQL - Oracle - MySql - RDP - PostgreSQL - Redis**. |
qosId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property qosId: The QoS policy ID. |
queueId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property queueId: The QoS queue ID. |
dstCidr | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property dstCidr: The destination IPv4 CIDR block that matches the QoS rule traffic. |
dstIpv6Cidr | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property dstIpv6Cidr: The QoS rule traffic matches the Destination IPv6 network segment. |
dstPortRange | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property dstPortRange: QoS rule traffic matches the destination port number range. |
matchDscp | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property matchDscp: The DSCP value that matches the QoS rule traffic. |
remarkingDscp | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property remarkingDscp: The new DSCP value. |
ruleDescription | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ruleDescription: The description of the QoS rule. |
ruleName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ruleName: The name of the QoS rule. |
srcCidr | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property srcCidr: The source IPv4 CIDR block that matches the QoS rule traffic. |
srcIpv6Cidr | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property srcIpv6Cidr: The QoS rule traffic matches the source IPv6 network segment. |
srcPortRange | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property srcPortRange: The source port number of the QoS rule traffic matching. |
priorityRequired
public java.lang.Object getPriority();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property priority: The priority of the QoS rule.
Valid values: 1 to 9000. A larger value indicates a higher priority. The priority of each QoS rule must be unique in the same QoS policy.
protocolRequired
public java.lang.Object getProtocol();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property protocol: QoS rule protocol type, value: - ALL - ICMP(IPv4) - ICMPv6(IPv6)* * - TCP - UDP - GRE - SSH - Telnet - HTTP - HTTPS - MS SQL - Oracle - MySql - RDP - PostgreSQL - Redis**.
qosIdRequired
public java.lang.Object getQosId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property qosId: The QoS policy ID.
queueIdRequired
public java.lang.Object getQueueId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property queueId: The QoS queue ID.
dstCidrOptional
public java.lang.Object getDstCidr();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dstCidr: The destination IPv4 CIDR block that matches the QoS rule traffic.
If this parameter is not supported, enter SrcIPv6Cidr or *DstIPv6Cidr * .
dstIpv6CidrOptional
public java.lang.Object getDstIpv6Cidr();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dstIpv6Cidr: The QoS rule traffic matches the Destination IPv6 network segment.
If this parameter is not supported, enter SrcCidr or *DstCidr * .
dstPortRangeOptional
public java.lang.Object getDstPortRange();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dstPortRange: QoS rule traffic matches the destination port number range.
Value range: 0 to 65535. If not, the value is -1. Currently, only a single port number is supported, and the start and end of the port number must be the same. The corresponding destination port number range is fixed for different protocol types. The values are as follows:
- ALL:-1/-1, not editable.
- ICMP(IPv4):-1/-1, non-editable.
- ICMPv6(IPv6):-1/-1, non-editable.
- TCP:-1/-1, editable.
- UDP:-1/-1, editable.
- GRE:-1/-1, not editable.
- SSH:22/22, not editable.
- Telnet:23/23, not editable.
- HTTP:80/80, non-editable.
- HTTPS:443/443, which cannot be edited.
- MS SQL:1443/1443, which cannot be edited.
- Oracle:1521/1521, non-editable.
- MySql:3306/3306, non-editable.
- RDP:3389/3389, non-editable.
- PostgreSQL:5432/5432, non-editable.
- Redis:6379/6379, non-editable.
matchDscpOptional
public java.lang.Object getMatchDscp();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property matchDscp: The DSCP value that matches the QoS rule traffic.
Valid values: 0 to 63. If no value is matched, the value is -1.
remarkingDscpOptional
public java.lang.Object getRemarkingDscp();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property remarkingDscp: The new DSCP value.
Valid values: 0 to 63. If you do not change the value, set the value to -1.
ruleDescriptionOptional
public java.lang.Object getRuleDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ruleDescription: The description of the QoS rule.
The length is 0 to 256 characters and cannot start with 'http:// 'or 'https.
ruleNameOptional
public java.lang.Object getRuleName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ruleName: The name of the QoS rule.
The length is 0 to 128 characters and cannot start with 'http:// 'or 'https.
srcCidrOptional
public java.lang.Object getSrcCidr();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property srcCidr: The source IPv4 CIDR block that matches the QoS rule traffic.
If this parameter is not supported, enter SrcIPv6Cidr or *DstIPv6Cidr * .
srcIpv6CidrOptional
public java.lang.Object getSrcIpv6Cidr();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property srcIpv6Cidr: The QoS rule traffic matches the source IPv6 network segment.
If this parameter is not supported, enter SrcCidr or *DstCidr * .
srcPortRangeOptional
public java.lang.Object getSrcPortRange();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property srcPortRange: The source port number of the QoS rule traffic matching.
The value range is 0 to 65535. If the traffic does not match, the value is -1. Currently, only a single port number is supported, and the start and end of the port number must be the same.