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

org.openmetadata.schema.api.data.RestoreEntity Maven / Gradle / Ivy

There is a newer version: 1.6.0-rc1
Show newest version

package org.openmetadata.schema.api.data;

import java.util.UUID;
import javax.annotation.processing.Generated;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * restoreEntity
 * 

* Restore Entity API request to restore soft deleted entity. * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "id" }) @Generated("jsonschema2pojo") public class RestoreEntity { /** * Unique id used to identify an entity. * (Required) * */ @JsonProperty("id") @JsonPropertyDescription("Unique id used to identify an entity.") @NotNull private UUID id; /** * Unique id used to identify an entity. * (Required) * */ @JsonProperty("id") public UUID getId() { return id; } /** * Unique id used to identify an entity. * (Required) * */ @JsonProperty("id") public void setId(UUID id) { this.id = id; } public RestoreEntity withId(UUID id) { this.id = id; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(RestoreEntity.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("id"); sb.append('='); sb.append(((this.id == null)?"":this.id)); sb.append(','); if (sb.charAt((sb.length()- 1)) == ',') { sb.setCharAt((sb.length()- 1), ']'); } else { sb.append(']'); } return sb.toString(); } @Override public int hashCode() { int result = 1; result = ((result* 31)+((this.id == null)? 0 :this.id.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof RestoreEntity) == false) { return false; } RestoreEntity rhs = ((RestoreEntity) other); return ((this.id == rhs.id)||((this.id!= null)&&this.id.equals(rhs.id))); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy