@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EventSubscription == false) return false; EventSubscription other = (EventSubscription) obj; if (other.getEvent() == null ^ this.getEvent() == null) return false; if (other.getEvent() != null && other.getEvent().equals(this.getEvent()) == false) return false; if (other.getSubscribedAt() == null ^ this.getSubscribedAt() == null) return false; if (other.getSubscribedAt() != null && other.getSubscribedAt().equals(this.getSubscribedAt()) == 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 (getEvent() != null) sb.append("Event: ").append(getEvent()).append(","); if (getSubscribedAt() != null) sb.append("SubscribedAt: ").append(getSubscribedAt()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(EventSubscription eventSubscription, ProtocolMarshaller protocolMarshaller) { if (eventSubscription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(eventSubscription.getEvent(), EVENT_BINDING); protocolMarshaller.marshall(eventSubscription.getSubscribedAt(), SUBSCRIBEDAT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EventSubscription == false) return false; EventSubscription other = (EventSubscription) obj; if (other.getEvent() == null ^ this.getEvent() == null) return false; if (other.getEvent() != null && other.getEvent().equals(this.getEvent()) == false) return false; if (other.getSubscribedAt() == null ^ this.getSubscribedAt() == null) return false; if (other.getSubscribedAt() != null && other.getSubscribedAt().equals(this.getSubscribedAt()) == 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 (getEvent() != null) sb.append("Event: ").append(getEvent()).append(","); if (getSubscribedAt() != null) sb.append("SubscribedAt: ").append(getSubscribedAt()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(EventSubscription eventSubscription, ProtocolMarshaller protocolMarshaller) { if (eventSubscription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(eventSubscription.getEvent(), EVENT_BINDING); protocolMarshaller.marshall(eventSubscription.getSubscribedAt(), SUBSCRIBEDAT_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }