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

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

package com.symphony.api.model;

import com.symphony.api.model.V3DLPDictionaryMeta;
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;

/**
  * This is a configuration that can be used to match text or regex. Configuration that can be used by a rule. This is a configuration that can be used to match text or regex. This configuration also corresponds to V2 TextMatch/RegexMatch of dictionaries. 
 **/
@Schema(description="This is a configuration that can be used to match text or regex. Configuration that can be used by a rule. This is a configuration that can be used to match text or regex. This configuration also corresponds to V2 TextMatch/RegexMatch of dictionaries. ")
public class V3DLPTextMatchConfig   {
  
  @Schema(description = "")
  private List dictionaries = null;
  
  @Schema(description = "")
  private Integer countUniqueOccurrences = null;
  
  @Schema(description = "File types must be applied only for rule type \"FileContent\", otherwise must be empty. Can be [\"PDF\", \"WORD\", \"EXCEL\", \"POWERPOINT\", \"ZIP\", \"CSV\", \"TXT\"]. ")
 /**
   * File types must be applied only for rule type \"FileContent\", otherwise must be empty. Can be [\"PDF\", \"WORD\", \"EXCEL\", \"POWERPOINT\", \"ZIP\", \"CSV\", \"TXT\"].   
  **/
  private List applicableFileTypes = null;
 /**
   * Get dictionaries
   * @return dictionaries
  **/
  @JsonProperty("dictionaries")
  public List getDictionaries() {
    return dictionaries;
  }

  public void setDictionaries(List dictionaries) {
    this.dictionaries = dictionaries;
  }

  public V3DLPTextMatchConfig dictionaries(List dictionaries) {
    this.dictionaries = dictionaries;
    return this;
  }

  public V3DLPTextMatchConfig addDictionariesItem(V3DLPDictionaryMeta dictionariesItem) {
    this.dictionaries.add(dictionariesItem);
    return this;
  }

 /**
   * Get countUniqueOccurrences
   * @return countUniqueOccurrences
  **/
  @JsonProperty("countUniqueOccurrences")
  public Integer getCountUniqueOccurrences() {
    return countUniqueOccurrences;
  }

  public void setCountUniqueOccurrences(Integer countUniqueOccurrences) {
    this.countUniqueOccurrences = countUniqueOccurrences;
  }

  public V3DLPTextMatchConfig countUniqueOccurrences(Integer countUniqueOccurrences) {
    this.countUniqueOccurrences = countUniqueOccurrences;
    return this;
  }

 /**
   * File types must be applied only for rule type \"FileContent\", otherwise must be empty. Can be [\"PDF\", \"WORD\", \"EXCEL\", \"POWERPOINT\", \"ZIP\", \"CSV\", \"TXT\"]. 
   * @return applicableFileTypes
  **/
  @JsonProperty("applicableFileTypes")
  public List getApplicableFileTypes() {
    return applicableFileTypes;
  }

  public void setApplicableFileTypes(List applicableFileTypes) {
    this.applicableFileTypes = applicableFileTypes;
  }

  public V3DLPTextMatchConfig applicableFileTypes(List applicableFileTypes) {
    this.applicableFileTypes = applicableFileTypes;
    return this;
  }

  public V3DLPTextMatchConfig addApplicableFileTypesItem(String applicableFileTypesItem) {
    this.applicableFileTypes.add(applicableFileTypesItem);
    return this;
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V3DLPTextMatchConfig {\n");
    
    sb.append("    dictionaries: ").append(toIndentedString(dictionaries)).append("\n");
    sb.append("    countUniqueOccurrences: ").append(toIndentedString(countUniqueOccurrences)).append("\n");
    sb.append("    applicableFileTypes: ").append(toIndentedString(applicableFileTypes)).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