
com.aliyun.sdk.service.waf_openapi20211001.models.DescribeApisecRulesRequest 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 DescribeApisecRulesRequest} extends {@link RequestModel}
*
* DescribeApisecRulesRequest
*/
public class DescribeApisecRulesRequest 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("Level")
private String level;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Origin")
private String origin;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Long pageNumber;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("PageSize")
private Long pageSize;
@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("Status")
private Long status;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Type")
@com.aliyun.core.annotation.Validation(required = true)
private String type;
private DescribeApisecRulesRequest(Builder builder) {
super(builder);
this.instanceId = builder.instanceId;
this.level = builder.level;
this.name = builder.name;
this.origin = builder.origin;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.regionId = builder.regionId;
this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId;
this.status = builder.status;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static DescribeApisecRulesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return level
*/
public String getLevel() {
return this.level;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return origin
*/
public String getOrigin() {
return this.origin;
}
/**
* @return pageNumber
*/
public Long getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Long getPageSize() {
return this.pageSize;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceManagerResourceGroupId
*/
public String getResourceManagerResourceGroupId() {
return this.resourceManagerResourceGroupId;
}
/**
* @return status
*/
public Long getStatus() {
return this.status;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder extends Request.Builder {
private String instanceId;
private String level;
private String name;
private String origin;
private Long pageNumber;
private Long pageSize;
private String regionId;
private String resourceManagerResourceGroupId;
private Long status;
private String type;
private Builder() {
super();
}
private Builder(DescribeApisecRulesRequest request) {
super(request);
this.instanceId = request.instanceId;
this.level = request.level;
this.name = request.name;
this.origin = request.origin;
this.pageNumber = request.pageNumber;
this.pageSize = request.pageSize;
this.regionId = request.regionId;
this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId;
this.status = request.status;
this.type = request.type;
}
/**
* 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_elasticity-cn-0x***
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* The level of the policy.
* If Type is set to risk or event, you can set this parameter to one of the following values:
*
* - high
* - medium
* - low
*
* If Type is set to sensitive_word, you can set this parameter to one of the following values:
*
* - S1
* - S2
* - S3
* - S4
*
*
* example:
* high
*/
public Builder level(String level) {
this.putQueryParameter("Level", level);
this.level = level;
return this;
}
/**
* The name of the policy.
*
* example:
* Information Leak
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* The source of the policy. Valid values:
*
* - custom
* - default
*
*
* example:
* custom
*/
public Builder origin(String origin) {
this.putQueryParameter("Origin", origin);
this.origin = origin;
return this;
}
/**
* The page number. Default value: 1.
*
* example:
* 1
*/
public Builder pageNumber(Long pageNumber) {
this.putQueryParameter("PageNumber", pageNumber);
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries per page. Default value: 10.
*
* example:
* 10
*/
public Builder pageSize(Long pageSize) {
this.putQueryParameter("PageSize", pageSize);
this.pageSize = pageSize;
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 ID of the Alibaba Cloud resource group.
*
* example:
* rg-acfm***q
*/
public Builder resourceManagerResourceGroupId(String resourceManagerResourceGroupId) {
this.putQueryParameter("ResourceManagerResourceGroupId", resourceManagerResourceGroupId);
this.resourceManagerResourceGroupId = resourceManagerResourceGroupId;
return this;
}
/**
* The status of the policy. Valid values:
*
* - 1: enabled
* - 0: disabled
*
*
* example:
* 1
*/
public Builder status(Long status) {
this.putQueryParameter("Status", status);
this.status = status;
return this;
}
/**
* The type of the policy. Valid values:
*
* - risk: risk detection
* - event: security event
* - sensitive_word: sensitive data
* - auth_flag: authentication credential
* - api_tag: business purpose
* - desensitization: masking
* - whitelist: whitelist
* - recognition: API recognition
* - offline_api: lifecycle management
*
* This parameter is required.
*
* example:
* risk
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
@Override
public DescribeApisecRulesRequest build() {
return new DescribeApisecRulesRequest(this);
}
}
}