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

rapture.common.model.RaptureApplicationStatus Maven / Gradle / Ivy

/**
 * The MIT License (MIT)
 *
 * Copyright (C) 2011-2016 Incapture Technologies LLC
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

/**
 * This file is autogenerated and any changes will be overwritten.
 */

package rapture.common.model;

import rapture.common.*;
import rapture.object.Searchable;
import rapture.object.Storable;
import rapture.object.Debugable;
import rapture.common.version.ApiVersion;
import rapture.common.impl.jackson.JacksonUtil;
import java.util.List;
import java.util.Map;
import rapture.common.Scheme;
import rapture.object.Addressable;
import rapture.common.model.IndexConfig;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* 
**/
@SuppressWarnings("all")
public class RaptureApplicationStatus  implements RaptureTransferObject, Debugable ,Storable , Addressable {
    /*
    *  Start of field 'appName' (String) 
    */
    private String appName;

    @JsonProperty("appName")
    public String getAppName() {
       return appName;
    }

    @JsonProperty("appName")
    public void setAppName(String appName) {
       this.appName =  appName ;
    }
    /*
    *  end of field 'appName' (String) 
    */


    /*
    *  Start of field 'theDate' (String) 
    */
    private String theDate;

    @JsonProperty("theDate")
    public String getTheDate() {
       return theDate;
    }

    @JsonProperty("theDate")
    public void setTheDate(String theDate) {
       this.theDate =  theDate ;
    }
    /*
    *  end of field 'theDate' (String) 
    */


    /*
    *  Start of field 'instanceId' (String) 
    */
    private String instanceId;

    @JsonProperty("instanceId")
    public String getInstanceId() {
       return instanceId;
    }

    @JsonProperty("instanceId")
    public void setInstanceId(String instanceId) {
       this.instanceId =  instanceId ;
    }
    /*
    *  end of field 'instanceId' (String) 
    */


    /*
    *  Start of field 'overrideApplicationPath' (String) 
    */
    private String overrideApplicationPath;

    @JsonProperty("overrideApplicationPath")
    public String getOverrideApplicationPath() {
       return overrideApplicationPath;
    }

    @JsonProperty("overrideApplicationPath")
    public void setOverrideApplicationPath(String overrideApplicationPath) {
       this.overrideApplicationPath =  overrideApplicationPath ;
    }
    /*
    *  end of field 'overrideApplicationPath' (String) 
    */


    /*
    *  Start of field 'status' (RaptureApplicationStatusStep) 
    */
    private RaptureApplicationStatusStep status;

    @JsonProperty("status")
    public RaptureApplicationStatusStep getStatus() {
       return status;
    }

    @JsonProperty("status")
    public void setStatus(RaptureApplicationStatusStep status) {
       this.status =  status ;
    }
    /*
    *  end of field 'status' (RaptureApplicationStatusStep) 
    */


    /*
    *  Start of field 'lastMessage' (String) 
    */
    private String lastMessage;

    @JsonProperty("lastMessage")
    public String getLastMessage() {
       return lastMessage;
    }

    @JsonProperty("lastMessage")
    public void setLastMessage(String lastMessage) {
       this.lastMessage =  lastMessage ;
    }
    /*
    *  end of field 'lastMessage' (String) 
    */


    /*
    *  Start of field 'messages' (List) 
    */
    private List messages;

    @JsonProperty("messages")
    public List getMessages() {
       return messages;
    }

    @JsonProperty("messages")
    public void setMessages(List messages) {
       this.messages =  messages ;
    }
    /*
    *  end of field 'messages' (List) 
    */


    /*
    *  Start of field 'inputConfig' (Map) 
    */
    private Map inputConfig;

    @JsonProperty("inputConfig")
    public Map getInputConfig() {
       return inputConfig;
    }

    @JsonProperty("inputConfig")
    public void setInputConfig(Map inputConfig) {
       this.inputConfig =  inputConfig ;
    }
    /*
    *  end of field 'inputConfig' (Map) 
    */


    /*
    *  Start of field 'outputConfig' (Map) 
    */
    private Map outputConfig;

    @JsonProperty("outputConfig")
    public Map getOutputConfig() {
       return outputConfig;
    }

    @JsonProperty("outputConfig")
    public void setOutputConfig(Map outputConfig) {
       this.outputConfig =  outputConfig ;
    }
    /*
    *  end of field 'outputConfig' (Map) 
    */


   
    //@Override
    public RaptureURI getAddressURI() {
        return new RaptureURI(getStoragePath(), Scheme.APPSTATUS);
    	// return new APPSTATUSURI(getStoragePath());
    	
    }

