net.leanix.mtm.api.models.Review Maven / Gradle / Ivy
package net.leanix.mtm.api.models;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
public class Review {
private String actorUsername = null;
private String code = null;
public enum StatusEnum {
NOTINVITED("NOTINVITED"),
ACTIVE("ACTIVE"),
ARCHIVED("ARCHIVED"),
INVITED("INVITED"),
REQUESTED("REQUESTED");
private String value;
StatusEnum(String value) {
this.value = value;
}
@Override
@JsonValue
public String toString() {
return value;
}
}
private StatusEnum status = null;
/**
**/
public Review actorUsername(String actorUsername) {
this.actorUsername = actorUsername;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("actorUsername")
public String getActorUsername() {
return actorUsername;
}
public void setActorUsername(String actorUsername) {
this.actorUsername = actorUsername;
}
/**
**/
public Review code(String code) {
this.code = code;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("code")
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
/**
**/
public Review status(StatusEnum status) {
this.status = status;
return this;
}
@ApiModelProperty(example = "null", required = true, value = "")
@JsonProperty("status")
public StatusEnum getStatus() {
return status;
}
public void setStatus(StatusEnum status) {
this.status = status;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Review review = (Review) o;
return Objects.equals(this.actorUsername, review.actorUsername) &&
Objects.equals(this.code, review.code) &&
Objects.equals(this.status, review.status);
}
@Override
public int hashCode() {
return Objects.hash(actorUsername, code, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Review {\n");
sb.append(" actorUsername: ").append(toIndentedString(actorUsername)).append("\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy