@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBeginDate() == null) ? 0 : getBeginDate().hashCode()); hashCode = prime * hashCode + ((getEndDate() == null) ? 0 : getEndDate().hashCode()); return hashCode; }
/** * <p> * The minimum value of the timestamp range. * </p> * * @param beginDate * The minimum value of the timestamp range. * @return Returns a reference to this object so that method calls can be chained together. */ public TimestampRange withBeginDate(java.util.Date beginDate) { setBeginDate(beginDate); return this; }
/** * <p> * The maximum value of the timestamp range. * </p> * * @param endDate * The maximum value of the timestamp range. * @return Returns a reference to this object so that method calls can be chained together. */ public TimestampRange withEndDate(java.util.Date endDate) { setEndDate(endDate); return this; }
public TimestampRange unmarshall(JsonUnmarshallerContext context) throws Exception { TimestampRange timestampRange = new TimestampRange(); if (context.testExpression("beginDate", targetDepth)) { context.nextToken(); timestampRange.setBeginDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); timestampRange.setEndDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNamePattern() == null) ? 0 : getNamePattern().hashCode()); hashCode = prime * hashCode + ((getStates() == null) ? 0 : getStates().hashCode()); hashCode = prime * hashCode + ((getDurationRange() == null) ? 0 : getDurationRange().hashCode()); hashCode = prime * hashCode + ((getRulesPackageArns() == null) ? 0 : getRulesPackageArns().hashCode()); hashCode = prime * hashCode + ((getStartTimeRange() == null) ? 0 : getStartTimeRange().hashCode()); hashCode = prime * hashCode + ((getCompletionTimeRange() == null) ? 0 : getCompletionTimeRange().hashCode()); hashCode = prime * hashCode + ((getStateChangeTimeRange() == null) ? 0 : getStateChangeTimeRange().hashCode()); return hashCode; }
if (other.getStartTimeRange() == null ^ this.getStartTimeRange() == null) return false; if (other.getStartTimeRange() != null && other.getStartTimeRange().equals(this.getStartTimeRange()) == false) return false; if (other.getCompletionTimeRange() == null ^ this.getCompletionTimeRange() == null) return false; if (other.getCompletionTimeRange() != null && other.getCompletionTimeRange().equals(this.getCompletionTimeRange()) == false) return false; if (other.getStateChangeTimeRange() == null ^ this.getStateChangeTimeRange() == null) return false; if (other.getStateChangeTimeRange() != null && other.getStateChangeTimeRange().equals(this.getStateChangeTimeRange()) == false) return false; return true;
public TimestampRange unmarshall(JsonUnmarshallerContext context) throws Exception { TimestampRange timestampRange = new TimestampRange(); if (context.testExpression("beginDate", targetDepth)) { context.nextToken(); timestampRange.setBeginDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); timestampRange.setEndDate(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAgentIds() == null) ? 0 : getAgentIds().hashCode()); hashCode = prime * hashCode + ((getAutoScalingGroups() == null) ? 0 : getAutoScalingGroups().hashCode()); hashCode = prime * hashCode + ((getRuleNames() == null) ? 0 : getRuleNames().hashCode()); hashCode = prime * hashCode + ((getSeverities() == null) ? 0 : getSeverities().hashCode()); hashCode = prime * hashCode + ((getRulesPackageArns() == null) ? 0 : getRulesPackageArns().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); hashCode = prime * hashCode + ((getUserAttributes() == null) ? 0 : getUserAttributes().hashCode()); hashCode = prime * hashCode + ((getCreationTimeRange() == null) ? 0 : getCreationTimeRange().hashCode()); return hashCode; }
if (other.getCreationTimeRange() == null ^ this.getCreationTimeRange() == null) return false; if (other.getCreationTimeRange() != null && other.getCreationTimeRange().equals(this.getCreationTimeRange()) == false) return false; return true;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TimestampRange == false) return false; TimestampRange other = (TimestampRange) obj; if (other.getBeginDate() == null ^ this.getBeginDate() == null) return false; if (other.getBeginDate() != null && other.getBeginDate().equals(this.getBeginDate()) == false) return false; if (other.getEndDate() == null ^ this.getEndDate() == null) return false; if (other.getEndDate() != null && other.getEndDate().equals(this.getEndDate()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNamePattern() == null) ? 0 : getNamePattern().hashCode()); hashCode = prime * hashCode + ((getStates() == null) ? 0 : getStates().hashCode()); hashCode = prime * hashCode + ((getDurationRange() == null) ? 0 : getDurationRange().hashCode()); hashCode = prime * hashCode + ((getRulesPackageArns() == null) ? 0 : getRulesPackageArns().hashCode()); hashCode = prime * hashCode + ((getStartTimeRange() == null) ? 0 : getStartTimeRange().hashCode()); hashCode = prime * hashCode + ((getCompletionTimeRange() == null) ? 0 : getCompletionTimeRange().hashCode()); hashCode = prime * hashCode + ((getStateChangeTimeRange() == null) ? 0 : getStateChangeTimeRange().hashCode()); return hashCode; }
if (other.getStartTimeRange() == null ^ this.getStartTimeRange() == null) return false; if (other.getStartTimeRange() != null && other.getStartTimeRange().equals(this.getStartTimeRange()) == false) return false; if (other.getCompletionTimeRange() == null ^ this.getCompletionTimeRange() == null) return false; if (other.getCompletionTimeRange() != null && other.getCompletionTimeRange().equals(this.getCompletionTimeRange()) == false) return false; if (other.getStateChangeTimeRange() == null ^ this.getStateChangeTimeRange() == null) return false; if (other.getStateChangeTimeRange() != null && other.getStateChangeTimeRange().equals(this.getStateChangeTimeRange()) == false) return false; return true;
/** * <p> * The minimum value of the timestamp range. * </p> * * @param beginDate * The minimum value of the timestamp range. * @return Returns a reference to this object so that method calls can be chained together. */ public TimestampRange withBeginDate(java.util.Date beginDate) { setBeginDate(beginDate); return this; }
/** * <p> * The maximum value of the timestamp range. * </p> * * @param endDate * The maximum value of the timestamp range. * @return Returns a reference to this object so that method calls can be chained together. */ public TimestampRange withEndDate(java.util.Date endDate) { setEndDate(endDate); 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 (getBeginDate() != null) sb.append("BeginDate: ").append(getBeginDate()).append(","); if (getEndDate() != null) sb.append("EndDate: ").append(getEndDate()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAgentIds() == null) ? 0 : getAgentIds().hashCode()); hashCode = prime * hashCode + ((getAutoScalingGroups() == null) ? 0 : getAutoScalingGroups().hashCode()); hashCode = prime * hashCode + ((getRuleNames() == null) ? 0 : getRuleNames().hashCode()); hashCode = prime * hashCode + ((getSeverities() == null) ? 0 : getSeverities().hashCode()); hashCode = prime * hashCode + ((getRulesPackageArns() == null) ? 0 : getRulesPackageArns().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); hashCode = prime * hashCode + ((getUserAttributes() == null) ? 0 : getUserAttributes().hashCode()); hashCode = prime * hashCode + ((getCreationTimeRange() == null) ? 0 : getCreationTimeRange().hashCode()); return hashCode; }
if (other.getCreationTimeRange() == null ^ this.getCreationTimeRange() == null) return false; if (other.getCreationTimeRange() != null && other.getCreationTimeRange().equals(this.getCreationTimeRange()) == false) return false; return true;
/** * Marshall the given parameter object. */ public void marshall(TimestampRange timestampRange, ProtocolMarshaller protocolMarshaller) { if (timestampRange == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(timestampRange.getBeginDate(), BEGINDATE_BINDING); protocolMarshaller.marshall(timestampRange.getEndDate(), ENDDATE_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 + ((getBeginDate() == null) ? 0 : getBeginDate().hashCode()); hashCode = prime * hashCode + ((getEndDate() == null) ? 0 : getEndDate().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TimestampRange == false) return false; TimestampRange other = (TimestampRange) obj; if (other.getBeginDate() == null ^ this.getBeginDate() == null) return false; if (other.getBeginDate() != null && other.getBeginDate().equals(this.getBeginDate()) == false) return false; if (other.getEndDate() == null ^ this.getEndDate() == null) return false; if (other.getEndDate() != null && other.getEndDate().equals(this.getEndDate()) == false) return false; return true; }