public static final class CreateVpcFirewallCenConfigureRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateVpcFirewallCenConfigureRequest |
build() |
CreateVpcFirewallCenConfigureRequest.Builder |
cenId(String cenId)
The ID of the CEN instance.
|
CreateVpcFirewallCenConfigureRequest.Builder |
firewallSwitch(String firewallSwitch)
Specifies whether to enable the VPC firewall.
|
CreateVpcFirewallCenConfigureRequest.Builder |
firewallVpcCidrBlock(String firewallVpcCidrBlock)
The CIDR block of the VPC that is automatically created for the VPC firewall.
|
CreateVpcFirewallCenConfigureRequest.Builder |
firewallVpcStandbyZoneId(String firewallVpcStandbyZoneId)
The ID of the backup availability zone to which the firewall belongs.
|
CreateVpcFirewallCenConfigureRequest.Builder |
firewallVpcZoneId(String firewallVpcZoneId)
The ID of the zone to which the vSwitch belongs.
|
CreateVpcFirewallCenConfigureRequest.Builder |
firewallVSwitchCidrBlock(String firewallVSwitchCidrBlock)
The CIDR block of the vSwitch that is automatically created for the VPC firewall.
|
CreateVpcFirewallCenConfigureRequest.Builder |
lang(String lang)
The language of the content within the request and response.
|
CreateVpcFirewallCenConfigureRequest.Builder |
memberUid(String memberUid)
The UID of the member that is managed by your Alibaba Cloud account.
|
CreateVpcFirewallCenConfigureRequest.Builder |
networkInstanceId(String networkInstanceId)
The ID of the VPC for which you want to create the VPC firewall.
|
CreateVpcFirewallCenConfigureRequest.Builder |
vpcFirewallName(String vpcFirewallName)
The instance name of the VPC firewall.
|
CreateVpcFirewallCenConfigureRequest.Builder |
vpcRegion(String vpcRegion)
The ID of the region to which the VPC belongs.
|
CreateVpcFirewallCenConfigureRequest.Builder |
vSwitchId(String vSwitchId)
The ID of the vSwitch that is used to associate with the elastic network interface (ENI) required by the VPC firewall.
|
public CreateVpcFirewallCenConfigureRequest.Builder cenId(String cenId)
The ID of the CEN instance.
This parameter is required.
example:cen-x5jayxou71ad73****
public CreateVpcFirewallCenConfigureRequest.Builder firewallSwitch(String firewallSwitch)
Specifies whether to enable the VPC firewall. Valid values:
This parameter is required.
example:open
public CreateVpcFirewallCenConfigureRequest.Builder firewallVSwitchCidrBlock(String firewallVSwitchCidrBlock)
The CIDR block of the vSwitch that is automatically created for the VPC firewall. You must specify a CIDR block for the Cloud_Firewall_VSWITCH VPC that is automatically created for the VPC firewall for traffic redirection. The CIDR block does not conflict with your network plan. The subnet mask of the CIDR block must be less than or equal to 29 bits in length. The CIDR block of the vSwitch must be within the network segment of the VPC.
If you do not specify a value, the CIDR block 10.219.219.216/29 is automatically allocated.
This parameter takes effect only when you create a VPC firewall for the first time in the current CEN instance and region.
public CreateVpcFirewallCenConfigureRequest.Builder firewallVpcCidrBlock(String firewallVpcCidrBlock)
The CIDR block of the VPC that is automatically created for the VPC firewall. You must specify a CIDR block for the Cloud_Firewall_VPC VPC that is automatically created for the VPC firewall for traffic redirection. The subnet mask of the CIDR block must be less than or equal to 28 bits in length.
If you do not specify a value, the CIDR block 10.0.0.0/8 is automatically allocated.
example:This parameter takes effect only when you create a VPC firewall for the first time in the current CEN instance and region.
10.0.0.0/8
public CreateVpcFirewallCenConfigureRequest.Builder firewallVpcStandbyZoneId(String firewallVpcStandbyZoneId)
The ID of the backup availability zone to which the firewall belongs. The firewall will automatically switch to the backup availability zone to continue running only if the primary availability zone service is unavailable. If this parameter is not filled, the backup availability zone for the firewall will be automatically assigned.
example:This parameter is only effective when creating a VPC firewall for the first time in this CEN region.
cn-hangzhou-b
public CreateVpcFirewallCenConfigureRequest.Builder firewallVpcZoneId(String firewallVpcZoneId)
The ID of the zone to which the vSwitch belongs. If your service is latency-sensitive, you can specify the same zone for the vSwitch of the firewall and the vSwitch of your business VPC to minimize latency.
If you do not specify a value, a zone is automatically assigned for the vSwitch.
example:This parameter takes effect only when you create a VPC firewall for the first time in the current CEN instance and region. For more information about zones that are supported by each region, see Query zones.
cn-hangzhou-a
public CreateVpcFirewallCenConfigureRequest.Builder lang(String lang)
The language of the content within the request and response. Valid values:
zh
public CreateVpcFirewallCenConfigureRequest.Builder memberUid(String memberUid)
The UID of the member that is managed by your Alibaba Cloud account.
example:258039427902****
public CreateVpcFirewallCenConfigureRequest.Builder networkInstanceId(String networkInstanceId)
The ID of the VPC for which you want to create the VPC firewall.
This parameter is required.
example:vpc-bp10zlifxh6j0232w****
public CreateVpcFirewallCenConfigureRequest.Builder vSwitchId(String vSwitchId)
The ID of the vSwitch that is used to associate with the elastic network interface (ENI) required by the VPC firewall.
example:vsw-qzeaol304m***
public CreateVpcFirewallCenConfigureRequest.Builder vpcFirewallName(String vpcFirewallName)
The instance name of the VPC firewall.
This parameter is required.
example:Test instance
public CreateVpcFirewallCenConfigureRequest.Builder vpcRegion(String vpcRegion)
The ID of the region to which the VPC belongs.
For more information about the regions, see Supported regions.
This parameter is required.
example:cn-hangzhou
public CreateVpcFirewallCenConfigureRequest build()
Copyright © 2026. All rights reserved.