com.clinia.model.registry.BulkResourcesRequest 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;
/** BulkResourcesRequest */
public class BulkResourcesRequest {
@JsonProperty("operations")
private List operations;
public BulkResourcesRequest setOperations(List operations) {
this.operations = operations;
return this;
}
public BulkResourcesRequest addOperations(V1ResourceOperation operationsItem) {
if (this.operations == null) {
this.operations = new ArrayList<>();
}
this.operations.add(operationsItem);
return this;
}
/** Get operations */
@javax.annotation.Nullable
public List getOperations() {
return operations;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BulkResourcesRequest bulkResourcesRequest = (BulkResourcesRequest) o;
return Objects.equals(this.operations, bulkResourcesRequest.operations);
}
@Override
public int hashCode() {
return Objects.hash(operations);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BulkResourcesRequest {\n");
sb.append(" operations: ").append(toIndentedString(operations)).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 ");
}
}