org.openmetadata.schema.auth.RevokeTokenRequest Maven / Gradle / Ivy
package org.openmetadata.schema.auth;
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;
/**
* Generate JWT Token Request
*
* Generate JWT Token Request.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"id"
})
@Generated("jsonschema2pojo")
public class RevokeTokenRequest {
/**
* 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 RevokeTokenRequest withId(UUID id) {
this.id = id;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(RevokeTokenRequest.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 RevokeTokenRequest) == false) {
return false;
}
RevokeTokenRequest rhs = ((RevokeTokenRequest) other);
return ((this.id == rhs.id)||((this.id!= null)&&this.id.equals(rhs.id)));
}
}