dev.bf2.ffm.ams.client.models.ClusterResource Maven / Gradle / Ivy
/*
* Account Management Service API
* Manage user subscriptions and clusters
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package dev.bf2.ffm.ams.client.models;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import dev.bf2.ffm.ams.client.models.ClusterResourceTotal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ClusterResource
*/
@JsonPropertyOrder({
ClusterResource.JSON_PROPERTY_TOTAL,
ClusterResource.JSON_PROPERTY_UPDATED_TIMESTAMP,
ClusterResource.JSON_PROPERTY_USED
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ClusterResource {
public static final String JSON_PROPERTY_TOTAL = "total";
private ClusterResourceTotal total;
public static final String JSON_PROPERTY_UPDATED_TIMESTAMP = "updated_timestamp";
private OffsetDateTime updatedTimestamp;
public static final String JSON_PROPERTY_USED = "used";
private ClusterResourceTotal used;
public ClusterResource() {
}
public ClusterResource total(ClusterResourceTotal total) {
this.total = total;
return this;
}
/**
* Get total
* @return total
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_TOTAL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public ClusterResourceTotal getTotal() {
return total;
}
@JsonProperty(JSON_PROPERTY_TOTAL)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTotal(ClusterResourceTotal total) {
this.total = total;
}
public ClusterResource updatedTimestamp(OffsetDateTime updatedTimestamp) {
this.updatedTimestamp = updatedTimestamp;
return this;
}
/**
* Get updatedTimestamp
* @return updatedTimestamp
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_UPDATED_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OffsetDateTime getUpdatedTimestamp() {
return updatedTimestamp;
}
@JsonProperty(JSON_PROPERTY_UPDATED_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setUpdatedTimestamp(OffsetDateTime updatedTimestamp) {
this.updatedTimestamp = updatedTimestamp;
}
public ClusterResource used(ClusterResourceTotal used) {
this.used = used;
return this;
}
/**
* Get used
* @return used
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_USED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public ClusterResourceTotal getUsed() {
return used;
}
@JsonProperty(JSON_PROPERTY_USED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setUsed(ClusterResourceTotal used) {
this.used = used;
}
/**
* Return true if this ClusterResource object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ClusterResource clusterResource = (ClusterResource) o;
return Objects.equals(this.total, clusterResource.total) &&
Objects.equals(this.updatedTimestamp, clusterResource.updatedTimestamp) &&
Objects.equals(this.used, clusterResource.used);
}
@Override
public int hashCode() {
return Objects.hash(total, updatedTimestamp, used);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ClusterResource {\n");
sb.append(" total: ").append(toIndentedString(total)).append("\n");
sb.append(" updatedTimestamp: ").append(toIndentedString(updatedTimestamp)).append("\n");
sb.append(" used: ").append(toIndentedString(used)).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 ");
}
}