com.seeq.model.AuditOutputV1 Maven / Gradle / Ivy
/*
* Seeq REST API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 65.1.3-v202408082312
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.seeq.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
* Audit entries
*/
@Schema(description = "Audit entries")
public class AuditOutputV1 {
@JsonProperty("afterSummary")
private String afterSummary = null;
@JsonProperty("beforeSummary")
private String beforeSummary = null;
/**
* The type of change that was made (Create, Update, or Delete).
*/
public enum ChangeTypeEnum {
CREATE("CREATE"),
UPDATE("UPDATE"),
DELETE("DELETE");
private String value;
ChangeTypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static ChangeTypeEnum fromValue(String input) {
for (ChangeTypeEnum b : ChangeTypeEnum.values()) {
if (b.value.equals(input)) {
return b;
}
}
return null;
}
} @JsonProperty("changeType")
private ChangeTypeEnum changeType = null;
@JsonProperty("itemId")
private String itemId = null;
@JsonProperty("itemName")
private String itemName = null;
@JsonProperty("itemType")
private String itemType = null;
@JsonProperty("timeStamp")
private String timeStamp = null;
@JsonProperty("userId")
private String userId = null;
@JsonProperty("userName")
private String userName = null;
public AuditOutputV1 afterSummary(String afterSummary) {
this.afterSummary = afterSummary;
return this;
}
/**
* A summary of the changed fields after the change was made.
* @return afterSummary
**/
@Schema(description = "A summary of the changed fields after the change was made.")
public String getAfterSummary() {
return afterSummary;
}
public void setAfterSummary(String afterSummary) {
this.afterSummary = afterSummary;
}
public AuditOutputV1 beforeSummary(String beforeSummary) {
this.beforeSummary = beforeSummary;
return this;
}
/**
* A summary of the changed fields before the change was made.
* @return beforeSummary
**/
@Schema(description = "A summary of the changed fields before the change was made.")
public String getBeforeSummary() {
return beforeSummary;
}
public void setBeforeSummary(String beforeSummary) {
this.beforeSummary = beforeSummary;
}
public AuditOutputV1 changeType(ChangeTypeEnum changeType) {
this.changeType = changeType;
return this;
}
/**
* The type of change that was made (Create, Update, or Delete).
* @return changeType
**/
@Schema(description = "The type of change that was made (Create, Update, or Delete).")
public ChangeTypeEnum getChangeType() {
return changeType;
}
public void setChangeType(ChangeTypeEnum changeType) {
this.changeType = changeType;
}
public AuditOutputV1 itemId(String itemId) {
this.itemId = itemId;
return this;
}
/**
* The ID of the modified item.
* @return itemId
**/
@Schema(description = "The ID of the modified item.")
public String getItemId() {
return itemId;
}
public void setItemId(String itemId) {
this.itemId = itemId;
}
public AuditOutputV1 itemName(String itemName) {
this.itemName = itemName;
return this;
}
/**
* The name of the modified item.
* @return itemName
**/
@Schema(description = "The name of the modified item.")
public String getItemName() {
return itemName;
}
public void setItemName(String itemName) {
this.itemName = itemName;
}
public AuditOutputV1 itemType(String itemType) {
this.itemType = itemType;
return this;
}
/**
* The type of the modified item.
* @return itemType
**/
@Schema(description = "The type of the modified item.")
public String getItemType() {
return itemType;
}
public void setItemType(String itemType) {
this.itemType = itemType;
}
public AuditOutputV1 timeStamp(String timeStamp) {
this.timeStamp = timeStamp;
return this;
}
/**
* The date and time when the change was made.
* @return timeStamp
**/
@Schema(description = "The date and time when the change was made.")
public String getTimeStamp() {
return timeStamp;
}
public void setTimeStamp(String timeStamp) {
this.timeStamp = timeStamp;
}
public AuditOutputV1 userId(String userId) {
this.userId = userId;
return this;
}
/**
* The ID of the user who made the change.
* @return userId
**/
@Schema(description = "The ID of the user who made the change.")
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public AuditOutputV1 userName(String userName) {
this.userName = userName;
return this;
}
/**
* The username of the user who made the change.
* @return userName
**/
@Schema(description = "The username of the user who made the change.")
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AuditOutputV1 auditOutputV1 = (AuditOutputV1) o;
return Objects.equals(this.afterSummary, auditOutputV1.afterSummary) &&
Objects.equals(this.beforeSummary, auditOutputV1.beforeSummary) &&
Objects.equals(this.changeType, auditOutputV1.changeType) &&
Objects.equals(this.itemId, auditOutputV1.itemId) &&
Objects.equals(this.itemName, auditOutputV1.itemName) &&
Objects.equals(this.itemType, auditOutputV1.itemType) &&
Objects.equals(this.timeStamp, auditOutputV1.timeStamp) &&
Objects.equals(this.userId, auditOutputV1.userId) &&
Objects.equals(this.userName, auditOutputV1.userName);
}
@Override
public int hashCode() {
return Objects.hash(afterSummary, beforeSummary, changeType, itemId, itemName, itemType, timeStamp, userId, userName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AuditOutputV1 {\n");
sb.append(" afterSummary: ").append(toIndentedString(afterSummary)).append("\n");
sb.append(" beforeSummary: ").append(toIndentedString(beforeSummary)).append("\n");
sb.append(" changeType: ").append(toIndentedString(changeType)).append("\n");
sb.append(" itemId: ").append(toIndentedString(itemId)).append("\n");
sb.append(" itemName: ").append(toIndentedString(itemName)).append("\n");
sb.append(" itemType: ").append(toIndentedString(itemType)).append("\n");
sb.append(" timeStamp: ").append(toIndentedString(timeStamp)).append("\n");
sb.append(" userId: ").append(toIndentedString(userId)).append("\n");
sb.append(" userName: ").append(toIndentedString(userName)).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 ");
}
}