
com.aliyun.sdk.service.waf_openapi20211001.models.DescribeResponseCodeTrendGraphRequest 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 DescribeResponseCodeTrendGraphRequest} extends {@link RequestModel}
*
* DescribeResponseCodeTrendGraphRequest
*/
public class DescribeResponseCodeTrendGraphRequest 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("Interval")
@com.aliyun.core.annotation.Validation(required = true)
private String interval;
@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("StartTimestamp")
@com.aliyun.core.annotation.Validation(required = true)
private String startTimestamp;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Type")
@com.aliyun.core.annotation.Validation(required = true)
private String type;
private DescribeResponseCodeTrendGraphRequest(Builder builder) {
super(builder);
this.endTimestamp = builder.endTimestamp;
this.instanceId = builder.instanceId;
this.interval = builder.interval;
this.regionId = builder.regionId;
this.resource = builder.resource;
this.resourceManagerResourceGroupId = builder.resourceManagerResourceGroupId;
this.startTimestamp = builder.startTimestamp;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static DescribeResponseCodeTrendGraphRequest 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 interval
*/
public String getInterval() {
return this.interval;
}
/**
* @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 startTimestamp
*/
public String getStartTimestamp() {
return this.startTimestamp;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder extends Request.Builder {
private String endTimestamp;
private String instanceId;
private String interval;
private String regionId;
private String resource;
private String resourceManagerResourceGroupId;
private String startTimestamp;
private String type;
private Builder() {
super();
}
private Builder(DescribeResponseCodeTrendGraphRequest request) {
super(request);
this.endTimestamp = request.endTimestamp;
this.instanceId = request.instanceId;
this.interval = request.interval;
this.regionId = request.regionId;
this.resource = request.resource;
this.resourceManagerResourceGroupId = request.resourceManagerResourceGroupId;
this.startTimestamp = request.startTimestamp;
this.type = request.type;
}
/**
* 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 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 time interval. Unit: seconds. The value must be an integral multiple of 60.
* This parameter is required.
*
* example:
* 300
*/
public Builder interval(String interval) {
this.putQueryParameter("Interval", interval);
this.interval = interval;
return this;
}
/**
* The ID of 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 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;
}
/**
* The type of the error codes. Valid values:
*
* - waf: error codes that are returned to clients from WAF.
* - upstream: error codes that are returned to WAF from the origin server.
*
* This parameter is required.
*
* example:
* waf
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
@Override
public DescribeResponseCodeTrendGraphRequest build() {
return new DescribeResponseCodeTrendGraphRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy