com.seeq.model.UsageOutputListV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 60.1.3-v202304250417
*
*
* 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.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.seeq.model.UsageOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* UsageOutputListV1
*/
public class UsageOutputListV1 {
@JsonProperty("content")
private List content = new ArrayList();
@JsonProperty("hasMore")
private Boolean hasMore = null;
public UsageOutputListV1 content(List content) {
this.content = content;
return this;
}
public UsageOutputListV1 addContentItem(UsageOutputV1 contentItem) {
this.content.add(contentItem);
return this;
}
/**
* Data Consumption records
* @return content
**/
@Schema(required = true, description = "Data Consumption records")
public List getContent() {
return content;
}
public void setContent(List content) {
this.content = content;
}
public UsageOutputListV1 hasMore(Boolean hasMore) {
this.hasMore = hasMore;
return this;
}
/**
* True if there are additional records not included because the limit was reached
* @return hasMore
**/
@Schema(required = true, description = "True if there are additional records not included because the limit was reached")
public Boolean getHasMore() {
return hasMore;
}
public void setHasMore(Boolean hasMore) {
this.hasMore = hasMore;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UsageOutputListV1 usageOutputListV1 = (UsageOutputListV1) o;
return Objects.equals(this.content, usageOutputListV1.content) &&
Objects.equals(this.hasMore, usageOutputListV1.hasMore);
}
@Override
public int hashCode() {
return Objects.hash(content, hasMore);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UsageOutputListV1 {\n");
sb.append(" content: ").append(toIndentedString(content)).append("\n");
sb.append(" hasMore: ").append(toIndentedString(hasMore)).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 ");
}
}