com.aliyun.sdk.service.waf_openapi20211001.models.DeleteDefenseTemplateRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-waf_openapi20211001 Show documentation
Show all versions of alibabacloud-waf_openapi20211001 Show documentation
Alibaba Cloud waf-openapi (20211001) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.waf_openapi20211001.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link DeleteDefenseTemplateRequest} extends {@link RequestModel}
*
* DeleteDefenseTemplateRequest
*/
public class DeleteDefenseTemplateRequest extends Request {
@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("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId")
private String resourceManagerResourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TemplateId")
@com.aliyun.core.annotation.Validation(required = true)
private Long templateId;
private DeleteDefenseTemplateRequest(Builder builder) {
super(builder);
this.instanceId = builder.instanceId;
this.regionId = builder.regionId;
this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId;
this.templateId = builder.templateId;
}
public static Builder builder() {
return new Builder();
}
public static DeleteDefenseTemplateRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceManagerResourceGroupId
*/
public String getResourceManagerResourceGroupId() {
return this.resourceManagerResourceGroupId;
}
/**
* @return templateId
*/
public Long getTemplateId() {
return this.templateId;
}
public static final class Builder extends Request.Builder {
private String instanceId;
private String regionId;
private String resourceManagerResourceGroupId;
private Long templateId;
private Builder() {
super();
}
private Builder(DeleteDefenseTemplateRequest request) {
super(request);
this.instanceId = request.instanceId;
this.regionId = request.regionId;
this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId;
this.templateId = request.templateId;
}
/**
* The ID of the Web Application Firewall (WAF) instance.
*
* You can call the DescribeInstance operation to obtain the ID of the WAF instance.
*
* This parameter is required.
*
* example:
* waf_cdnsdf3****
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* The region where the WAF instance resides. Valid values:
*
* - cn-hangzhou: the Chinese mainland.
* - ap-southeast-1: outside the Chinese mainland.
*
*
* example:
* cn-hangzhou
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* The ID of the resource group.
*
* example:
* rg-acfm***q
*/
public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) {
this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId);
this.resourceManagerResourceGroupId = resourceManagerResourceGroupId;
return this;
}
/**
* The ID of the protection rule template that you want to delete.
* This parameter is required.
*
* example:
* 3155
*/
public Builder templateId(Long templateId) {
this.putQueryParameter("TemplateId", templateId);
this.templateId = templateId;
return this;
}
@Override
public DeleteDefenseTemplateRequest build() {
return new DeleteDefenseTemplateRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy