com.seeq.model.UsageOutputV1 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 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("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("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 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 field
* @return identity
**/
@Schema(description = "User name who initiated the request. Only present when aggregated by this field")
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 field
* @return identityId
**/
@Schema(description = "Guid of the user who initiated the request. Only present when aggregated by this field")
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 this field
* @return sourceUrl
**/
@Schema(description = "Url for the source of the request. Only present when aggregated by this field")
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 this field
* @return timestamp
**/
@Schema(description = "An ISO-8601 timestamp of the day when the data was consumed. Only present when aggregated by this field")
public String getTimestamp() {
return timestamp;
}
public void setTimestamp(String timestamp) {
this.timestamp = timestamp;
}
public UsageOutputV1 type(String type) {
this.type = type;
return this;
}
/**
* The type of the request. Only present when aggregated by this field
* @return type
**/
@Schema(description = "The type of the request. Only present when aggregated by this field")
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.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.type, usageOutputV1.type);
}
@Override
public int hashCode() {
return Objects.hash(bytes, credits, identity, identityId, sourceLabel, sourceUrl, timestamp, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UsageOutputV1 {\n");
sb.append(" bytes: ").append(toIndentedString(bytes)).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(" 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 ");
}
}