    public static final Scheme scheme = Scheme.APPSTATUS;
    //@Override
    public Scheme getScheme() {
    	return scheme;
    }	



    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((inputConfig == null) ? 0 : inputConfig.hashCode());
        result = prime * result + ((instanceId == null) ? 0 : instanceId.hashCode());
        result = prime * result + ((theDate == null) ? 0 : theDate.hashCode());
        result = prime * result + ((appName == null) ? 0 : appName.hashCode());
        result = prime * result + ((outputConfig == null) ? 0 : outputConfig.hashCode());
        result = prime * result + ((lastMessage == null) ? 0 : lastMessage.hashCode());
        result = prime * result + ((messages == null) ? 0 : messages.hashCode());
        result = prime * result + ((overrideApplicationPath == null) ? 0 : overrideApplicationPath.hashCode());
        result = prime * result + ((status == null) ? 0 : status.hashCode());
        return result;
    }


    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        
        RaptureApplicationStatus other = (RaptureApplicationStatus) obj;

        if (inputConfig == null) {
            if (other.inputConfig != null) {
                return false;
            }
        } else if (!inputConfig.equals(other.inputConfig)) {
            return false;
        }

        if (instanceId == null) {
            if (other.instanceId != null) {
                return false;
            }
        } else if (!instanceId.equals(other.instanceId)) {
            return false;
        }

        if (theDate == null) {
            if (other.theDate != null) {
                return false;
            }
        } else if (!theDate.equals(other.theDate)) {
            return false;
        }

        if (appName == null) {
            if (other.appName != null) {
                return false;
            }
        } else if (!appName.equals(other.appName)) {
            return false;
        }

        if (outputConfig == null) {
            if (other.outputConfig != null) {
                return false;
            }
        } else if (!outputConfig.equals(other.outputConfig)) {
            return false;
        }

        if (lastMessage == null) {
            if (other.lastMessage != null) {
                return false;
            }
        } else if (!lastMessage.equals(other.lastMessage)) {
            return false;
        }

        if (messages == null) {
            if (other.messages != null) {
                return false;
            }
        } else if (!messages.equals(other.messages)) {
            return false;
        }

        if (overrideApplicationPath == null) {
            if (other.overrideApplicationPath != null) {
                return false;
            }
        } else if (!overrideApplicationPath.equals(other.overrideApplicationPath)) {
            return false;
        }

        if (status == null) {
            if (other.status != null) {
                return false;
            }
        } else if (!status.equals(other.status)) {
            return false;
        }

           
        return true;
    }


    /**/
    public String debug() {
        StringBuilder sb = new StringBuilder();
            {
                sb.append(" inputConfig= ");
                Object o = inputConfig;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" instanceId= ");
                Object o = instanceId;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" theDate= ");
                Object o = theDate;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" appName= ");
                Object o = appName;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" outputConfig= ");
                Object o = outputConfig;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" lastMessage= ");
                Object o = lastMessage;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" messages= ");
                Object o = messages;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" overrideApplicationPath= ");
                Object o = overrideApplicationPath;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

            {
                sb.append(" status= ");
                Object o = status;
                if (o != null) {
                    if (o instanceof java.util.Collection) {
                        sb.append("{ ");
                        for (Object oo : (java.util.Collection) o) {
                            if (oo == null) sb.append("null");
                            else if (oo instanceof Debugable) sb.append(((Debugable) oo).debug());
                            else sb.append(oo.toString()).append(", ");
                        }
                        sb.append(" } ");
                    } else {
                        if (o instanceof Debugable) sb.append(((Debugable) o).debug());
                        else sb.append(o.toString());
                    }
                }
            }

        return sb.append("\n").toString();
    }


    @Override
    public String getStoragePath() {
     // Add key fields
      return new RaptureApplicationStatusPathBuilder()
        .theDate(getTheDate())
        .appName(getAppName())
        .instanceId(getInstanceId())
        .buildStoragePath();
    }
    
    @Override
    public RaptureURI getStorageLocation() {
       return new RaptureApplicationStatusPathBuilder()
         .theDate(getTheDate())
         .appName(getAppName())
         .instanceId(getInstanceId())
         .buildStorageLocation();
    }
    
    


    @Override
    public String toString() {
        return JacksonUtil.jsonFromObject(this);
    }

    private ApiVersion _raptureVersion;

    @JsonProperty("_raptureVersion")
    public ApiVersion get_raptureVersion() {
        return _raptureVersion;
    }

    @JsonProperty("_raptureVersion")
    public void set_raptureVersion(ApiVersion _raptureVersion) {
        this._raptureVersion = _raptureVersion;
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy