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

com.silanis.esl.api.model.AccountProviders 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.*;
import java.util.List;
import java.util.ArrayList;
import com.silanis.esl.api.util.SchemaSanitizer;
@JsonIgnoreProperties(ignoreUnknown=true)
public class AccountProviders extends Model
      implements java.io.Serializable
{
    
    // Dirty Flag Constants
    @JsonIgnore
    public static final String FIELD_DOCUMENTS = "documents";
    @JsonIgnore
    public static final String FIELD_USERS = "users";
    
    // Empty Constructor
    public AccountProviders ( ) {}
    
    // Fields
    protected List _documents = new ArrayList();
    protected List _users = new ArrayList();
    
    // Accessors
        
    
    public AccountProviders setDocuments( List value ){
        SchemaSanitizer.throwOnNull(FIELD_DOCUMENTS,value);
        // TODO With proper compare
        // if ( this._documents == value ) return this;
        this._documents = value;
        setDirty(FIELD_DOCUMENTS);
        return this;
    }
    // Used internally by aws. Invokes a the corresponding setter if the value is not null
    @JsonIgnore
    public AccountProviders safeSetDocuments( List value ){
        if ( value != null ) { this.setDocuments( value ); }
        return this;
    }
    public List getDocuments(){
        return _documents;
    }
    // List adder
    public AccountProviders addDocument( Provider value ){
        if (value == null) { throw new IllegalArgumentException("Argument cannot be null"); }
        this._documents.add(value);
        setDirty(FIELD_DOCUMENTS);
        return this;
    }
    
        
    
    public AccountProviders setUsers( List value ){
        SchemaSanitizer.throwOnNull(FIELD_USERS,value);
        // TODO With proper compare
        // if ( this._users == value ) return this;
        this._users = value;
        setDirty(FIELD_USERS);
        return this;
    }
    // Used internally by aws. Invokes a the corresponding setter if the value is not null
    @JsonIgnore
    public AccountProviders safeSetUsers( List value ){
        if ( value != null ) { this.setUsers( value ); }
        return this;
    }
    public List getUsers(){
        return _users;
    }
    // List adder
    public AccountProviders addUser( Provider value ){
        if (value == null) { throw new IllegalArgumentException("Argument cannot be null"); }
        this._users.add(value);
        setDirty(FIELD_USERS);
        return this;
    }
    
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy