com.clinia.model.registry.V1BulkFailureResponse 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.ArrayList;
import java.util.List;
import java.util.Objects;
/** V1BulkFailureResponse */
@JsonDeserialize(as = V1BulkFailureResponse.class)
public class V1BulkFailureResponse implements V1BulkResponse {
@JsonProperty("status")
private V1BulkStatus status;
@JsonProperty("bulkId")
private String bulkId;
@JsonProperty("receipts")
private List receipts = new ArrayList<>();
public V1BulkFailureResponse setStatus(V1BulkStatus status) {
this.status = status;
return this;
}
/** Get status */
@javax.annotation.Nonnull
public V1BulkStatus getStatus() {
return status;
}
/** The task identifier. */
@javax.annotation.Nonnull
public String getBulkId() {
return bulkId;
}
/**
* The receipts of the operations. Every operation sent will have a receipt corresponding to their
* original order. Each receipt will contain the status of the operation and an error if the
* operation failed. Operations that would have succeeded if the bulk request was valid will be
* marked as cancelled.
*/
@javax.annotation.Nonnull
public List getReceipts() {
return receipts;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1BulkFailureResponse v1BulkFailureResponse = (V1BulkFailureResponse) o;
return (
Objects.equals(this.status, v1BulkFailureResponse.status) &&
Objects.equals(this.bulkId, v1BulkFailureResponse.bulkId) &&
Objects.equals(this.receipts, v1BulkFailureResponse.receipts)
);
}
@Override
public int hashCode() {
return Objects.hash(status, bulkId, receipts);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1BulkFailureResponse {\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" bulkId: ").append(toIndentedString(bulkId)).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 ");
}
}