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

com.silanis.esl.api.model.CycleCount 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;
@JsonIgnoreProperties(ignoreUnknown=true)
public class CycleCount extends Model
      implements java.io.Serializable
{
    
    // Dirty Flag Constants
    @JsonIgnore
    public static final String FIELD_COUNT = "count";
    @JsonIgnore
    public static final String FIELD_CYCLE = "cycle";
    
    // Empty Constructor
    public CycleCount ( ) {}
    
    // Fields
    protected Integer _count = 0;
    protected String _cycle = "DAY";
    
    // Accessors
        
    
    public CycleCount setCount( Integer value ){
        SchemaSanitizer.throwOnNull(FIELD_COUNT,value);
        // TODO With proper compare
        // if ( this._count == value ) return this;
        this._count = value;
        setDirty(FIELD_COUNT);
        return this;
    }
    // Used internally by aws. Invokes a the corresponding setter if the value is not null
    @JsonIgnore
    public CycleCount safeSetCount( Integer value ){
        if ( value != null ) { this.setCount( value ); }
        return this;
    }
    public Integer getCount(){
        return _count;
    }
    
        
    
    public CycleCount setCycle( String value ){
        SchemaSanitizer.throwOnNull(FIELD_CYCLE,value);
        // TODO With proper compare
        // if ( this._cycle == value ) return this;
        this._cycle = value;
        setDirty(FIELD_CYCLE);
        return this;
    }
    // Used internally by aws. Invokes a the corresponding setter if the value is not null
    @JsonIgnore
    public CycleCount safeSetCycle( String value ){
        if ( value != null ) { this.setCycle( value ); }
        return this;
    }
    public String getCycle(){
        return _cycle;
    }
    
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy