@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getReadyDateTime() == null) ? 0 : getReadyDateTime().hashCode()); hashCode = prime * hashCode + ((getEndDateTime() == null) ? 0 : getEndDateTime().hashCode()); return hashCode; }
/** * <p> * The creation date and time of the instance. * </p> * * @param creationDateTime * The creation date and time of the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceTimeline withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; }
/** * <p> * The date and time when the instance was terminated. * </p> * * @param endDateTime * The date and time when the instance was terminated. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceTimeline withEndDateTime(java.util.Date endDateTime) { setEndDateTime(endDateTime); return this; }
public InstanceTimeline unmarshall(JsonUnmarshallerContext context) throws Exception { InstanceTimeline instanceTimeline = new InstanceTimeline(); if (context.testExpression("CreationDateTime", targetDepth)) { context.nextToken(); instanceTimeline.setCreationDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); instanceTimeline.setReadyDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); instanceTimeline.setEndDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getStateChangeReason() == null) ? 0 : getStateChangeReason().hashCode()); hashCode = prime * hashCode + ((getTimeline() == null) ? 0 : getTimeline().hashCode()); return hashCode; }
/** * <p> * The date and time when the instance was ready to perform tasks. * </p> * * @param readyDateTime * The date and time when the instance was ready to perform tasks. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceTimeline withReadyDateTime(java.util.Date readyDateTime) { setReadyDateTime(readyDateTime); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof InstanceStatus == false) return false; InstanceStatus other = (InstanceStatus) obj; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getStateChangeReason() == null ^ this.getStateChangeReason() == null) return false; if (other.getStateChangeReason() != null && other.getStateChangeReason().equals(this.getStateChangeReason()) == false) return false; if (other.getTimeline() == null ^ this.getTimeline() == null) return false; if (other.getTimeline() != null && other.getTimeline().equals(this.getTimeline()) == false) return false; return true; }
public InstanceTimeline unmarshall(JsonUnmarshallerContext context) throws Exception { InstanceTimeline instanceTimeline = new InstanceTimeline(); if (context.testExpression("CreationDateTime", targetDepth)) { context.nextToken(); instanceTimeline.setCreationDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); instanceTimeline.setReadyDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); instanceTimeline.setEndDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); hashCode = prime * hashCode + ((getStateChangeReason() == null) ? 0 : getStateChangeReason().hashCode()); hashCode = prime * hashCode + ((getTimeline() == null) ? 0 : getTimeline().hashCode()); return hashCode; }
/** * <p> * The date and time when the instance was ready to perform tasks. * </p> * * @param readyDateTime * The date and time when the instance was ready to perform tasks. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceTimeline withReadyDateTime(java.util.Date readyDateTime) { setReadyDateTime(readyDateTime); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof InstanceStatus == false) return false; InstanceStatus other = (InstanceStatus) obj; if (other.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; if (other.getStateChangeReason() == null ^ this.getStateChangeReason() == null) return false; if (other.getStateChangeReason() != null && other.getStateChangeReason().equals(this.getStateChangeReason()) == false) return false; if (other.getTimeline() == null ^ this.getTimeline() == null) return false; if (other.getTimeline() != null && other.getTimeline().equals(this.getTimeline()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof InstanceTimeline == false) return false; InstanceTimeline other = (InstanceTimeline) obj; if (other.getCreationDateTime() == null ^ this.getCreationDateTime() == null) return false; if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == false) return false; if (other.getReadyDateTime() == null ^ this.getReadyDateTime() == null) return false; if (other.getReadyDateTime() != null && other.getReadyDateTime().equals(this.getReadyDateTime()) == false) return false; if (other.getEndDateTime() == null ^ this.getEndDateTime() == null) return false; if (other.getEndDateTime() != null && other.getEndDateTime().equals(this.getEndDateTime()) == false) return false; return true; }
/** * <p> * The creation date and time of the instance. * </p> * * @param creationDateTime * The creation date and time of the instance. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceTimeline withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; }
/** * <p> * The date and time when the instance was terminated. * </p> * * @param endDateTime * The date and time when the instance was terminated. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceTimeline 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 (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()).append(","); if (getReadyDateTime() != null) sb.append("ReadyDateTime: ").append(getReadyDateTime()).append(","); if (getEndDateTime() != null) sb.append("EndDateTime: ").append(getEndDateTime()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(InstanceTimeline instanceTimeline, ProtocolMarshaller protocolMarshaller) { if (instanceTimeline == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(instanceTimeline.getCreationDateTime(), CREATIONDATETIME_BINDING); protocolMarshaller.marshall(instanceTimeline.getReadyDateTime(), READYDATETIME_BINDING); protocolMarshaller.marshall(instanceTimeline.getEndDateTime(), ENDDATETIME_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getReadyDateTime() == null) ? 0 : getReadyDateTime().hashCode()); hashCode = prime * hashCode + ((getEndDateTime() == null) ? 0 : getEndDateTime().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof InstanceTimeline == false) return false; InstanceTimeline other = (InstanceTimeline) obj; if (other.getCreationDateTime() == null ^ this.getCreationDateTime() == null) return false; if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == false) return false; if (other.getReadyDateTime() == null ^ this.getReadyDateTime() == null) return false; if (other.getReadyDateTime() != null && other.getReadyDateTime().equals(this.getReadyDateTime()) == false) return false; if (other.getEndDateTime() == null ^ this.getEndDateTime() == null) return false; if (other.getEndDateTime() != null && other.getEndDateTime().equals(this.getEndDateTime()) == false) return false; return true; }
/** * 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 (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()).append(","); if (getReadyDateTime() != null) sb.append("ReadyDateTime: ").append(getReadyDateTime()).append(","); if (getEndDateTime() != null) sb.append("EndDateTime: ").append(getEndDateTime()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(InstanceTimeline instanceTimeline, ProtocolMarshaller protocolMarshaller) { if (instanceTimeline == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(instanceTimeline.getCreationDateTime(), CREATIONDATETIME_BINDING); protocolMarshaller.marshall(instanceTimeline.getReadyDateTime(), READYDATETIME_BINDING); protocolMarshaller.marshall(instanceTimeline.getEndDateTime(), ENDDATETIME_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }