@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; }
/** * 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(); }
/** * 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; }
/** * 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 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; }
/** * 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); } }