@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEvent() == null) ? 0 : getEvent().hashCode()); hashCode = prime * hashCode + ((getSubscribedAt() == null) ? 0 : getSubscribedAt().hashCode()); return hashCode; }
/** * <p> * The event for which Amazon Simple Notification Service (SNS) notifications are sent. * </p> * * @param event * The event for which Amazon Simple Notification Service (SNS) notifications are sent. * @return Returns a reference to this object so that method calls can be chained together. * @see InspectorEvent */ public EventSubscription withEvent(String event) { setEvent(event); return this; }
/** * <p> * The time at which <a>SubscribeToEvent</a> is called. * </p> * * @param subscribedAt * The time at which <a>SubscribeToEvent</a> is called. * @return Returns a reference to this object so that method calls can be chained together. */ public EventSubscription withSubscribedAt(java.util.Date subscribedAt) { setSubscribedAt(subscribedAt); return this; }
public EventSubscription unmarshall(JsonUnmarshallerContext context) throws Exception { EventSubscription eventSubscription = new EventSubscription(); if (context.testExpression("event", targetDepth)) { context.nextToken(); eventSubscription.setEvent(context.getUnmarshaller(String.class).unmarshall(context)); eventSubscription.setSubscribedAt(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
/** * <p> * The event for which Amazon Simple Notification Service (SNS) notifications are sent. * </p> * * @param event * The event for which Amazon Simple Notification Service (SNS) notifications are sent. * @see InspectorEvent */ public void setEvent(InspectorEvent event) { withEvent(event); }
public EventSubscription unmarshall(JsonUnmarshallerContext context) throws Exception { EventSubscription eventSubscription = new EventSubscription(); if (context.testExpression("event", targetDepth)) { context.nextToken(); eventSubscription.setEvent(context.getUnmarshaller(String.class).unmarshall(context)); eventSubscription.setSubscribedAt(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
/** * <p> * The event for which Amazon Simple Notification Service (SNS) notifications are sent. * </p> * * @param event * The event for which Amazon Simple Notification Service (SNS) notifications are sent. * @see InspectorEvent */ public void setEvent(InspectorEvent event) { withEvent(event); }
@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; }
/** * <p> * The time at which <a>SubscribeToEvent</a> is called. * </p> * * @param subscribedAt * The time at which <a>SubscribeToEvent</a> is called. * @return Returns a reference to this object so that method calls can be chained together. */ public EventSubscription withSubscribedAt(java.util.Date subscribedAt) { setSubscribedAt(subscribedAt); return this; }
/** * <p> * The event for which Amazon Simple Notification Service (SNS) notifications are sent. * </p> * * @param event * The event for which Amazon Simple Notification Service (SNS) notifications are sent. * @return Returns a reference to this object so that method calls can be chained together. * @see InspectorEvent */ public EventSubscription withEvent(String event) { setEvent(event); 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 (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 int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEvent() == null) ? 0 : getEvent().hashCode()); hashCode = prime * hashCode + ((getSubscribedAt() == null) ? 0 : getSubscribedAt().hashCode()); return hashCode; }
@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); } }