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

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

/** V1ResourceOperationDelete */
@JsonDeserialize(as = V1ResourceOperationDelete.class)
public class V1ResourceOperationDelete implements V1ResourceOperation {

  @JsonProperty("action")
  private V1OperationAction action = V1OperationAction.DELETE;

  @JsonProperty("delete")
  private V1ResourceOperationDeleteAllOfDelete delete;

  public V1ResourceOperationDelete setAction(V1OperationAction action) {
    this.action = action;
    return this;
  }

  /** Get action */
  @javax.annotation.Nonnull
  public V1OperationAction getAction() {
    return action;
  }

  public V1ResourceOperationDelete setDelete(V1ResourceOperationDeleteAllOfDelete delete) {
    this.delete = delete;
    return this;
  }

  /** Get delete */
  @javax.annotation.Nonnull
  public V1ResourceOperationDeleteAllOfDelete getDelete() {
    return delete;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V1ResourceOperationDelete v1ResourceOperationDelete = (V1ResourceOperationDelete) o;
    return Objects.equals(this.action, v1ResourceOperationDelete.action) && Objects.equals(this.delete, v1ResourceOperationDelete.delete);
  }

  @Override
  public int hashCode() {
    return Objects.hash(action, delete);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V1ResourceOperationDelete {\n");
    sb.append("    action: ").append(toIndentedString(action)).append("\n");
    sb.append("    delete: ").append(toIndentedString(delete)).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