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

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

package com.symphony.api.model;

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

public class V3DLPPolicyAppliesTo   {
  
  @Schema(required = true, description = "The list of data types that policy should apply to. Can't be empty. Can be [\"Messages\",\"RoomMeta\", \"SignalMeta\", \"FileContent\", \"FileMeta\"]. ")
 /**
   * The list of data types that policy should apply to. Can't be empty. Can be [\"Messages\",\"RoomMeta\", \"SignalMeta\", \"FileContent\", \"FileMeta\"].   
  **/
  private String dataType = null;
  
  @Schema(required = true, description = "Action to be taken on violation detection. Can be [\"Block\", \"Warn\", \"LogOnly\"]. The default is \"LogOnly\". ")
 /**
   * Action to be taken on violation detection. Can be [\"Block\", \"Warn\", \"LogOnly\"]. The default is \"LogOnly\".   
  **/
  private String action = null;
  
  @Schema(required = true, description = "")
  private List rules = new ArrayList();
 /**
   * The list of data types that policy should apply to. Can't be empty. Can be [\"Messages\",\"RoomMeta\", \"SignalMeta\", \"FileContent\", \"FileMeta\"]. 
   * @return dataType
  **/
  @JsonProperty("dataType")
  public String getDataType() {
    return dataType;
  }

  public void setDataType(String dataType) {
    this.dataType = dataType;
  }

  public V3DLPPolicyAppliesTo dataType(String dataType) {
    this.dataType = dataType;
    return this;
  }

 /**
   * Action to be taken on violation detection. Can be [\"Block\", \"Warn\", \"LogOnly\"]. The default is \"LogOnly\". 
   * @return action
  **/
  @JsonProperty("action")
  public String getAction() {
    return action;
  }

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

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

 /**
   * Get rules
   * @return rules
  **/
  @JsonProperty("rules")
  public List getRules() {
    return rules;
  }

  public void setRules(List rules) {
    this.rules = rules;
  }

  public V3DLPPolicyAppliesTo rules(List rules) {
    this.rules = rules;
    return this;
  }

  public V3DLPPolicyAppliesTo addRulesItem(V3DLPRule rulesItem) {
    this.rules.add(rulesItem);
    return this;
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V3DLPPolicyAppliesTo {\n");
    
    sb.append("    dataType: ").append(toIndentedString(dataType)).append("\n");
    sb.append("    action: ").append(toIndentedString(action)).append("\n");
    sb.append("    rules: ").append(toIndentedString(rules)).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