com.aliyun.ess20220222.models.SetGroupDeletionProtectionRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ess20220222.models;
import com.aliyun.tea.*;
public class SetGroupDeletionProtectionRequest extends TeaModel {
/**
* Specifies whether to enable deletion protection for the scaling group. Valid values:
*
* - true: enables deletion protection. In this case, you cannot delete the scaling group by using the Auto Scaling console or calling an API operation. You must disable deletion protection before you can delete the scaling group.
* - false: disables deletion protection.
*
* Default value: false.
* This parameter is required.
*
* example:
* true
*/
@NameInMap("GroupDeletionProtection")
public Boolean groupDeletionProtection;
@NameInMap("OwnerId")
public Long ownerId;
/**
* The region ID.
*
* example:
* cn-qingdao
*/
@NameInMap("RegionId")
public String regionId;
@NameInMap("ResourceOwnerAccount")
public String resourceOwnerAccount;
/**
* The ID of the scaling group.
* This parameter is required.
*
* example:
* asg-bp1igpak5ft1flyp****
*/
@NameInMap("ScalingGroupId")
public String scalingGroupId;
public static SetGroupDeletionProtectionRequest build(java.util.Map map) throws Exception {
SetGroupDeletionProtectionRequest self = new SetGroupDeletionProtectionRequest();
return TeaModel.build(map, self);
}
public SetGroupDeletionProtectionRequest setGroupDeletionProtection(Boolean groupDeletionProtection) {
this.groupDeletionProtection = groupDeletionProtection;
return this;
}
public Boolean getGroupDeletionProtection() {
return this.groupDeletionProtection;
}
public SetGroupDeletionProtectionRequest setOwnerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
public Long getOwnerId() {
return this.ownerId;
}
public SetGroupDeletionProtectionRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public SetGroupDeletionProtectionRequest setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public SetGroupDeletionProtectionRequest setScalingGroupId(String scalingGroupId) {
this.scalingGroupId = scalingGroupId;
return this;
}
public String getScalingGroupId() {
return this.scalingGroupId;
}
}