com.aliyun.sdk.service.httpdns20160201.models.GetResolveStatisticsRequest 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 GetResolveStatisticsRequest} extends {@link RequestModel}
*
* GetResolveStatisticsRequest
*/
public class GetResolveStatisticsRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DomainName")
@com.aliyun.core.annotation.Validation(required = true)
private String domainName;
@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("ProtocolName")
private String protocolName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("TimeSpan")
@com.aliyun.core.annotation.Validation(required = true)
private Integer timeSpan;
private GetResolveStatisticsRequest(Builder builder) {
super(builder);
this.domainName = builder.domainName;
this.granularity = builder.granularity;
this.protocolName = builder.protocolName;
this.timeSpan = builder.timeSpan;
}
public static Builder builder() {
return new Builder();
}
public static GetResolveStatisticsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return domainName
*/
public String getDomainName() {
return this.domainName;
}
/**
* @return granularity
*/
public String getGranularity() {
return this.granularity;
}
/**
* @return protocolName
*/
public String getProtocolName() {
return this.protocolName;
}
/**
* @return timeSpan
*/
public Integer getTimeSpan() {
return this.timeSpan;
}
public static final class Builder extends Request.Builder {
private String domainName;
private String granularity;
private String protocolName;
private Integer timeSpan;
private Builder() {
super();
}
private Builder(GetResolveStatisticsRequest request) {
super(request);
this.domainName = request.domainName;
this.granularity = request.granularity;
this.protocolName = request.protocolName;
this.timeSpan = request.timeSpan;
}
/**
* DomainName.
*/
public Builder domainName(String domainName) {
this.putQueryParameter("DomainName", domainName);
this.domainName = domainName;
return this;
}
/**
* Granularity.
*/
public Builder granularity(String granularity) {
this.putQueryParameter("Granularity", granularity);
this.granularity = granularity;
return this;
}
/**
* ProtocolName.
*/
public Builder protocolName(String protocolName) {
this.putQueryParameter("ProtocolName", protocolName);
this.protocolName = protocolName;
return this;
}
/**
* TimeSpan.
*/
public Builder timeSpan(Integer timeSpan) {
this.putQueryParameter("TimeSpan", timeSpan);
this.timeSpan = timeSpan;
return this;
}
@Override
public GetResolveStatisticsRequest build() {
return new GetResolveStatisticsRequest(this);
}
}
}