com.mux.sdk.models.ListVideoViewExportsResponse Maven / Gradle / Ivy
The newest version!
/*
* Mux API
* Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
*
* The version of the OpenAPI document: v1
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.mux.sdk.models;
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 com.mux.sdk.models.ExportDate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* ListVideoViewExportsResponse
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ListVideoViewExportsResponse {
public static final String SERIALIZED_NAME_DATA = "data";
@SerializedName(SERIALIZED_NAME_DATA)
private java.util.List data = null;
public static final String SERIALIZED_NAME_TOTAL_ROW_COUNT = "total_row_count";
@SerializedName(SERIALIZED_NAME_TOTAL_ROW_COUNT)
private Integer totalRowCount;
public static final String SERIALIZED_NAME_TIMEFRAME = "timeframe";
@SerializedName(SERIALIZED_NAME_TIMEFRAME)
private java.util.List timeframe = null;
public ListVideoViewExportsResponse data(java.util.List data) {
this.data = data;
return this;
}
public ListVideoViewExportsResponse addDataItem(ExportDate dataItem) {
if (this.data == null) {
this.data = new java.util.ArrayList<>();
}
this.data.add(dataItem);
return this;
}
/**
* Get data
* @return data
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public java.util.List getData() {
return data;
}
public void setData(java.util.List data) {
this.data = data;
}
public ListVideoViewExportsResponse totalRowCount(Integer totalRowCount) {
this.totalRowCount = totalRowCount;
return this;
}
/**
* Get totalRowCount
* @return totalRowCount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getTotalRowCount() {
return totalRowCount;
}
public void setTotalRowCount(Integer totalRowCount) {
this.totalRowCount = totalRowCount;
}
public ListVideoViewExportsResponse timeframe(java.util.List timeframe) {
this.timeframe = timeframe;
return this;
}
public ListVideoViewExportsResponse addTimeframeItem(Integer timeframeItem) {
if (this.timeframe == null) {
this.timeframe = new java.util.ArrayList<>();
}
this.timeframe.add(timeframeItem);
return this;
}
/**
* Get timeframe
* @return timeframe
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public java.util.List getTimeframe() {
return timeframe;
}
public void setTimeframe(java.util.List timeframe) {
this.timeframe = timeframe;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ListVideoViewExportsResponse listVideoViewExportsResponse = (ListVideoViewExportsResponse) o;
return Objects.equals(this.data, listVideoViewExportsResponse.data) &&
Objects.equals(this.totalRowCount, listVideoViewExportsResponse.totalRowCount) &&
Objects.equals(this.timeframe, listVideoViewExportsResponse.timeframe);
}
@Override
public int hashCode() {
return Objects.hash(data, totalRowCount, timeframe);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListVideoViewExportsResponse {\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" totalRowCount: ").append(toIndentedString(totalRowCount)).append("\n");
sb.append(" timeframe: ").append(toIndentedString(timeframe)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}