
com.symphony.api.model.V1DLPMatchedPolicy Maven / Gradle / Ivy
package com.symphony.api.model;
import io.swagger.v3.oas.annotations.media.Schema;
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 policy that matched the violation with a list of matched keywords in the policy
**/
@Schema(description="A representation of policy that matched the violation with a list of matched keywords in the policy")
public class V1DLPMatchedPolicy {
@Schema(description = "Id of the policy")
/**
* Id of the policy
**/
private String id = null;
@Schema(description = "Version of the policy")
/**
* Version of the policy
**/
private String version = null;
@Schema(description = "Name of the policy")
/**
* Name of the policy
**/
private String policyName = null;
@Schema(description = "Whether BLOCK or WARN")
/**
* Whether BLOCK or WARN
**/
private String type = null;
@Schema(description = "List of decrypted matched keywords in the policy")
/**
* List of decrypted matched keywords in the policy
**/
private String terms = null;
@Schema(description = "A diagnostic message containing an error message in the event that the decryption of terms failed. May also be present in the case of a successful call if there is useful narrative to return. ")
/**
* A diagnostic message containing an error message in the event that the decryption of terms failed. May also be present in the case of a successful call if there is useful narrative to return.
**/
private String diagnostic = null;
/**
* Id of the policy
* @return id
**/
@JsonProperty("id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public V1DLPMatchedPolicy id(String id) {
this.id = id;
return this;
}
/**
* Version of the policy
* @return version
**/
@JsonProperty("version")
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public V1DLPMatchedPolicy version(String version) {
this.version = version;
return this;
}
/**
* Name of the policy
* @return policyName
**/
@JsonProperty("policyName")
public String getPolicyName() {
return policyName;
}
public void setPolicyName(String policyName) {
this.policyName = policyName;
}
public V1DLPMatchedPolicy policyName(String policyName) {
this.policyName = policyName;
return this;
}
/**
* Whether BLOCK or WARN
* @return type
**/
@JsonProperty("type")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public V1DLPMatchedPolicy type(String type) {
this.type = type;
return this;
}
/**
* List of decrypted matched keywords in the policy
* @return terms
**/
@JsonProperty("terms")
public String getTerms() {
return terms;
}
public void setTerms(String terms) {
this.terms = terms;
}
public V1DLPMatchedPolicy terms(String terms) {
this.terms = terms;
return this;
}
/**
* A diagnostic message containing an error message in the event that the decryption of terms failed. May also be present in the case of a successful call if there is useful narrative to return.
* @return diagnostic
**/
@JsonProperty("diagnostic")
public String getDiagnostic() {
return diagnostic;
}
public void setDiagnostic(String diagnostic) {
this.diagnostic = diagnostic;
}
public V1DLPMatchedPolicy diagnostic(String diagnostic) {
this.diagnostic = diagnostic;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1DLPMatchedPolicy {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" policyName: ").append(toIndentedString(policyName)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" terms: ").append(toIndentedString(terms)).append("\n");
sb.append(" diagnostic: ").append(toIndentedString(diagnostic)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy