All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.waf_openapi20190910.models.ModifyProtectionRuleStatusRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.waf_openapi20190910.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link ModifyProtectionRuleStatusRequest} extends {@link RequestModel}
 *
 * 

ModifyProtectionRuleStatusRequest

*/ public class ModifyProtectionRuleStatusRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DefenseType") @com.aliyun.core.annotation.Validation(required = true) private String defenseType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Domain") @com.aliyun.core.annotation.Validation(required = true) private String domain; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("LockVersion") @com.aliyun.core.annotation.Validation(required = true) private Long lockVersion; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleId") @com.aliyun.core.annotation.Validation(required = true) private Long ruleId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RuleStatus") @com.aliyun.core.annotation.Validation(required = true) private Integer ruleStatus; private ModifyProtectionRuleStatusRequest(Builder builder) { super(builder); this.defenseType = builder.defenseType; this.domain = builder.domain; this.instanceId = builder.instanceId; this.lockVersion = builder.lockVersion; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.ruleId = builder.ruleId; this.ruleStatus = builder.ruleStatus; } public static Builder builder() { return new Builder(); } public static ModifyProtectionRuleStatusRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return defenseType */ public String getDefenseType() { return this.defenseType; } /** * @return domain */ public String getDomain() { return this.domain; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return lockVersion */ public Long getLockVersion() { return this.lockVersion; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return ruleId */ public Long getRuleId() { return this.ruleId; } /** * @return ruleStatus */ public Integer getRuleStatus() { return this.ruleStatus; } public static final class Builder extends Request.Builder { private String defenseType; private String domain; private String instanceId; private Long lockVersion; private String regionId; private String resourceGroupId; private Long ruleId; private Integer ruleStatus; private Builder() { super(); } private Builder(ModifyProtectionRuleStatusRequest request) { super(request); this.defenseType = request.defenseType; this.domain = request.domain; this.instanceId = request.instanceId; this.lockVersion = request.lockVersion; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.ruleId = request.ruleId; this.ruleStatus = request.ruleStatus; } /** * DefenseType. */ public Builder defenseType(String defenseType) { this.putQueryParameter("DefenseType", defenseType); this.defenseType = defenseType; return this; } /** * Domain. */ public Builder domain(String domain) { this.putQueryParameter("Domain", domain); this.domain = domain; return this; } /** * InstanceId. */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * LockVersion. */ public Builder lockVersion(Long lockVersion) { this.putQueryParameter("LockVersion", lockVersion); this.lockVersion = lockVersion; return this; } /** * RegionId. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceGroupId. */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * RuleId. */ public Builder ruleId(Long ruleId) { this.putQueryParameter("RuleId", ruleId); this.ruleId = ruleId; return this; } /** * RuleStatus. */ public Builder ruleStatus(Integer ruleStatus) { this.putQueryParameter("RuleStatus", ruleStatus); this.ruleStatus = ruleStatus; return this; } @Override public ModifyProtectionRuleStatusRequest build() { return new ModifyProtectionRuleStatusRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy