@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getActionId() == null) ? 0 : getActionId().hashCode()); hashCode = prime * hashCode + ((getActionType() == null) ? 0 : getActionType().hashCode()); hashCode = prime * hashCode + ((getActionDescription() == null) ? 0 : getActionDescription().hashCode()); hashCode = prime * hashCode + ((getFailureType() == null) ? 0 : getFailureType().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getFailureDescription() == null) ? 0 : getFailureDescription().hashCode()); hashCode = prime * hashCode + ((getExecutedTime() == null) ? 0 : getExecutedTime().hashCode()); hashCode = prime * hashCode + ((getFinishedTime() == null) ? 0 : getFinishedTime().hashCode()); return hashCode; }
/** * <p> * A description of the managed action. * </p> * * @param actionDescription * A description of the managed action. * @return Returns a reference to this object so that method calls can be chained together. */ public ManagedActionHistoryItem withActionDescription(String actionDescription) { setActionDescription(actionDescription); return this; }
public ManagedActionHistoryItem unmarshall(StaxUnmarshallerContext context) throws Exception { ManagedActionHistoryItem managedActionHistoryItem = new ManagedActionHistoryItem(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; managedActionHistoryItem.setActionId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; managedActionHistoryItem.setActionType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; managedActionHistoryItem.setActionDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; managedActionHistoryItem.setFailureType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; managedActionHistoryItem.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; managedActionHistoryItem.setFailureDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; managedActionHistoryItem.setExecutedTime(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; managedActionHistoryItem.setFinishedTime(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue;
public ManagedActionHistoryItem unmarshall(StaxUnmarshallerContext context) throws Exception { ManagedActionHistoryItem managedActionHistoryItem = new ManagedActionHistoryItem(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; managedActionHistoryItem.setActionId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; managedActionHistoryItem.setActionType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; managedActionHistoryItem.setActionDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; managedActionHistoryItem.setFailureType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; managedActionHistoryItem.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; managedActionHistoryItem.setFailureDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; managedActionHistoryItem.setExecutedTime(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; managedActionHistoryItem.setFinishedTime(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue;
return false; ManagedActionHistoryItem other = (ManagedActionHistoryItem) obj; if (other.getActionId() == null ^ this.getActionId() == null) return false; if (other.getActionId() != null && other.getActionId().equals(this.getActionId()) == false) return false; if (other.getActionType() == null ^ this.getActionType() == null) return false; if (other.getActionType() != null && other.getActionType().equals(this.getActionType()) == false) return false; if (other.getActionDescription() == null ^ this.getActionDescription() == null) return false; if (other.getActionDescription() != null && other.getActionDescription().equals(this.getActionDescription()) == false) return false; if (other.getFailureType() == null ^ this.getFailureType() == null) return false; if (other.getFailureType() != null && other.getFailureType().equals(this.getFailureType()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getFailureDescription() == null ^ this.getFailureDescription() == null) return false; if (other.getFailureDescription() != null && other.getFailureDescription().equals(this.getFailureDescription()) == false) return false; if (other.getExecutedTime() == null ^ this.getExecutedTime() == null) return false; if (other.getExecutedTime() != null && other.getExecutedTime().equals(this.getExecutedTime()) == false)
/** * <p> * A description of the managed action. * </p> * * @param actionDescription * A description of the managed action. * @return Returns a reference to this object so that method calls can be chained together. */ public ManagedActionHistoryItem withActionDescription(String actionDescription) { setActionDescription(actionDescription); return this; }
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getActionId() != null) sb.append("ActionId: ").append(getActionId()).append(","); if (getActionType() != null) sb.append("ActionType: ").append(getActionType()).append(","); if (getActionDescription() != null) sb.append("ActionDescription: ").append(getActionDescription()).append(","); if (getFailureType() != null) sb.append("FailureType: ").append(getFailureType()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getFailureDescription() != null) sb.append("FailureDescription: ").append(getFailureDescription()).append(","); if (getExecutedTime() != null) sb.append("ExecutedTime: ").append(getExecutedTime()).append(","); if (getFinishedTime() != null) sb.append("FinishedTime: ").append(getFinishedTime()); sb.append("}"); return sb.toString();
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getActionId() == null) ? 0 : getActionId().hashCode()); hashCode = prime * hashCode + ((getActionType() == null) ? 0 : getActionType().hashCode()); hashCode = prime * hashCode + ((getActionDescription() == null) ? 0 : getActionDescription().hashCode()); hashCode = prime * hashCode + ((getFailureType() == null) ? 0 : getFailureType().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getFailureDescription() == null) ? 0 : getFailureDescription().hashCode()); hashCode = prime * hashCode + ((getExecutedTime() == null) ? 0 : getExecutedTime().hashCode()); hashCode = prime * hashCode + ((getFinishedTime() == null) ? 0 : getFinishedTime().hashCode()); return hashCode; }
return false; ManagedActionHistoryItem other = (ManagedActionHistoryItem) obj; if (other.getActionId() == null ^ this.getActionId() == null) return false; if (other.getActionId() != null && other.getActionId().equals(this.getActionId()) == false) return false; if (other.getActionType() == null ^ this.getActionType() == null) return false; if (other.getActionType() != null && other.getActionType().equals(this.getActionType()) == false) return false; if (other.getActionDescription() == null ^ this.getActionDescription() == null) return false; if (other.getActionDescription() != null && other.getActionDescription().equals(this.getActionDescription()) == false) return false; if (other.getFailureType() == null ^ this.getFailureType() == null) return false; if (other.getFailureType() != null && other.getFailureType().equals(this.getFailureType()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getFailureDescription() == null ^ this.getFailureDescription() == null) return false; if (other.getFailureDescription() != null && other.getFailureDescription().equals(this.getFailureDescription()) == false) return false; if (other.getExecutedTime() == null ^ this.getExecutedTime() == null) return false; if (other.getExecutedTime() != null && other.getExecutedTime().equals(this.getExecutedTime()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getActionId() != null) sb.append("ActionId: ").append(getActionId()).append(","); if (getActionType() != null) sb.append("ActionType: ").append(getActionType()).append(","); if (getActionDescription() != null) sb.append("ActionDescription: ").append(getActionDescription()).append(","); if (getFailureType() != null) sb.append("FailureType: ").append(getFailureType()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getFailureDescription() != null) sb.append("FailureDescription: ").append(getFailureDescription()).append(","); if (getExecutedTime() != null) sb.append("ExecutedTime: ").append(getExecutedTime()).append(","); if (getFinishedTime() != null) sb.append("FinishedTime: ").append(getFinishedTime()); sb.append("}"); return sb.toString();