com.silanis.esl.api.model.GroupSummary Maven / Gradle / Ivy
The 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.Map;
@JsonIgnoreProperties(ignoreUnknown=true)
public class GroupSummary extends Entity
implements java.io.Serializable
{
// Dirty Flag Constants
@JsonIgnore
public static final String FIELD_DATA = "data";
@JsonIgnore
public static final String FIELD_EMAIL = "email";
@JsonIgnore
public static final String FIELD_ID = "id";
@JsonIgnore
public static final String FIELD_NAME = "name";
// Empty Constructor
public GroupSummary ( ) {}
// Fields
protected String _email = null;
// Accessors
@Override
public GroupSummary setData( Map value ){
super.setData(value);
return this;
}
// Used internally by aws. Invokes a the corresponding setter if the value is not null
@JsonIgnore
public GroupSummary safeSetData( Map value ){
if ( value != null ) { this.setData( value ); }
return this;
}
public GroupSummary setEmail( String 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 GroupSummary safeSetEmail( String value ){
if ( value != null ) { this.setEmail( value ); }
return this;
}
public String getEmail(){
return _email;
}
@Override
public GroupSummary setId( String value ){
super.setId(value);
return this;
}
// Used internally by aws. Invokes a the corresponding setter if the value is not null
@JsonIgnore
public GroupSummary safeSetId( String value ){
if ( value != null ) { this.setId( value ); }
return this;
}
@Override
public GroupSummary setName( String value ){
// TODO: Figure how to do refinements of validation rules
super.setName(value);
return this;
}
// Used internally by aws. Invokes a the corresponding setter if the value is not null
@JsonIgnore
public GroupSummary safeSetName( String value ){
if ( value != null ) { this.setName( value ); }
return this;
}
}