dev.bf2.ffm.ams.client.models.DeletedSubscriptionAllOf 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* DeletedSubscriptionAllOf
*/
@JsonPropertyOrder({
DeletedSubscriptionAllOf.JSON_PROPERTY_CREATED_AT,
DeletedSubscriptionAllOf.JSON_PROPERTY_ID,
DeletedSubscriptionAllOf.JSON_PROPERTY_METRICS,
DeletedSubscriptionAllOf.JSON_PROPERTY_QUERY_TIMESTAMP
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class DeletedSubscriptionAllOf {
public static final String JSON_PROPERTY_CREATED_AT = "created_at";
private OffsetDateTime createdAt;
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_METRICS = "metrics";
private String metrics;
public static final String JSON_PROPERTY_QUERY_TIMESTAMP = "query_timestamp";
private OffsetDateTime queryTimestamp;
public DeletedSubscriptionAllOf() {
}
public DeletedSubscriptionAllOf createdAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Get createdAt
* @return createdAt
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CREATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getCreatedAt() {
return createdAt;
}
@JsonProperty(JSON_PROPERTY_CREATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}
public DeletedSubscriptionAllOf id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getId() {
return id;
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setId(String id) {
this.id = id;
}
public DeletedSubscriptionAllOf metrics(String metrics) {
this.metrics = metrics;
return this;
}
/**
* Get metrics
* @return metrics
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_METRICS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMetrics() {
return metrics;
}
@JsonProperty(JSON_PROPERTY_METRICS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMetrics(String metrics) {
this.metrics = metrics;
}
public DeletedSubscriptionAllOf queryTimestamp(OffsetDateTime queryTimestamp) {
this.queryTimestamp = queryTimestamp;
return this;
}
/**
* Get queryTimestamp
* @return queryTimestamp
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_QUERY_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getQueryTimestamp() {
return queryTimestamp;
}
@JsonProperty(JSON_PROPERTY_QUERY_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setQueryTimestamp(OffsetDateTime queryTimestamp) {
this.queryTimestamp = queryTimestamp;
}
/**
* Return true if this DeletedSubscription_allOf object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DeletedSubscriptionAllOf deletedSubscriptionAllOf = (DeletedSubscriptionAllOf) o;
return Objects.equals(this.createdAt, deletedSubscriptionAllOf.createdAt) &&
Objects.equals(this.id, deletedSubscriptionAllOf.id) &&
Objects.equals(this.metrics, deletedSubscriptionAllOf.metrics) &&
Objects.equals(this.queryTimestamp, deletedSubscriptionAllOf.queryTimestamp);
}
@Override
public int hashCode() {
return Objects.hash(createdAt, id, metrics, queryTimestamp);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DeletedSubscriptionAllOf {\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n");
sb.append(" queryTimestamp: ").append(toIndentedString(queryTimestamp)).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 ");
}
}