All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.symphony.api.model.V3DLPViolation Maven / Gradle / Ivy

There is a newer version: 8.0.5
Show newest version
package com.symphony.api.model;

import com.symphony.api.model.V1DLPOutcome;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonCreator;

/**
  * A representation of a violation due to an event created by a user of Symphony
 **/
@Schema(description="A representation of a violation due to an event created by a user of Symphony")
public class V3DLPViolation   {
  
  @Schema(description = "Enforcement event ID. Unique ID that identifies this enforcement.")
 /**
   * Enforcement event ID. Unique ID that identifies this enforcement.  
  **/
  private String enforcementEventID = null;
  
  @Schema(description = "Entity ID is the content Id of the violation, for example, for messages, its the Id of the message")
 /**
   * Entity ID is the content Id of the violation, for example, for messages, its the Id of the message  
  **/
  private String entityID = null;
  
  @Schema(description = "Timestamp of the violation in milliseconds since Jan 1 1970")
 /**
   * Timestamp of the violation in milliseconds since Jan 1 1970  
  **/
  private Long createTime = null;
  
  @Schema(description = "Timestamp of the last modification of violation in milliseconds since Jan 1 1970")
 /**
   * Timestamp of the last modification of violation in milliseconds since Jan 1 1970  
  **/
  private Long lastModified = null;
  
  @Schema(description = "Id of the requester responsible for the message/stream/signal")
 /**
   * Id of the requester responsible for the message/stream/signal  
  **/
  private Long requesterId = null;
  
  @Schema(description = "JSON representation of the details of the violation.")
 /**
   * JSON representation of the details of the violation.  
  **/
  private List details = null;
  
  @Schema(description = "action taken such as BLOCK or WARN.  See outcome for a more detailed description of the outcome this action.")
 /**
   * action taken such as BLOCK or WARN.  See outcome for a more detailed description of the outcome this action.  
  **/
  private String action = null;
  
  @Schema(description = "")
  private V1DLPOutcome outcome = null;
  
  @Schema(description = "Version of application which processed the message and produced this violation.")
 /**
   * Version of application which processed the message and produced this violation.  
  **/
  private String version = null;
  
  @Schema(description = "Did the user chose to ignore DLP warning that was presented?")
 /**
   * Did the user chose to ignore DLP warning that was presented?  
  **/
  private Boolean ignoreDLPwarning = null;
 /**
   * Enforcement event ID. Unique ID that identifies this enforcement.
   * @return enforcementEventID
  **/
  @JsonProperty("enforcementEventID")
  public String getEnforcementEventID() {
    return enforcementEventID;
  }

  public void setEnforcementEventID(String enforcementEventID) {
    this.enforcementEventID = enforcementEventID;
  }

  public V3DLPViolation enforcementEventID(String enforcementEventID) {
    this.enforcementEventID = enforcementEventID;
    return this;
  }

 /**
   * Entity ID is the content Id of the violation, for example, for messages, its the Id of the message
   * @return entityID
  **/
  @JsonProperty("entityID")
  public String getEntityID() {
    return entityID;
  }

  public void setEntityID(String entityID) {
    this.entityID = entityID;
  }

  public V3DLPViolation entityID(String entityID) {
    this.entityID = entityID;
    return this;
  }

 /**
   * Timestamp of the violation in milliseconds since Jan 1 1970
   * @return createTime
  **/
  @JsonProperty("createTime")
  public Long getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Long createTime) {
    this.createTime = createTime;
  }

  public V3DLPViolation createTime(Long createTime) {
    this.createTime = createTime;
    return this;
  }

 /**
   * Timestamp of the last modification of violation in milliseconds since Jan 1 1970
   * @return lastModified
  **/
  @JsonProperty("lastModified")
  public Long getLastModified() {
    return lastModified;
  }

  public void setLastModified(Long lastModified) {
    this.lastModified = lastModified;
  }

  public V3DLPViolation lastModified(Long lastModified) {
    this.lastModified = lastModified;
    return this;
  }

 /**
   * Id of the requester responsible for the message/stream/signal
   * @return requesterId
  **/
  @JsonProperty("requesterId")
  public Long getRequesterId() {
    return requesterId;
  }

  public void setRequesterId(Long requesterId) {
    this.requesterId = requesterId;
  }

  public V3DLPViolation requesterId(Long requesterId) {
    this.requesterId = requesterId;
    return this;
  }

 /**
   * JSON representation of the details of the violation.
   * @return details
  **/
  @JsonProperty("details")
  public List getDetails() {
    return details;
  }

  public void setDetails(List details) {
    this.details = details;
  }

  public V3DLPViolation details(List details) {
    this.details = details;
    return this;
  }

  public V3DLPViolation addDetailsItem(Object detailsItem) {
    this.details.add(detailsItem);
    return this;
  }

 /**
   * action taken such as BLOCK or WARN.  See outcome for a more detailed description of the outcome this action.
   * @return action
  **/
  @JsonProperty("action")
  public String getAction() {
    return action;
  }

  public void setAction(String action) {
    this.action = action;
  }

  public V3DLPViolation action(String action) {
    this.action = action;
    return this;
  }

 /**
   * Get outcome
   * @return outcome
  **/
  @JsonProperty("outcome")
  public V1DLPOutcome getOutcome() {
    return outcome;
  }

  public void setOutcome(V1DLPOutcome outcome) {
    this.outcome = outcome;
  }

  public V3DLPViolation outcome(V1DLPOutcome outcome) {
    this.outcome = outcome;
    return this;
  }

 /**
   * Version of application which processed the message and produced this violation.
   * @return version
  **/
  @JsonProperty("version")
  public String getVersion() {
    return version;
  }

  public void setVersion(String version) {
    this.version = version;
  }

  public V3DLPViolation version(String version) {
    this.version = version;
    return this;
  }

 /**
   * Did the user chose to ignore DLP warning that was presented?
   * @return ignoreDLPwarning
  **/
  @JsonProperty("ignoreDLPwarning")
  public Boolean isIgnoreDLPwarning() {
    return ignoreDLPwarning;
  }

  public void setIgnoreDLPwarning(Boolean ignoreDLPwarning) {
    this.ignoreDLPwarning = ignoreDLPwarning;
  }

  public V3DLPViolation ignoreDLPwarning(Boolean ignoreDLPwarning) {
    this.ignoreDLPwarning = ignoreDLPwarning;
    return this;
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V3DLPViolation {\n");
    
    sb.append("    enforcementEventID: ").append(toIndentedString(enforcementEventID)).append("\n");
    sb.append("    entityID: ").append(toIndentedString(entityID)).append("\n");
    sb.append("    createTime: ").append(toIndentedString(createTime)).append("\n");
    sb.append("    lastModified: ").append(toIndentedString(lastModified)).append("\n");
    sb.append("    requesterId: ").append(toIndentedString(requesterId)).append("\n");
    sb.append("    details: ").append(toIndentedString(details)).append("\n");
    sb.append("    action: ").append(toIndentedString(action)).append("\n");
    sb.append("    outcome: ").append(toIndentedString(outcome)).append("\n");
    sb.append("    version: ").append(toIndentedString(version)).append("\n");
    sb.append("    ignoreDLPwarning: ").append(toIndentedString(ignoreDLPwarning)).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 static String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}