public static final class DescribeNatGatewaysRequest.Builder extends Object
public DescribeNatGatewaysRequest.Builder dryRun(Boolean dryRun)
- **true**: performs a dry run. The system prechecks whether your AccessKey pair is valid, whether the RAM user is authorized, and whether the required parameters are specified. 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 sends the request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
public DescribeNatGatewaysRequest.Builder instanceChargeType(String instanceChargeType)
public DescribeNatGatewaysRequest.Builder name(String name)
The name must be 1 to 128 characters in length, and cannot start with `http://` or `https://`. If this parameter is not set, the system automatically assigns a name to the NAT gateway.
public DescribeNatGatewaysRequest.Builder natGatewayId(String natGatewayId)
public DescribeNatGatewaysRequest.Builder natType(String natType)
public DescribeNatGatewaysRequest.Builder networkType(String networkType)
* **internet**: an Internet NAT gateway * **intranet**: a VPC NAT gateway
public DescribeNatGatewaysRequest.Builder ownerAccount(String ownerAccount)
public DescribeNatGatewaysRequest.Builder ownerId(Long ownerId)
public DescribeNatGatewaysRequest.Builder pageNumber(Integer pageNumber)
public DescribeNatGatewaysRequest.Builder pageSize(Integer pageSize)
public DescribeNatGatewaysRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list.
public DescribeNatGatewaysRequest.Builder resourceGroupId(String resourceGroupId)
public DescribeNatGatewaysRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DescribeNatGatewaysRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DescribeNatGatewaysRequest.Builder spec(String spec)
public DescribeNatGatewaysRequest.Builder status(String status)
* **Creating**: After you send a request to create a NAT gateway, the system creates the NAT gateway in the background. The NAT gateway remains in the **Creating** state until the operation is completed. * **Available**: The NAT gateway remains in a stable state after the NAT gateway is created. * **Modifying**: After you send a request to modify a NAT gateway, the system modifies the NAT gateway in the background. The NAT gateway remains in the **Modifying** state until the operation is completed. * **Deleting**: After you send a request to delete a NAT gateway, the system deletes the NAT gateway in the background. The NAT gateway remains in the **Deleting** state until the operation is completed. * **Converting**: After you send a request to upgrade a standard NAT gateway to an enhanced NAT gateway, the system upgrades the NAT gateway in the background. The NAT gateway remains in the **Converting** state until the operation is completed.
public DescribeNatGatewaysRequest.Builder tag(List<DescribeNatGatewaysRequest.Tag> tag)
public DescribeNatGatewaysRequest.Builder vpcId(String vpcId)
public DescribeNatGatewaysRequest.Builder zoneId(String zoneId)
public DescribeNatGatewaysRequest build()
Copyright © 2024. All rights reserved.