* The expiration period and time-to-live (TTL). *
*/ private Long exceptionTimeToLive; /** ** The Amazon Web Services account where you receive exception notifications. *
*/ private String notificationEndpoint; /** ** The subscription protocol to which exception notifications are posted. *
*/ private String subscriptionProtocol; /** ** The expiration period and time-to-live (TTL). *
* * @param exceptionTimeToLive * The expiration period and time-to-live (TTL). */ public void setExceptionTimeToLive(Long exceptionTimeToLive) { this.exceptionTimeToLive = exceptionTimeToLive; } /** ** The expiration period and time-to-live (TTL). *
* * @return The expiration period and time-to-live (TTL). */ public Long getExceptionTimeToLive() { return this.exceptionTimeToLive; } /** ** The expiration period and time-to-live (TTL). *
* * @param exceptionTimeToLive * The expiration period and time-to-live (TTL). * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataLakeExceptionSubscriptionResult withExceptionTimeToLive(Long exceptionTimeToLive) { setExceptionTimeToLive(exceptionTimeToLive); return this; } /** ** The Amazon Web Services account where you receive exception notifications. *
* * @param notificationEndpoint * The Amazon Web Services account where you receive exception notifications. */ public void setNotificationEndpoint(String notificationEndpoint) { this.notificationEndpoint = notificationEndpoint; } /** ** The Amazon Web Services account where you receive exception notifications. *
* * @return The Amazon Web Services account where you receive exception notifications. */ public String getNotificationEndpoint() { return this.notificationEndpoint; } /** ** The Amazon Web Services account where you receive exception notifications. *
* * @param notificationEndpoint * The Amazon Web Services account where you receive exception notifications. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataLakeExceptionSubscriptionResult withNotificationEndpoint(String notificationEndpoint) { setNotificationEndpoint(notificationEndpoint); return this; } /** ** The subscription protocol to which exception notifications are posted. *
* * @param subscriptionProtocol * The subscription protocol to which exception notifications are posted. */ public void setSubscriptionProtocol(String subscriptionProtocol) { this.subscriptionProtocol = subscriptionProtocol; } /** ** The subscription protocol to which exception notifications are posted. *
* * @return The subscription protocol to which exception notifications are posted. */ public String getSubscriptionProtocol() { return this.subscriptionProtocol; } /** ** The subscription protocol to which exception notifications are posted. *
* * @param subscriptionProtocol * The subscription protocol to which exception notifications are posted. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDataLakeExceptionSubscriptionResult withSubscriptionProtocol(String subscriptionProtocol) { setSubscriptionProtocol(subscriptionProtocol); 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 (getExceptionTimeToLive() != null) sb.append("ExceptionTimeToLive: ").append(getExceptionTimeToLive()).append(","); if (getNotificationEndpoint() != null) sb.append("NotificationEndpoint: ").append(getNotificationEndpoint()).append(","); if (getSubscriptionProtocol() != null) sb.append("SubscriptionProtocol: ").append(getSubscriptionProtocol()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetDataLakeExceptionSubscriptionResult == false) return false; GetDataLakeExceptionSubscriptionResult other = (GetDataLakeExceptionSubscriptionResult) obj; if (other.getExceptionTimeToLive() == null ^ this.getExceptionTimeToLive() == null) return false; if (other.getExceptionTimeToLive() != null && other.getExceptionTimeToLive().equals(this.getExceptionTimeToLive()) == false) return false; if (other.getNotificationEndpoint() == null ^ this.getNotificationEndpoint() == null) return false; if (other.getNotificationEndpoint() != null && other.getNotificationEndpoint().equals(this.getNotificationEndpoint()) == false) return false; if (other.getSubscriptionProtocol() == null ^ this.getSubscriptionProtocol() == null) return false; if (other.getSubscriptionProtocol() != null && other.getSubscriptionProtocol().equals(this.getSubscriptionProtocol()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getExceptionTimeToLive() == null) ? 0 : getExceptionTimeToLive().hashCode()); hashCode = prime * hashCode + ((getNotificationEndpoint() == null) ? 0 : getNotificationEndpoint().hashCode()); hashCode = prime * hashCode + ((getSubscriptionProtocol() == null) ? 0 : getSubscriptionProtocol().hashCode()); return hashCode; } @Override public GetDataLakeExceptionSubscriptionResult clone() { try { return (GetDataLakeExceptionSubscriptionResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }