
com.silanis.esl.api.model.DelegationUser Maven / Gradle / Ivy
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;
@JsonIgnoreProperties(ignoreUnknown=true)
public class DelegationUser extends Model
implements java.io.Serializable
{
// Dirty Flag Constants
@JsonIgnore
public static final String FIELD_EMAIL = "email";
@JsonIgnore
public static final String FIELD_FIRSTNAME = "firstName";
@JsonIgnore
public static final String FIELD_ID = "id";
@JsonIgnore
public static final String FIELD_LASTNAME = "lastName";
@JsonIgnore
public static final String FIELD_NAME = "name";
// Empty Constructor
public DelegationUser ( ) {}
// Fields
protected String _email = "";
protected String _firstName = "";
protected String _id = "";
protected String _lastName = "";
protected String _name = "";
// Accessors
public DelegationUser setEmail( String value ){
SchemaSanitizer.throwOnNull(FIELD_EMAIL,value);
value = SchemaSanitizer.trim(value);
// TODO With proper compare
// if ( this._email == value ) return this;
this._email = value;
setDirty(FIELD_EMAIL);
return this;
}
// Used internally by aws. Invokes a the corresponding setter if the value is not null
@JsonIgnore
public DelegationUser safeSetEmail( String value ){
if ( value != null ) { this.setEmail( value ); }
return this;
}
public String getEmail(){
return _email;
}
public DelegationUser setFirstName( String value ){
SchemaSanitizer.throwOnNull(FIELD_FIRSTNAME,value);
value = SchemaSanitizer.trim(value);
// TODO With proper compare
// if ( this._firstName == value ) return this;
this._firstName = value;
setDirty(FIELD_FIRSTNAME);
return this;
}
// Used internally by aws. Invokes a the corresponding setter if the value is not null
@JsonIgnore
public DelegationUser safeSetFirstName( String value ){
if ( value != null ) { this.setFirstName( value ); }
return this;
}
public String getFirstName(){
return _firstName;
}
public DelegationUser setId( String value ){
SchemaSanitizer.throwOnNull(FIELD_ID,value);
value = SchemaSanitizer.trim(value);
// TODO With proper compare
// if ( this._id == value ) return this;
this._id = value;
setDirty(FIELD_ID);
return this;
}
// Used internally by aws. Invokes a the corresponding setter if the value is not null
@JsonIgnore
public DelegationUser safeSetId( String value ){
if ( value != null ) { this.setId( value ); }
return this;
}
public String getId(){
return _id;
}
public DelegationUser setLastName( String value ){
SchemaSanitizer.throwOnNull(FIELD_LASTNAME,value);
value = SchemaSanitizer.trim(value);
// TODO With proper compare
// if ( this._lastName == value ) return this;
this._lastName = value;
setDirty(FIELD_LASTNAME);
return this;
}
// Used internally by aws. Invokes a the corresponding setter if the value is not null
@JsonIgnore
public DelegationUser safeSetLastName( String value ){
if ( value != null ) { this.setLastName( value ); }
return this;
}
public String getLastName(){
return _lastName;
}
public DelegationUser setName( String value ){
SchemaSanitizer.throwOnNull(FIELD_NAME,value);
value = SchemaSanitizer.trim(value);
// TODO With proper compare
// if ( this._name == value ) return this;
this._name = value;
setDirty(FIELD_NAME);
return this;
}
// Used internally by aws. Invokes a the corresponding setter if the value is not null
@JsonIgnore
public DelegationUser safeSetName( String value ){
if ( value != null ) { this.setName( value ); }
return this;
}
public String getName(){
return _name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy