All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clinia.model.registry.V1BulkResourceResult 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;

/** V1BulkResourceResult */
public class V1BulkResourceResult {

  @JsonProperty("status")
  private V1OperationStatus status;

  @JsonProperty("receipts")
  private List receipts;

  public V1BulkResourceResult 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;
    }
    V1BulkResourceResult v1BulkResourceResult = (V1BulkResourceResult) o;
    return Objects.equals(this.status, v1BulkResourceResult.status) && Objects.equals(this.receipts, v1BulkResourceResult.receipts);
  }

  @Override
  public int hashCode() {
    return Objects.hash(status, receipts);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V1BulkResourceResult {\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    ");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy