com.clinia.model.registry.V1ResourceOperationDeleteAllOfDelete Maven / Gradle / Ivy
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/clinia/api-clients-generation. DO NOT EDIT.
package com.clinia.model.registry;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;
/** V1ResourceOperationDeleteAllOfDelete */
public class V1ResourceOperationDeleteAllOfDelete {
@JsonProperty("id")
private String id;
@JsonProperty("type")
private String type;
public V1ResourceOperationDeleteAllOfDelete setId(String id) {
this.id = id;
return this;
}
/** The ID of the resource to delete. */
@javax.annotation.Nonnull
public String getId() {
return id;
}
public V1ResourceOperationDeleteAllOfDelete setType(String type) {
this.type = type;
return this;
}
/** The type of resource to delete. */
@javax.annotation.Nonnull
public String getType() {
return type;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1ResourceOperationDeleteAllOfDelete v1ResourceOperationDeleteAllOfDelete = (V1ResourceOperationDeleteAllOfDelete) o;
return (
Objects.equals(this.id, v1ResourceOperationDeleteAllOfDelete.id) &&
Objects.equals(this.type, v1ResourceOperationDeleteAllOfDelete.type)
);
}
@Override
public int hashCode() {
return Objects.hash(id, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1ResourceOperationDeleteAllOfDelete {\n");
sb.append(" id: ").append(toIndentedString(id)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}