Skip to content

PortProps

Properties for defining a Port.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ddospro-port

Initializer

import com.aliyun.ros.cdk.ddospro.PortProps;
PortProps.builder()
    .frontendProtocol(java.lang.String)
    .frontendProtocol(IResolvable)
    .instanceId(java.lang.String)
    .instanceId(IResolvable)
    .realServers(IResolvable)
    .realServers(java.util.List<java.lang.String)
    .realServers(IResolvable>)
//  .backendPort(java.lang.String)
//  .backendPort(IResolvable)
//  .frontendPort(java.lang.String)
//  .frontendPort(IResolvable)
    .build();

Properties

Name Type Description
frontendProtocol java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property frontendProtocol: The type of the protocol.
instanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property instanceId: The ID of the Anti-DDoS Pro or Anti-DDoS Premium instance to which the port forwarding rule belongs.
realServers com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property realServers: An array that consists of the IP addresses of origin servers.
backendPort java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property backendPort: The port of the origin server.
frontendPort java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property frontendPort: The forwarding port.

frontendProtocolRequired

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

Property frontendProtocol: The type of the protocol.

Valid values: tcp udp


instanceIdRequired

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

Property instanceId: The ID of the Anti-DDoS Pro or Anti-DDoS Premium instance to which the port forwarding rule belongs.


realServersRequired

public java.lang.Object getRealServers();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property realServers: An array that consists of the IP addresses of origin servers.


backendPortOptional

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

Property backendPort: The port of the origin server.

Valid values: 0 to 65535.


frontendPortOptional

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

Property frontendPort: The forwarding port.

Valid values: 0 to 65535.