
com.aliyun.sdk.service.waf_openapi20211001.models.DescribeDefenseResourceTemplatesRequest Maven / Gradle / Ivy
// 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 DescribeDefenseResourceTemplatesRequest} extends {@link RequestModel}
*
* DescribeDefenseResourceTemplatesRequest
*/
public class DescribeDefenseResourceTemplatesRequest 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("Resource")
@com.aliyun.core.annotation.Validation(required = true)
private String resource;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceManagerResourceGroupId")
private String resourceManagerResourceGroupId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("ResourceType")
private String resourceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleId")
private Long ruleId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("RuleType")
private String ruleType;
private DescribeDefenseResourceTemplatesRequest(Builder builder) {
super(builder);
this.instanceId = builder.instanceId;
this.regionId = builder.regionId;
this.resource = builder.resource;
this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId;
this.resourceType = builder.resourceType;
this.ruleId = builder.ruleId;
this.ruleType = builder.ruleType;
}
public static Builder builder() {
return new Builder();
}
public static DescribeDefenseResourceTemplatesRequest 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 resource
*/
public String getResource() {
return this.resource;
}
/**
* @return resourceManagerResourceGroupId
*/
public String getResourceManagerResourceGroupId() {
return this.resourceManagerResourceGroupId;
}
/**
* @return resourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
* @return ruleId
*/
public Long getRuleId() {
return this.ruleId;
}
/**
* @return ruleType
*/
public String getRuleType() {
return this.ruleType;
}
public static final class Builder extends Request.Builder {
private String instanceId;
private String regionId;
private String resource;
private String resourceManagerResourceGroupId;
private String resourceType;
private Long ruleId;
private String ruleType;
private Builder() {
super();
}
private Builder(DescribeDefenseResourceTemplatesRequest request) {
super(request);
this.instanceId = request.instanceId;
this.regionId = request.regionId;
this.resource = request.resource;
this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId;
this.resourceType = request.resourceType;
this.ruleId = request.ruleId;
this.ruleType = request.ruleType;
}
/**
* The ID of the Web Application Firewall (WAF) instance.
*
* You can call the DescribeInstance operation to query the ID of the WAF instance.
*
* This parameter is required.
*
* example:
* waf_v3prepaid_public_cn-9lb36****0e
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* The region in which the WAF instance is deployed. Valid values:
*
* - cn-hangzhou: 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 name of the protected object or protected object group that you want to query.
* This parameter is required.
*
* example:
* xxxxxhemicals.cn-waf
*/
public Builder resource(String resource) {
this.putQueryParameter("Resource", resource);
this.resource = resource;
return this;
}
/**
* The ID of the Alibaba Cloud resource group.
*
* example:
* rg-aek2ax2y5****pi
*/
public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) {
this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId);
this.resourceManagerResourceGroupId = resourceManagerResourceGroupId;
return this;
}
/**
* The type of the protected resource. Valid values:
*
* - single: protected object. This is the default value.
* - group: protected object group.
*
*
* example:
* single
*/
public Builder resourceType(String resourceType) {
this.putQueryParameter("ResourceType", resourceType);
this.resourceType = resourceType;
return this;
}
/**
* The ID of the protection rule.
*
* example:
* 20111098
*/
public Builder ruleId(Long ruleId) {
this.putQueryParameter("RuleId", ruleId);
this.ruleId = ruleId;
return this;
}
/**
* The type of the protection rule. Valid values:
*
* - defense: defense rule. This is the default value.
* - whitelist: whitelist rule.
*
*
* example:
* whitelist
*/
public Builder ruleType(String ruleType) {
this.putQueryParameter("RuleType", ruleType);
this.ruleType = ruleType;
return this;
}
@Override
public DescribeDefenseResourceTemplatesRequest build() {
return new DescribeDefenseResourceTemplatesRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy