public static final class CreateNetworkAclRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateNetworkAclRequest |
build() |
CreateNetworkAclRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateNetworkAclRequest.Builder |
description(String description)
The description of the network ACL.
|
CreateNetworkAclRequest.Builder |
dryRun(Boolean dryRun)
Specifies whether to perform only a dry run, without performing the actual request.
|
CreateNetworkAclRequest.Builder |
networkAclName(String networkAclName)
The name of the network ACL.
|
CreateNetworkAclRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateNetworkAclRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateNetworkAclRequest.Builder |
regionId(String regionId)
The region ID of the network ACL.
|
CreateNetworkAclRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateNetworkAclRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateNetworkAclRequest.Builder |
tag(List<CreateNetworkAclRequest.Tag> tag)
The tags of the resource.
|
CreateNetworkAclRequest.Builder |
vpcId(String vpcId)
The ID of the virtual private cloud (VPC) to which the network ACL belongs.
|
public CreateNetworkAclRequest.Builder clientToken(String clientToken)
You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters. > If you do not specify this parameter, the system automatically uses the **request ID** as the **client token**. The **request ID** may be different for each request.
public CreateNetworkAclRequest.Builder description(String description)
The description must be 1 to 256 characters in length, and cannot start with `http://` or `https://`.
public CreateNetworkAclRequest.Builder dryRun(Boolean dryRun)
* **true**: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned. * **false** (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
public CreateNetworkAclRequest.Builder networkAclName(String networkAclName)
The name must be 1 to 128 characters in length, and cannot start with `http://` or `https://`.
public CreateNetworkAclRequest.Builder ownerAccount(String ownerAccount)
public CreateNetworkAclRequest.Builder ownerId(Long ownerId)
public CreateNetworkAclRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list.
public CreateNetworkAclRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateNetworkAclRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateNetworkAclRequest.Builder tag(List<CreateNetworkAclRequest.Tag> tag)
public CreateNetworkAclRequest.Builder vpcId(String vpcId)
If the VPC contains Elastic Compute Service (ECS) instances of the following instance families, you must upgrade the ECS instances or release the ECS instances. Otherwise, you cannot create a network ACL for the VPC. ecs.c1, ecs.c2, ecs.c4, ecs.c5, ecs.ce4, ecs.cm4, ecs.d1, ecs.e3, ecs.e4, ecs.ga1, ecs.gn4, ecs.gn5, ecs.i1, ecs.m1, ecs.m2, ecs.mn4, ecs.n1, ecs.n2, ecs.n4, ecs.s1, ecs.s2, ecs.s3, ecs.se1, ecs.sn1, ecs.sn2, ecs.t1, and ecs.xn4. * For more information about how to upgrade an ECS instance, see [Upgrade subscription instances](~~25438~~) and [Change the specifications of pay-as-you-go instances](~~60051~~). * For more information about how to release an ECS instance, see [Release an ECS instance](~~25442~~). > If the VPC contains an ECS instance that does not support network ACLs, upgrade the ECS instance.
public CreateNetworkAclRequest build()
Copyright © 2024. All rights reserved.