Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 65.1.3-v202408082312
*
*
* 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 io.swagger.v3.oas.annotations.media.Schema;
/**
* Data Consumption records
*/
@Schema(description = "Data Consumption records")
public class UsageOutputV1 {
@JsonProperty("bytes")
private Long bytes = null;
@JsonProperty("cacheType")
private String cacheType = null;
@JsonProperty("credits")
private Double credits = null;
@JsonProperty("identity")
private String identity = null;
@JsonProperty("identityId")
private String identityId = null;
@JsonProperty("sourceLabel")
private String sourceLabel = null;
@JsonProperty("sourceUrl")
private String sourceUrl = null;
@JsonProperty("timestamp")
private String timestamp = null;
@JsonProperty("tokens")
private Long tokens = null;
@JsonProperty("type")
private String type = null;
public UsageOutputV1 bytes(Long bytes) {
this.bytes = bytes;
return this;
}
/**
* Amount of data consumed during the specified time period, in bytes
* @return bytes
**/
@Schema(required = true, description = "Amount of data consumed during the specified time period, in bytes")
public Long getBytes() {
return bytes;
}
public void setBytes(Long bytes) {
this.bytes = bytes;
}
public UsageOutputV1 cacheType(String cacheType) {
this.cacheType = cacheType;
return this;
}
/**
* The caching source that provided the data. Either Seeq's in-memory cache, Seeq's persistent cache, or the datasource itself if it was not yet cached. Only present when aggregated by \"CacheType\"
* @return cacheType
**/
@Schema(description = "The caching source that provided the data. Either Seeq's in-memory cache, Seeq's persistent cache, or the datasource itself if it was not yet cached. Only present when aggregated by \"CacheType\"")
public String getCacheType() {
return cacheType;
}
public void setCacheType(String cacheType) {
this.cacheType = cacheType;
}
public UsageOutputV1 credits(Double credits) {
this.credits = credits;
return this;
}
/**
* Amount of Data Lab Resource Credits consumed during the specified time period
* @return credits
**/
@Schema(required = true, description = "Amount of Data Lab Resource Credits consumed during the specified time period")
public Double getCredits() {
return credits;
}
public void setCredits(Double credits) {
this.credits = credits;
}
public UsageOutputV1 identity(String identity) {
this.identity = identity;
return this;
}
/**
* User name who initiated the request. Only present when aggregated by this \"User\"
* @return identity
**/
@Schema(description = "User name who initiated the request. Only present when aggregated by this \"User\"")
public String getIdentity() {
return identity;
}
public void setIdentity(String identity) {
this.identity = identity;
}
public UsageOutputV1 identityId(String identityId) {
this.identityId = identityId;
return this;
}
/**
* Guid of the user who initiated the request. Only present when aggregated by this \"User\"
* @return identityId
**/
@Schema(description = "Guid of the user who initiated the request. Only present when aggregated by this \"User\"")
public String getIdentityId() {
return identityId;
}
public void setIdentityId(String identityId) {
this.identityId = identityId;
}
public UsageOutputV1 sourceLabel(String sourceLabel) {
this.sourceLabel = sourceLabel;
return this;
}
/**
* Name of the source of the request. Only present when aggregated by \"Source\"
* @return sourceLabel
**/
@Schema(description = "Name of the source of the request. Only present when aggregated by \"Source\"")
public String getSourceLabel() {
return sourceLabel;
}
public void setSourceLabel(String sourceLabel) {
this.sourceLabel = sourceLabel;
}
public UsageOutputV1 sourceUrl(String sourceUrl) {
this.sourceUrl = sourceUrl;
return this;
}
/**
* Url for the source of the request. Only present when aggregated by \"Source\"
* @return sourceUrl
**/
@Schema(description = "Url for the source of the request. Only present when aggregated by \"Source\"")
public String getSourceUrl() {
return sourceUrl;
}
public void setSourceUrl(String sourceUrl) {
this.sourceUrl = sourceUrl;
}
public UsageOutputV1 timestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* An ISO-8601 timestamp of the day when the data was consumed. Only present when aggregated by \"Day\" or \"Month\"
* @return timestamp
**/
@Schema(description = "An ISO-8601 timestamp of the day when the data was consumed. Only present when aggregated by \"Day\" or \"Month\"")
public String getTimestamp() {
return timestamp;
}
public void setTimestamp(String timestamp) {
this.timestamp = timestamp;
}
public UsageOutputV1 tokens(Long tokens) {
this.tokens = tokens;
return this;
}
/**
* Amount of GenAI tokens consumed during the specified time period
* @return tokens
**/
@Schema(required = true, description = "Amount of GenAI tokens consumed during the specified time period")
public Long getTokens() {
return tokens;
}
public void setTokens(Long tokens) {
this.tokens = tokens;
}
public UsageOutputV1 type(String type) {
this.type = type;
return this;
}
/**
* The type of the request. Only present when aggregated by this \"Type\"
* @return type
**/
@Schema(description = "The type of the request. Only present when aggregated by this \"Type\"")
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;
}
UsageOutputV1 usageOutputV1 = (UsageOutputV1) o;
return Objects.equals(this.bytes, usageOutputV1.bytes) &&
Objects.equals(this.cacheType, usageOutputV1.cacheType) &&
Objects.equals(this.credits, usageOutputV1.credits) &&
Objects.equals(this.identity, usageOutputV1.identity) &&
Objects.equals(this.identityId, usageOutputV1.identityId) &&
Objects.equals(this.sourceLabel, usageOutputV1.sourceLabel) &&
Objects.equals(this.sourceUrl, usageOutputV1.sourceUrl) &&
Objects.equals(this.timestamp, usageOutputV1.timestamp) &&
Objects.equals(this.tokens, usageOutputV1.tokens) &&
Objects.equals(this.type, usageOutputV1.type);
}
@Override
public int hashCode() {
return Objects.hash(bytes, cacheType, credits, identity, identityId, sourceLabel, sourceUrl, timestamp, tokens, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UsageOutputV1 {\n");
sb.append(" bytes: ").append(toIndentedString(bytes)).append("\n");
sb.append(" cacheType: ").append(toIndentedString(cacheType)).append("\n");
sb.append(" credits: ").append(toIndentedString(credits)).append("\n");
sb.append(" identity: ").append(toIndentedString(identity)).append("\n");
sb.append(" identityId: ").append(toIndentedString(identityId)).append("\n");
sb.append(" sourceLabel: ").append(toIndentedString(sourceLabel)).append("\n");
sb.append(" sourceUrl: ").append(toIndentedString(sourceUrl)).append("\n");
sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n");
sb.append(" tokens: ").append(toIndentedString(tokens)).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 ");
}
}