public static final class DeleteNatGatewayRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
DeleteNatGatewayRequest |
build() |
DeleteNatGatewayRequest.Builder |
force(Boolean force)
Specifies whether to forcefully delete the NAT gateway.
|
DeleteNatGatewayRequest.Builder |
natGatewayId(String natGatewayId)
The ID of the NAT gateway that you want to delete.
|
DeleteNatGatewayRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
DeleteNatGatewayRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
DeleteNatGatewayRequest.Builder |
regionId(String regionId)
The region ID of the NAT gateway.
|
DeleteNatGatewayRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
DeleteNatGatewayRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
public DeleteNatGatewayRequest.Builder force(Boolean force)
* **true** If you set the value to **true**: * If the NAT gateway has SNAT entries, the system automatically deletes them. * If the NAT gateway has DNAT entries, the system automatically deletes them. * If the NAT gateway is associated with an elastic IP address (EIP), the system automatically disassociates the EIP from the NAT gateway. * If the NAT gateway is associated with a NAT bandwidth plan, the system automatically disassociates the NAT bandwidth plan. * **false**(default): no If you set the value to **false**: * If the NAT gateway is associated with a NAT bandwidth plan, disassociate the NAT bandwidth plan first. * If the NAT gateway has SNAT entries, delete them first. * If the NAT gateway has DNAT entries, delete them first. * If the NAT gateway is associated with an EIP, disassociate the EIP from the NAT gateway first.
public DeleteNatGatewayRequest.Builder natGatewayId(String natGatewayId)
public DeleteNatGatewayRequest.Builder ownerAccount(String ownerAccount)
public DeleteNatGatewayRequest.Builder ownerId(Long ownerId)
public DeleteNatGatewayRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list.
public DeleteNatGatewayRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DeleteNatGatewayRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DeleteNatGatewayRequest build()
Copyright © 2024. All rights reserved.