com.symphony.api.model.V3DLPFileExtensionConfig Maven / Gradle / Ivy
package com.symphony.api.model;
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;
/**
* Extension detection config for allowed and blocked types of file extensions.
**/
@Schema(description="Extension detection config for allowed and blocked types of file extensions.")
public class V3DLPFileExtensionConfig {
@Schema(required = true, description = "File extensions that are allowed.")
/**
* File extensions that are allowed.
**/
private List allowLists = new ArrayList();
@Schema(description = "File extensions that are blocked.")
/**
* File extensions that are blocked.
**/
private List blockLists = null;
/**
* File extensions that are allowed.
* @return allowLists
**/
@JsonProperty("allowLists")
public List getAllowLists() {
return allowLists;
}
public void setAllowLists(List allowLists) {
this.allowLists = allowLists;
}
public V3DLPFileExtensionConfig allowLists(List allowLists) {
this.allowLists = allowLists;
return this;
}
public V3DLPFileExtensionConfig addAllowListsItem(String allowListsItem) {
this.allowLists.add(allowListsItem);
return this;
}
/**
* File extensions that are blocked.
* @return blockLists
**/
@JsonProperty("blockLists")
public List getBlockLists() {
return blockLists;
}
public void setBlockLists(List blockLists) {
this.blockLists = blockLists;
}
public V3DLPFileExtensionConfig blockLists(List blockLists) {
this.blockLists = blockLists;
return this;
}
public V3DLPFileExtensionConfig addBlockListsItem(String blockListsItem) {
this.blockLists.add(blockListsItem);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V3DLPFileExtensionConfig {\n");
sb.append(" allowLists: ").append(toIndentedString(allowLists)).append("\n");
sb.append(" blockLists: ").append(toIndentedString(blockLists)).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