com.nutanix.dp1.pri.prism.v4.serviceability.Audit Maven / Gradle / Ivy
/*
* Generated file ..
*
* Product version: 4.0.3-alpha-2
*
* Part of the Nutanix Prism Versioned APIs
*
* (c) 2023 Nutanix Inc. All rights reserved
*
*/
package com.nutanix.dp1.pri.prism.v4.serviceability;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.AccessLevel;
import com.nutanix.devplatform.models.PrettyModeViews.*;
import com.fasterxml.jackson.annotation.JsonView;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.nutanix.dp1.pri.deserializers.PriObjectTypeTypedObject;
import javax.validation.constraints.*;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import static com.nutanix.dp1.pri.deserializers.PriDeserializerUtils.*;
@EqualsAndHashCode(callSuper=true)
@Data
@lombok.extern.slf4j.Slf4j
public class Audit extends com.nutanix.dp1.pri.common.v1.response.ExternalizableAbstractModel implements java.io.Serializable, PriObjectTypeTypedObject {
public Audit() {
super();
}
@lombok.Builder(builderMethodName = "AuditBuilder")
public Audit(String tenantId, String extId, java.util.List links, com.nutanix.dp1.pri.prism.v4.common.EntityReference sourceEntity, com.nutanix.dp1.pri.prism.v4.common.EntityReference clusterReference, java.util.List affectedEntities, com.nutanix.dp1.pri.prism.v4.common.OperationType operationType, String message, java.util.List parameters, java.time.OffsetDateTime operationStartTime, java.time.OffsetDateTime operationEndTime, com.nutanix.dp1.pri.prism.v4.serviceability.UserReference userReference, String serviceName, String auditType, com.nutanix.dp1.pri.prism.v4.serviceability.Status status, java.time.OffsetDateTime creationTime) {
super(tenantId, extId, links);
this.setSourceEntity(sourceEntity);
this.setClusterReference(clusterReference);
this.setAffectedEntities(affectedEntities);
this.setOperationType(operationType);
this.setMessage(message);
this.setParameters(parameters);
this.setOperationStartTime(operationStartTime);
this.setOperationEndTime(operationEndTime);
this.setUserReference(userReference);
this.setServiceName(serviceName);
this.setAuditType(auditType);
this.setStatus(status);
this.setCreationTime(creationTime);
}
@Override
protected String initialize$objectType() {
return "prism.v4.serviceability.Audit";
}
@Override
protected String initialize$fqObjectType() {
return "prism.v4.r0.a2.serviceability.Audit";
}
/**
*
*/
@JsonProperty("sourceEntity")
public com.nutanix.dp1.pri.prism.v4.common.EntityReference sourceEntity = null;
/**
*
*/
@JsonProperty("clusterReference")
public com.nutanix.dp1.pri.prism.v4.common.EntityReference clusterReference = null;
/**
* List of all entities that are affected by the event/audit.
*/
@javax.validation.constraints.Size(min = 0, max = 50)
@JsonProperty("affectedEntities")
public List affectedEntities = null;
/**
*
*/
@JsonProperty("operationType")
public com.nutanix.dp1.pri.prism.v4.common.OperationType operationType = null;
/**
* Additional message associated with the audit.
*/
@javax.validation.constraints.Size(max = 1024)
@JsonProperty("message")
public String message = null;
/**
* Additional parameters associated with the audit. These parameters can be used to indicate custom key-value pairs for a given audit instance. For example, a service down audit in Prism Central can have the service name as a parameter.
*/
@javax.validation.constraints.Size(min = 0, max = 100)
@JsonProperty("parameters")
public List parameters = null;
/**
* The audit operation start time in ISO 8601 format.
*/
@JsonProperty("operationStartTime")
public OffsetDateTime operationStartTime = null;
/**
* The audit operation end time in ISO 8601 format.
*/
@JsonProperty("operationEndTime")
public OffsetDateTime operationEndTime = null;
/**
*
*/
@JsonProperty("userReference")
public com.nutanix.dp1.pri.prism.v4.serviceability.UserReference userReference = null;
/**
* The service which raised the event/audit. For internal Nutanix services, this value is set to "Nutanix".
*/
@JsonProperty("serviceName")
public String serviceName = null;
/**
* The unique name for a given audit type. For example, VMCloneAudit, VMDeleteAudit and so on.
*/
@JsonProperty("auditType")
public String auditType = null;
/**
*
*/
@JsonProperty("status")
public com.nutanix.dp1.pri.prism.v4.serviceability.Status status = null;
/**
* The time in ISO 8601 format when the audit was created.
*/
@JsonProperty("creationTime")
public OffsetDateTime creationTime = null;
}