com.seeq.model.CacheBlock Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 64.3.0-v202405012032
*
*
* 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.AuthoritativeRegionOutputV1;
import com.seeq.model.CapsuleV1;
import com.seeq.model.SampleOutputV1;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
* Model of a decompressed cache block.
*/
@Schema(description = "Model of a decompressed cache block.")
public class CacheBlock {
@JsonProperty("authoritativeRegion")
private AuthoritativeRegionOutputV1 authoritativeRegion = null;
@JsonProperty("blobId")
private Long blobId = null;
@JsonProperty("capsules")
private List capsules = new ArrayList();
@JsonProperty("creationTime")
private String creationTime = null;
@JsonProperty("lastAccessTime")
private String lastAccessTime = null;
@JsonProperty("lengthInBytes")
private Long lengthInBytes = null;
@JsonProperty("lengthInDatums")
private Long lengthInDatums = null;
@JsonProperty("recordId")
private Long recordId = null;
@JsonProperty("samples")
private List samples = new ArrayList();
@JsonProperty("seriesId")
private String seriesId = null;
public CacheBlock authoritativeRegion(AuthoritativeRegionOutputV1 authoritativeRegion) {
this.authoritativeRegion = authoritativeRegion;
return this;
}
/**
* Get authoritativeRegion
* @return authoritativeRegion
**/
@Schema(description = "")
public AuthoritativeRegionOutputV1 getAuthoritativeRegion() {
return authoritativeRegion;
}
public void setAuthoritativeRegion(AuthoritativeRegionOutputV1 authoritativeRegion) {
this.authoritativeRegion = authoritativeRegion;
}
public CacheBlock blobId(Long blobId) {
this.blobId = blobId;
return this;
}
/**
* Get blobId
* @return blobId
**/
@Schema(description = "")
public Long getBlobId() {
return blobId;
}
public void setBlobId(Long blobId) {
this.blobId = blobId;
}
public CacheBlock capsules(List capsules) {
this.capsules = capsules;
return this;
}
public CacheBlock addCapsulesItem(CapsuleV1 capsulesItem) {
if (this.capsules == null) {
this.capsules = new ArrayList();
}
this.capsules.add(capsulesItem);
return this;
}
/**
* Get capsules
* @return capsules
**/
@Schema(description = "")
public List getCapsules() {
return capsules;
}
public void setCapsules(List capsules) {
this.capsules = capsules;
}
public CacheBlock creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* Get creationTime
* @return creationTime
**/
@Schema(description = "")
public String getCreationTime() {
return creationTime;
}
public void setCreationTime(String creationTime) {
this.creationTime = creationTime;
}
public CacheBlock lastAccessTime(String lastAccessTime) {
this.lastAccessTime = lastAccessTime;
return this;
}
/**
* Get lastAccessTime
* @return lastAccessTime
**/
@Schema(description = "")
public String getLastAccessTime() {
return lastAccessTime;
}
public void setLastAccessTime(String lastAccessTime) {
this.lastAccessTime = lastAccessTime;
}
public CacheBlock lengthInBytes(Long lengthInBytes) {
this.lengthInBytes = lengthInBytes;
return this;
}
/**
* Get lengthInBytes
* @return lengthInBytes
**/
@Schema(description = "")
public Long getLengthInBytes() {
return lengthInBytes;
}
public void setLengthInBytes(Long lengthInBytes) {
this.lengthInBytes = lengthInBytes;
}
public CacheBlock lengthInDatums(Long lengthInDatums) {
this.lengthInDatums = lengthInDatums;
return this;
}
/**
* Get lengthInDatums
* @return lengthInDatums
**/
@Schema(description = "")
public Long getLengthInDatums() {
return lengthInDatums;
}
public void setLengthInDatums(Long lengthInDatums) {
this.lengthInDatums = lengthInDatums;
}
public CacheBlock recordId(Long recordId) {
this.recordId = recordId;
return this;
}
/**
* Get recordId
* @return recordId
**/
@Schema(description = "")
public Long getRecordId() {
return recordId;
}
public void setRecordId(Long recordId) {
this.recordId = recordId;
}
public CacheBlock samples(List samples) {
this.samples = samples;
return this;
}
public CacheBlock addSamplesItem(SampleOutputV1 samplesItem) {
if (this.samples == null) {
this.samples = new ArrayList();
}
this.samples.add(samplesItem);
return this;
}
/**
* Get samples
* @return samples
**/
@Schema(description = "")
public List getSamples() {
return samples;
}
public void setSamples(List samples) {
this.samples = samples;
}
public CacheBlock seriesId(String seriesId) {
this.seriesId = seriesId;
return this;
}
/**
* Get seriesId
* @return seriesId
**/
@Schema(description = "")
public String getSeriesId() {
return seriesId;
}
public void setSeriesId(String seriesId) {
this.seriesId = seriesId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CacheBlock cacheBlock = (CacheBlock) o;
return Objects.equals(this.authoritativeRegion, cacheBlock.authoritativeRegion) &&
Objects.equals(this.blobId, cacheBlock.blobId) &&
Objects.equals(this.capsules, cacheBlock.capsules) &&
Objects.equals(this.creationTime, cacheBlock.creationTime) &&
Objects.equals(this.lastAccessTime, cacheBlock.lastAccessTime) &&
Objects.equals(this.lengthInBytes, cacheBlock.lengthInBytes) &&
Objects.equals(this.lengthInDatums, cacheBlock.lengthInDatums) &&
Objects.equals(this.recordId, cacheBlock.recordId) &&
Objects.equals(this.samples, cacheBlock.samples) &&
Objects.equals(this.seriesId, cacheBlock.seriesId);
}
@Override
public int hashCode() {
return Objects.hash(authoritativeRegion, blobId, capsules, creationTime, lastAccessTime, lengthInBytes, lengthInDatums, recordId, samples, seriesId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CacheBlock {\n");
sb.append(" authoritativeRegion: ").append(toIndentedString(authoritativeRegion)).append("\n");
sb.append(" blobId: ").append(toIndentedString(blobId)).append("\n");
sb.append(" capsules: ").append(toIndentedString(capsules)).append("\n");
sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n");
sb.append(" lastAccessTime: ").append(toIndentedString(lastAccessTime)).append("\n");
sb.append(" lengthInBytes: ").append(toIndentedString(lengthInBytes)).append("\n");
sb.append(" lengthInDatums: ").append(toIndentedString(lengthInDatums)).append("\n");
sb.append(" recordId: ").append(toIndentedString(recordId)).append("\n");
sb.append(" samples: ").append(toIndentedString(samples)).append("\n");
sb.append(" seriesId: ").append(toIndentedString(seriesId)).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 ");
}
}