com.aliyun.sdk.service.httpdns20160201.models.GetResolveCountSummaryRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-httpdns20160201 Show documentation
Show all versions of alibabacloud-httpdns20160201 Show documentation
Alibaba Cloud Httpdns (20160201) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.httpdns20160201.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link GetResolveCountSummaryRequest} extends {@link RequestModel}
*
* GetResolveCountSummaryRequest
*/
public class GetResolveCountSummaryRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Granularity")
@com.aliyun.core.annotation.Validation(required = true)
private String granularity;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TimeSpan")
@com.aliyun.core.annotation.Validation(required = true)
private Integer timeSpan;
private GetResolveCountSummaryRequest(Builder builder) {
super(builder);
this.granularity = builder.granularity;
this.timeSpan = builder.timeSpan;
}
public static Builder builder() {
return new Builder();
}
public static GetResolveCountSummaryRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return granularity
*/
public String getGranularity() {
return this.granularity;
}
/**
* @return timeSpan
*/
public Integer getTimeSpan() {
return this.timeSpan;
}
public static final class Builder extends Request.Builder {
private String granularity;
private Integer timeSpan;
private Builder() {
super();
}
private Builder(GetResolveCountSummaryRequest request) {
super(request);
this.granularity = request.granularity;
this.timeSpan = request.timeSpan;
}
/**
* Granularity.
*/
public Builder granularity(String granularity) {
this.putQueryParameter("Granularity", granularity);
this.granularity = granularity;
return this;
}
/**
* TimeSpan.
*/
public Builder timeSpan(Integer timeSpan) {
this.putQueryParameter("TimeSpan", timeSpan);
this.timeSpan = timeSpan;
return this;
}
@Override
public GetResolveCountSummaryRequest build() {
return new GetResolveCountSummaryRequest(this);
}
}
}