
com.aliyun.sdk.service.waf_openapi20211001.models.DescribeRuleHitsTopClientIpRequest 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 DescribeRuleHitsTopClientIpRequest} extends {@link RequestModel}
*
* DescribeRuleHitsTopClientIpRequest
*/
public class DescribeRuleHitsTopClientIpRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EndTimestamp")
private String endTimestamp;
@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")
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("RuleType")
private String ruleType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("StartTimestamp")
@com.aliyun.core.annotation.Validation(required = true)
private String startTimestamp;
private DescribeRuleHitsTopClientIpRequest(Builder builder) {
super(builder);
this.endTimestamp = builder.endTimestamp;
this.instanceId = builder.instanceId;
this.regionId = builder.regionId;
this.resource = builder.resource;
this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId;
this.ruleType = builder.ruleType;
this.startTimestamp = builder.startTimestamp;
}
public static Builder builder() {
return new Builder();
}
public static DescribeRuleHitsTopClientIpRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return endTimestamp
*/
public String getEndTimestamp() {
return this.endTimestamp;
}
/**
* @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 ruleType
*/
public String getRuleType() {
return this.ruleType;
}
/**
* @return startTimestamp
*/
public String getStartTimestamp() {
return this.startTimestamp;
}
public static final class Builder extends Request.Builder {
private String endTimestamp;
private String instanceId;
private String regionId;
private String resource;
private String resourceManagerResourceGroupId;
private String ruleType;
private String startTimestamp;
private Builder() {
super();
}
private Builder(DescribeRuleHitsTopClientIpRequest request) {
super(request);
this.endTimestamp = request.endTimestamp;
this.instanceId = request.instanceId;
this.regionId = request.regionId;
this.resource = request.resource;
this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId;
this.ruleType = request.ruleType;
this.startTimestamp = request.startTimestamp;
}
/**
* The end of the time range to query. Unit: seconds. If you do not specify this parameter, the current time is used.
*
* example:
* 1665386280
*/
public Builder endTimestamp(String endTimestamp) {
this.putQueryParameter("EndTimestamp", endTimestamp);
this.endTimestamp = endTimestamp;
return this;
}
/**
* 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 protected object.
*
* example:
*
*/
public Builder resource(String resource) {
this.putQueryParameter("Resource", resource);
this.resource = resource;
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 type of rules that are triggered by the protected object. By default, this parameter is not specified and all types of rules are queried.
*
* - blacklist: IP address blacklist rules.
* - custom: custom rules.
* - antiscan: scan protection rules.
* - cc_system: HTTP flood protection rules.
* - region_block: region blacklist rules.
*
*
* example:
* blacklist
*/
public Builder ruleType(String ruleType) {
this.putQueryParameter("RuleType", ruleType);
this.ruleType = ruleType;
return this;
}
/**
* The beginning of the time range to query. Unit: seconds.
* This parameter is required.
*
* example:
* 1665331200
*/
public Builder startTimestamp(String startTimestamp) {
this.putQueryParameter("StartTimestamp", startTimestamp);
this.startTimestamp = startTimestamp;
return this;
}
@Override
public DescribeRuleHitsTopClientIpRequest build() {
return new DescribeRuleHitsTopClientIpRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy