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

com.silanis.esl.api.model.AccountUploadSettings Maven / Gradle / Ivy

There is a newer version: 11.59.0
Show newest version
package com.silanis.esl.api.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.silanis.esl.api.util.SchemaSanitizer;

import java.util.Arrays;
import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
public class AccountUploadSettings extends Model
        implements java.io.Serializable{

    @JsonIgnore
    public static final String FIELD_ALLOWED_FILE_TYPES = "allowedFileTypes";
    protected List _allowedFileTypes;

    public AccountUploadSettings() {
        /* Empty */
    }

    public AccountUploadSettings setAllowedFileTypes(List value ){
        SchemaSanitizer.throwOnNull(FIELD_ALLOWED_FILE_TYPES, value);
        this._allowedFileTypes = value;
        setDirty(FIELD_ALLOWED_FILE_TYPES);
        return this;
    }

    @JsonIgnore
    public AccountUploadSettings safeSetSend(List value ){
        if ( value != null ) {
            this.setAllowedFileTypes(value);
        }
        return this;
    }

    public List getAllowedFileTypes(){
        return _allowedFileTypes;
    }

    @JsonIgnore
    public List evalAllowedFileTypes(){
        return _allowedFileTypes == null ? Arrays.asList("") : _allowedFileTypes;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy