com.hpe.caf.services.audit.client.model.NewAuditEvent Maven / Gradle / Ivy
/*
* Audit Web Service
* Allows audit event message details to be indexed into ElasticSearch. Each audit event message will comprise a set of fixed fields including the application the audit event message is associated with, the user that triggered the audit event as well as the tenant that the user belongs to. The audit event message will also include additional fields specific to the application.
*
* OpenAPI spec version: 3.1.0
*
*
* 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.hpe.caf.services.audit.client.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 com.hpe.caf.services.audit.client.model.EventParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* NewAuditEvent
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-09-22T13:02:25.866Z")
public class NewAuditEvent {
@JsonProperty("applicationId")
private String applicationId = null;
@JsonProperty("processId")
private String processId = null;
@JsonProperty("threadId")
private Long threadId = null;
@JsonProperty("eventOrder")
private Long eventOrder = null;
@JsonProperty("eventTime")
private String eventTime = null;
@JsonProperty("eventTimeSource")
private String eventTimeSource = null;
@JsonProperty("userId")
private String userId = null;
@JsonProperty("tenantId")
private String tenantId = null;
@JsonProperty("correlationId")
private String correlationId = null;
@JsonProperty("eventTypeId")
private String eventTypeId = null;
@JsonProperty("eventCategoryId")
private String eventCategoryId = null;
@JsonProperty("eventParams")
private List eventParams = null;
public NewAuditEvent applicationId(String applicationId) {
this.applicationId = applicationId;
return this;
}
/**
* The application that the audit event type is associated with.
* @return applicationId
**/
@ApiModelProperty(value = "The application that the audit event type is associated with.")
public String getApplicationId() {
return applicationId;
}
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
public NewAuditEvent processId(String processId) {
this.processId = processId;
return this;
}
/**
* Unique identifier associated with the particular instance of the process that generated the audit event.
* @return processId
**/
@ApiModelProperty(value = "Unique identifier associated with the particular instance of the process that generated the audit event.")
public String getProcessId() {
return processId;
}
public void setProcessId(String processId) {
this.processId = processId;
}
public NewAuditEvent threadId(Long threadId) {
this.threadId = threadId;
return this;
}
/**
* Numeric id associated with the particular thread within the process that generated the audit event.
* @return threadId
**/
@ApiModelProperty(value = "Numeric id associated with the particular thread within the process that generated the audit event.")
public Long getThreadId() {
return threadId;
}
public void setThreadId(Long threadId) {
this.threadId = threadId;
}
public NewAuditEvent eventOrder(Long eventOrder) {
this.eventOrder = eventOrder;
return this;
}
/**
* Used to order events raised by the specified thread.
* @return eventOrder
**/
@ApiModelProperty(value = "Used to order events raised by the specified thread.")
public Long getEventOrder() {
return eventOrder;
}
public void setEventOrder(Long eventOrder) {
this.eventOrder = eventOrder;
}
public NewAuditEvent eventTime(String eventTime) {
this.eventTime = eventTime;
return this;
}
/**
* Records the time that the event occurred (in the ISO-8601 format).
* @return eventTime
**/
@ApiModelProperty(value = "Records the time that the event occurred (in the ISO-8601 format).")
public String getEventTime() {
return eventTime;
}
public void setEventTime(String eventTime) {
this.eventTime = eventTime;
}
public NewAuditEvent eventTimeSource(String eventTimeSource) {
this.eventTimeSource = eventTimeSource;
return this;
}
/**
* Identifies the machine which provided the eventTime.
* @return eventTimeSource
**/
@ApiModelProperty(value = "Identifies the machine which provided the eventTime.")
public String getEventTimeSource() {
return eventTimeSource;
}
public void setEventTimeSource(String eventTimeSource) {
this.eventTimeSource = eventTimeSource;
}
public NewAuditEvent userId(String userId) {
this.userId = userId;
return this;
}
/**
* Identifies the user who triggered the event.
* @return userId
**/
@ApiModelProperty(value = "Identifies the user who triggered the event.")
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public NewAuditEvent tenantId(String tenantId) {
this.tenantId = tenantId;
return this;
}
/**
* Identifies the tenant that the user belongs to.
* @return tenantId
**/
@ApiModelProperty(value = "Identifies the tenant that the user belongs to.")
public String getTenantId() {
return tenantId;
}
public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}
public NewAuditEvent correlationId(String correlationId) {
this.correlationId = correlationId;
return this;
}
/**
* Identifies the same user action.
* @return correlationId
**/
@ApiModelProperty(value = "Identifies the same user action.")
public String getCorrelationId() {
return correlationId;
}
public void setCorrelationId(String correlationId) {
this.correlationId = correlationId;
}
public NewAuditEvent eventTypeId(String eventTypeId) {
this.eventTypeId = eventTypeId;
return this;
}
/**
* Identifier for the particular event.
* @return eventTypeId
**/
@ApiModelProperty(value = "Identifier for the particular event.")
public String getEventTypeId() {
return eventTypeId;
}
public void setEventTypeId(String eventTypeId) {
this.eventTypeId = eventTypeId;
}
public NewAuditEvent eventCategoryId(String eventCategoryId) {
this.eventCategoryId = eventCategoryId;
return this;
}
/**
* Identifies the category of event.
* @return eventCategoryId
**/
@ApiModelProperty(value = "Identifies the category of event.")
public String getEventCategoryId() {
return eventCategoryId;
}
public void setEventCategoryId(String eventCategoryId) {
this.eventCategoryId = eventCategoryId;
}
public NewAuditEvent eventParams(List eventParams) {
this.eventParams = eventParams;
return this;
}
public NewAuditEvent addEventParamsItem(EventParam eventParamsItem) {
if (this.eventParams == null) {
this.eventParams = new ArrayList();
}
this.eventParams.add(eventParamsItem);
return this;
}
/**
* List of application specific fields associated with the audit event.
* @return eventParams
**/
@ApiModelProperty(value = "List of application specific fields associated with the audit event.")
public List getEventParams() {
return eventParams;
}
public void setEventParams(List eventParams) {
this.eventParams = eventParams;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NewAuditEvent newAuditEvent = (NewAuditEvent) o;
return Objects.equals(this.applicationId, newAuditEvent.applicationId) &&
Objects.equals(this.processId, newAuditEvent.processId) &&
Objects.equals(this.threadId, newAuditEvent.threadId) &&
Objects.equals(this.eventOrder, newAuditEvent.eventOrder) &&
Objects.equals(this.eventTime, newAuditEvent.eventTime) &&
Objects.equals(this.eventTimeSource, newAuditEvent.eventTimeSource) &&
Objects.equals(this.userId, newAuditEvent.userId) &&
Objects.equals(this.tenantId, newAuditEvent.tenantId) &&
Objects.equals(this.correlationId, newAuditEvent.correlationId) &&
Objects.equals(this.eventTypeId, newAuditEvent.eventTypeId) &&
Objects.equals(this.eventCategoryId, newAuditEvent.eventCategoryId) &&
Objects.equals(this.eventParams, newAuditEvent.eventParams);
}
@Override
public int hashCode() {
return Objects.hash(applicationId, processId, threadId, eventOrder, eventTime, eventTimeSource, userId, tenantId, correlationId, eventTypeId, eventCategoryId, eventParams);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NewAuditEvent {\n");
sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n");
sb.append(" processId: ").append(toIndentedString(processId)).append("\n");
sb.append(" threadId: ").append(toIndentedString(threadId)).append("\n");
sb.append(" eventOrder: ").append(toIndentedString(eventOrder)).append("\n");
sb.append(" eventTime: ").append(toIndentedString(eventTime)).append("\n");
sb.append(" eventTimeSource: ").append(toIndentedString(eventTimeSource)).append("\n");
sb.append(" userId: ").append(toIndentedString(userId)).append("\n");
sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n");
sb.append(" correlationId: ").append(toIndentedString(correlationId)).append("\n");
sb.append(" eventTypeId: ").append(toIndentedString(eventTypeId)).append("\n");
sb.append(" eventCategoryId: ").append(toIndentedString(eventCategoryId)).append("\n");
sb.append(" eventParams: ").append(toIndentedString(eventParams)).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