public static final class DeletionProtectionRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
DeletionProtectionRequest |
build() |
DeletionProtectionRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
DeletionProtectionRequest.Builder |
instanceId(String instanceId)
The ID of the instance for which you want to enable deletion protection.
|
DeletionProtectionRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
DeletionProtectionRequest.Builder |
protectionEnable(Boolean protectionEnable)
Specifies whether to enable deletion protection.
|
DeletionProtectionRequest.Builder |
regionId(String regionId)
The ID of the region where the instance for which you want to enable deletion protection is deployed.
|
DeletionProtectionRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
DeletionProtectionRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
DeletionProtectionRequest.Builder |
type(String type)
The type of instance.
|
public DeletionProtectionRequest.Builder clientToken(String clientToken)
You can use the client to generate the value, but you must make sure that it is unique among all requests. ClientToken can contain only ASCII characters. > If you do not set this parameter, **ClientToken** is set to the value of **RequestId**. The value of **RequestId** may be different for each API request.
public DeletionProtectionRequest.Builder instanceId(String instanceId)
public DeletionProtectionRequest.Builder ownerId(Long ownerId)
public DeletionProtectionRequest.Builder protectionEnable(Boolean protectionEnable)
* **true**: yes * **false**: no
public DeletionProtectionRequest.Builder regionId(String regionId)
public DeletionProtectionRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public DeletionProtectionRequest.Builder resourceOwnerId(Long resourceOwnerId)
public DeletionProtectionRequest.Builder type(String type)
* **EIP**: Elastic IP Address (EIP) * **CBWP**: EIP bandwidth plan * **NATGW**: NAT gateway
public DeletionProtectionRequest build()
Copyright © 2024. All rights reserved.