com.aliyun.vpc20160428.models.DeletionProtectionRequest Maven / Gradle / Ivy
Show all versions of vpc20160428 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.vpc20160428.models;
import com.aliyun.tea.*;
public class DeletionProtectionRequest extends TeaModel {
/**
* 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.
*
* > 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.
*/
@NameInMap("ClientToken")
public String clientToken;
/**
* The ID of the instance for which you want to enable deletion protection.
*/
@NameInMap("InstanceId")
public String instanceId;
@NameInMap("OwnerId")
public Long ownerId;
/**
* Specifies whether to enable deletion protection. Valid values:
*
* * **true**: yes
* * **false**: no
*/
@NameInMap("ProtectionEnable")
public Boolean protectionEnable;
/**
* The ID of the region where the instance for which you want to enable deletion protection is deployed. You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list.
*/
@NameInMap("RegionId")
public String regionId;
@NameInMap("ResourceOwnerAccount")
public String resourceOwnerAccount;
@NameInMap("ResourceOwnerId")
public Long resourceOwnerId;
/**
* The type of instance. Valid values:
*
* * **EIP**: Elastic IP Address (EIP)
* * **CBWP**: EIP bandwidth plan
* * **NATGW**: NAT gateway
*/
@NameInMap("Type")
public String type;
public static DeletionProtectionRequest build(java.util.Map map) throws Exception {
DeletionProtectionRequest self = new DeletionProtectionRequest();
return TeaModel.build(map, self);
}
public DeletionProtectionRequest setClientToken(String clientToken) {
this.clientToken = clientToken;
return this;
}
public String getClientToken() {
return this.clientToken;
}
public DeletionProtectionRequest setInstanceId(String instanceId) {
this.instanceId = instanceId;
return this;
}
public String getInstanceId() {
return this.instanceId;
}
public DeletionProtectionRequest setOwnerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
public Long getOwnerId() {
return this.ownerId;
}
public DeletionProtectionRequest setProtectionEnable(Boolean protectionEnable) {
this.protectionEnable = protectionEnable;
return this;
}
public Boolean getProtectionEnable() {
return this.protectionEnable;
}
public DeletionProtectionRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public DeletionProtectionRequest setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public DeletionProtectionRequest setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
return this;
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public DeletionProtectionRequest setType(String type) {
this.type = type;
return this;
}
public String getType() {
return this.type;
}
}