public class DeletionProtectionRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
instanceId
The ID of the instance for which you want to enable deletion protection.
|
Long |
ownerId |
Boolean |
protectionEnable
Specifies whether to enable deletion protection.
|
String |
regionId
The ID of the region where the instance for which you want to enable deletion protection is deployed.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
type
The type of instance.
|
构造器和说明 |
---|
DeletionProtectionRequest() |
限定符和类型 | 方法和说明 |
---|---|
static DeletionProtectionRequest |
build(Map<String,?> map) |
String |
getClientToken() |
String |
getInstanceId() |
Long |
getOwnerId() |
Boolean |
getProtectionEnable() |
String |
getRegionId() |
String |
getResourceOwnerAccount() |
Long |
getResourceOwnerId() |
String |
getType() |
DeletionProtectionRequest |
setClientToken(String clientToken) |
DeletionProtectionRequest |
setInstanceId(String instanceId) |
DeletionProtectionRequest |
setOwnerId(Long ownerId) |
DeletionProtectionRequest |
setProtectionEnable(Boolean protectionEnable) |
DeletionProtectionRequest |
setRegionId(String regionId) |
DeletionProtectionRequest |
setResourceOwnerAccount(String resourceOwnerAccount) |
DeletionProtectionRequest |
setResourceOwnerId(Long resourceOwnerId) |
DeletionProtectionRequest |
setType(String type) |
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request.
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.
example: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.
123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="InstanceId") public String instanceId
The ID of the instance for which you want to enable deletion protection.
This parameter is required.
example:eip-uf6id7gvguruxe41v****
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="ProtectionEnable") public Boolean protectionEnable
Specifies whether to enable deletion protection. Valid values:
This parameter is required.
example:true
@NameInMap(value="RegionId") public String regionId
The ID of the region where the instance for which you want to enable deletion protection is deployed. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Type") public String type
The type of instance. Valid values:
This parameter is required.
example:EIP
public static DeletionProtectionRequest build(Map<String,?> map) throws Exception
Exception
public DeletionProtectionRequest setClientToken(String clientToken)
public String getClientToken()
public DeletionProtectionRequest setInstanceId(String instanceId)
public String getInstanceId()
public DeletionProtectionRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public DeletionProtectionRequest setProtectionEnable(Boolean protectionEnable)
public Boolean getProtectionEnable()
public DeletionProtectionRequest setRegionId(String regionId)
public String getRegionId()
public DeletionProtectionRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public DeletionProtectionRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public DeletionProtectionRequest setType(String type)
public String getType()
Copyright © 2024. All rights reserved.