com.volcengine.dcdn.model.DescribeOriginStatisticsDetailRequest Maven / Gradle / Ivy
/*
* dcdn
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: common-version
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.volcengine.dcdn.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
* DescribeOriginStatisticsDetailRequest
*/
public class DescribeOriginStatisticsDetailRequest {
@SerializedName("Domains")
private List domains = null;
@SerializedName("EndTime")
private String endTime = null;
@SerializedName("IPVersion")
private String ipVersion = null;
@SerializedName("Interval")
private Integer interval = null;
@SerializedName("Metrics")
private List metrics = null;
@SerializedName("ProjectName")
private List projectName = null;
@SerializedName("Protocol")
private List protocol = null;
@SerializedName("StartTime")
private String startTime = null;
@SerializedName("Type")
private String type = null;
public DescribeOriginStatisticsDetailRequest domains(List domains) {
this.domains = domains;
return this;
}
public DescribeOriginStatisticsDetailRequest addDomainsItem(String domainsItem) {
if (this.domains == null) {
this.domains = new ArrayList();
}
this.domains.add(domainsItem);
return this;
}
/**
* Get domains
* @return domains
**/
@Schema(description = "")
public List getDomains() {
return domains;
}
public void setDomains(List domains) {
this.domains = domains;
}
public DescribeOriginStatisticsDetailRequest endTime(String endTime) {
this.endTime = endTime;
return this;
}
/**
* Get endTime
* @return endTime
**/
@NotNull
@Schema(required = true, description = "")
public String getEndTime() {
return endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
public DescribeOriginStatisticsDetailRequest ipVersion(String ipVersion) {
this.ipVersion = ipVersion;
return this;
}
/**
* Get ipVersion
* @return ipVersion
**/
@Schema(description = "")
public String getIpVersion() {
return ipVersion;
}
public void setIpVersion(String ipVersion) {
this.ipVersion = ipVersion;
}
public DescribeOriginStatisticsDetailRequest interval(Integer interval) {
this.interval = interval;
return this;
}
/**
* Get interval
* @return interval
**/
@Schema(description = "")
public Integer getInterval() {
return interval;
}
public void setInterval(Integer interval) {
this.interval = interval;
}
public DescribeOriginStatisticsDetailRequest metrics(List metrics) {
this.metrics = metrics;
return this;
}
public DescribeOriginStatisticsDetailRequest addMetricsItem(String metricsItem) {
if (this.metrics == null) {
this.metrics = new ArrayList();
}
this.metrics.add(metricsItem);
return this;
}
/**
* Get metrics
* @return metrics
**/
@Schema(description = "")
public List getMetrics() {
return metrics;
}
public void setMetrics(List metrics) {
this.metrics = metrics;
}
public DescribeOriginStatisticsDetailRequest projectName(List projectName) {
this.projectName = projectName;
return this;
}
public DescribeOriginStatisticsDetailRequest addProjectNameItem(String projectNameItem) {
if (this.projectName == null) {
this.projectName = new ArrayList();
}
this.projectName.add(projectNameItem);
return this;
}
/**
* Get projectName
* @return projectName
**/
@Schema(description = "")
public List getProjectName() {
return projectName;
}
public void setProjectName(List projectName) {
this.projectName = projectName;
}
public DescribeOriginStatisticsDetailRequest protocol(List protocol) {
this.protocol = protocol;
return this;
}
public DescribeOriginStatisticsDetailRequest addProtocolItem(String protocolItem) {
if (this.protocol == null) {
this.protocol = new ArrayList();
}
this.protocol.add(protocolItem);
return this;
}
/**
* Get protocol
* @return protocol
**/
@Schema(description = "")
public List getProtocol() {
return protocol;
}
public void setProtocol(List protocol) {
this.protocol = protocol;
}
public DescribeOriginStatisticsDetailRequest startTime(String startTime) {
this.startTime = startTime;
return this;
}
/**
* Get startTime
* @return startTime
**/
@NotNull
@Schema(required = true, description = "")
public String getStartTime() {
return startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime;
}
public DescribeOriginStatisticsDetailRequest type(String type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@Schema(description = "")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DescribeOriginStatisticsDetailRequest describeOriginStatisticsDetailRequest = (DescribeOriginStatisticsDetailRequest) o;
return Objects.equals(this.domains, describeOriginStatisticsDetailRequest.domains) &&
Objects.equals(this.endTime, describeOriginStatisticsDetailRequest.endTime) &&
Objects.equals(this.ipVersion, describeOriginStatisticsDetailRequest.ipVersion) &&
Objects.equals(this.interval, describeOriginStatisticsDetailRequest.interval) &&
Objects.equals(this.metrics, describeOriginStatisticsDetailRequest.metrics) &&
Objects.equals(this.projectName, describeOriginStatisticsDetailRequest.projectName) &&
Objects.equals(this.protocol, describeOriginStatisticsDetailRequest.protocol) &&
Objects.equals(this.startTime, describeOriginStatisticsDetailRequest.startTime) &&
Objects.equals(this.type, describeOriginStatisticsDetailRequest.type);
}
@Override
public int hashCode() {
return Objects.hash(domains, endTime, ipVersion, interval, metrics, projectName, protocol, startTime, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DescribeOriginStatisticsDetailRequest {\n");
sb.append(" domains: ").append(toIndentedString(domains)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n");
sb.append(" ipVersion: ").append(toIndentedString(ipVersion)).append("\n");
sb.append(" interval: ").append(toIndentedString(interval)).append("\n");
sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n");
sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n");
sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n");
sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}