@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getStartDateTime() == null) ? 0 : getStartDateTime().hashCode()); hashCode = prime * hashCode + ((getEndDateTime() == null) ? 0 : getEndDateTime().hashCode()); hashCode = prime * hashCode + ((getLastStateChangeReason() == null) ? 0 : getLastStateChangeReason().hashCode()); return hashCode; }
/** * Constructs a new StepExecutionStatusDetail object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param state * The state of the step. * @param creationDateTime * The creation date and time of the step. */ public StepExecutionStatusDetail(String state, java.util.Date creationDateTime) { setState(state); setCreationDateTime(creationDateTime); }
/** * <p> * The completion date and time of the step. * </p> * * @param endDateTime * The completion date and time of the step. * @return Returns a reference to this object so that method calls can be chained together. */ public StepExecutionStatusDetail withEndDateTime(java.util.Date endDateTime) { setEndDateTime(endDateTime); return this; }
public StepExecutionStatusDetail unmarshall(JsonUnmarshallerContext context) throws Exception { StepExecutionStatusDetail stepExecutionStatusDetail = new StepExecutionStatusDetail(); if (context.testExpression("State", targetDepth)) { context.nextToken(); stepExecutionStatusDetail.setState(context.getUnmarshaller(String.class).unmarshall(context)); stepExecutionStatusDetail.setCreationDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); stepExecutionStatusDetail.setStartDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); stepExecutionStatusDetail.setEndDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); stepExecutionStatusDetail.setLastStateChangeReason(context.getUnmarshaller(String.class).unmarshall(context));
} else { stepStatus=detail.getExecutionStatusDetail(); stepState=stepStatus.getState().intern(); if (stepState!="PENDING" && stepState!="RUNNING") { break;
/** * <p> * The creation date and time of the step. * </p> * * @param creationDateTime * The creation date and time of the step. * @return Returns a reference to this object so that method calls can be chained together. */ public StepExecutionStatusDetail withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStepConfig() == null) ? 0 : getStepConfig().hashCode()); hashCode = prime * hashCode + ((getExecutionStatusDetail() == null) ? 0 : getExecutionStatusDetail().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StepDetail == false) return false; StepDetail other = (StepDetail) obj; if (other.getStepConfig() == null ^ this.getStepConfig() == null) return false; if (other.getStepConfig() != null && other.getStepConfig().equals(this.getStepConfig()) == false) return false; if (other.getExecutionStatusDetail() == null ^ this.getExecutionStatusDetail() == null) return false; if (other.getExecutionStatusDetail() != null && other.getExecutionStatusDetail().equals(this.getExecutionStatusDetail()) == false) return false; return true; }
public StepExecutionStatusDetail unmarshall(JsonUnmarshallerContext context) throws Exception { StepExecutionStatusDetail stepExecutionStatusDetail = new StepExecutionStatusDetail(); if (context.testExpression("State", targetDepth)) { context.nextToken(); stepExecutionStatusDetail.setState(context.getUnmarshaller(String.class).unmarshall(context)); stepExecutionStatusDetail.setCreationDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); stepExecutionStatusDetail.setStartDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); stepExecutionStatusDetail.setEndDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); stepExecutionStatusDetail.setLastStateChangeReason(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The creation date and time of the step. * </p> * * @param creationDateTime * The creation date and time of the step. * @return Returns a reference to this object so that method calls can be chained together. */ public StepExecutionStatusDetail withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStepConfig() == null) ? 0 : getStepConfig().hashCode()); hashCode = prime * hashCode + ((getExecutionStatusDetail() == null) ? 0 : getExecutionStatusDetail().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StepDetail == false) return false; StepDetail other = (StepDetail) obj; if (other.getStepConfig() == null ^ this.getStepConfig() == null) return false; if (other.getStepConfig() != null && other.getStepConfig().equals(this.getStepConfig()) == false) return false; if (other.getExecutionStatusDetail() == null ^ this.getExecutionStatusDetail() == null) return false; if (other.getExecutionStatusDetail() != null && other.getExecutionStatusDetail().equals(this.getExecutionStatusDetail()) == false) return false; return true; }
return false; StepExecutionStatusDetail other = (StepExecutionStatusDetail) obj; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getCreationDateTime() == null ^ this.getCreationDateTime() == null) return false; if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == false) return false; if (other.getStartDateTime() == null ^ this.getStartDateTime() == null) return false; if (other.getStartDateTime() != null && other.getStartDateTime().equals(this.getStartDateTime()) == false) return false; if (other.getEndDateTime() == null ^ this.getEndDateTime() == null) return false; if (other.getEndDateTime() != null && other.getEndDateTime().equals(this.getEndDateTime()) == false) return false; if (other.getLastStateChangeReason() == null ^ this.getLastStateChangeReason() == null) return false; if (other.getLastStateChangeReason() != null && other.getLastStateChangeReason().equals(this.getLastStateChangeReason()) == false) return false; return true;
/** * Constructs a new StepExecutionStatusDetail object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param state * The state of the step. * @param creationDateTime * The creation date and time of the step. */ public StepExecutionStatusDetail(StepExecutionState state, java.util.Date creationDateTime) { setState(state.toString()); setCreationDateTime(creationDateTime); }
/** * <p> * The completion date and time of the step. * </p> * * @param endDateTime * The completion date and time of the step. * @return Returns a reference to this object so that method calls can be chained together. */ public StepExecutionStatusDetail withEndDateTime(java.util.Date endDateTime) { setEndDateTime(endDateTime); return this; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getState() != null) sb.append("State: ").append(getState()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()).append(","); if (getStartDateTime() != null) sb.append("StartDateTime: ").append(getStartDateTime()).append(","); if (getEndDateTime() != null) sb.append("EndDateTime: ").append(getEndDateTime()).append(","); if (getLastStateChangeReason() != null) sb.append("LastStateChangeReason: ").append(getLastStateChangeReason()); sb.append("}"); return sb.toString(); }
/** * Constructs a new StepExecutionStatusDetail object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param state * The state of the step. * @param creationDateTime * The creation date and time of the step. */ public StepExecutionStatusDetail(String state, java.util.Date creationDateTime) { setState(state); setCreationDateTime(creationDateTime); }
/** * Marshall the given parameter object. */ public void marshall(StepExecutionStatusDetail stepExecutionStatusDetail, ProtocolMarshaller protocolMarshaller) { if (stepExecutionStatusDetail == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(stepExecutionStatusDetail.getState(), STATE_BINDING); protocolMarshaller.marshall(stepExecutionStatusDetail.getCreationDateTime(), CREATIONDATETIME_BINDING); protocolMarshaller.marshall(stepExecutionStatusDetail.getStartDateTime(), STARTDATETIME_BINDING); protocolMarshaller.marshall(stepExecutionStatusDetail.getEndDateTime(), ENDDATETIME_BINDING); protocolMarshaller.marshall(stepExecutionStatusDetail.getLastStateChangeReason(), LASTSTATECHANGEREASON_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * Constructs a new StepExecutionStatusDetail object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param state * The state of the step. * @param creationDateTime * The creation date and time of the step. */ public StepExecutionStatusDetail(StepExecutionState state, java.util.Date creationDateTime) { setState(state.toString()); setCreationDateTime(creationDateTime); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getStartDateTime() == null) ? 0 : getStartDateTime().hashCode()); hashCode = prime * hashCode + ((getEndDateTime() == null) ? 0 : getEndDateTime().hashCode()); hashCode = prime * hashCode + ((getLastStateChangeReason() == null) ? 0 : getLastStateChangeReason().hashCode()); return hashCode; }