com.clinia.model.registry.V1BulkRelationshipResult 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.List;
import java.util.Objects;
/** V1BulkRelationshipResult */
public class V1BulkRelationshipResult {
@JsonProperty("status")
private V1OperationStatus status;
@JsonProperty("receipts")
private List receipts;
public V1BulkRelationshipResult setStatus(V1OperationStatus status) {
this.status = status;
return this;
}
/** Get status */
@javax.annotation.Nonnull
public V1OperationStatus getStatus() {
return status;
}
/**
* The receipts of the operations. Will only be present if the query parameter `withReceipts` is
* set to `true`.
*/
@javax.annotation.Nullable
public List getReceipts() {
return receipts;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1BulkRelationshipResult v1BulkRelationshipResult = (V1BulkRelationshipResult) o;
return Objects.equals(this.status, v1BulkRelationshipResult.status) && Objects.equals(this.receipts, v1BulkRelationshipResult.receipts);
}
@Override
public int hashCode() {
return Objects.hash(status, receipts);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1BulkRelationshipResult {\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" receipts: ").append(toIndentedString(receipts)).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 ");
}
}