public static final class ConfigLayer4RuleBakModeRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
ConfigLayer4RuleBakModeRequest.Builder |
bakMode(String bakMode)
The mode that you want to use to forward service traffic.
|
ConfigLayer4RuleBakModeRequest |
build() |
ConfigLayer4RuleBakModeRequest.Builder |
listeners(String listeners)
The port forwarding rule that you want to manage.
|
ConfigLayer4RuleBakModeRequest.Builder |
regionId(String regionId)
RegionId.
|
public ConfigLayer4RuleBakModeRequest.Builder regionId(String regionId)
public ConfigLayer4RuleBakModeRequest.Builder bakMode(String bakMode)
* **0**: the default mode. In this mode, Anti-DDoS Pro or Anti-DDoS Premium forwards service traffic to the origin IP address that you specified when you created the port forwarding rule. You can call the [CreateNetworkRules](~~157482~~) operation to create a port forwarding rule. * **1**: the origin redundancy mode. In this mode, Anti-DDoS Pro or Anti-DDoS Premium forwards service traffic to the IP addresses of the primary or secondary origin servers. You can call the [ConfigLayer4RulePolicy](~~312684~~) operation to configure IP addresses.
public ConfigLayer4RuleBakModeRequest.Builder listeners(String listeners)
This parameter is a string that consists of JSON arrays. Each element in a JSON array indicates a port forwarding rule. You can perform this operation only on one port forwarding rule at a time. > You can call the [DescribeNetworkRules](~~157484~~) to query existing port forwarding rules. Each port forwarding rule contains the following fields: * **InstanceId**: the ID of the instance. This field is required and must be of the STRING type. * **Protocol**: the forwarding protocol. This field is required and must be of the STRING type. Valid values: **tcp** and **udp**. * **FrontendPort**: the forwarding port. This field is required and must be of the INTEGER type.
public ConfigLayer4RuleBakModeRequest build()
Copyright © 2023. All rights reserved.