@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getIdentity() == null) ? 0 : getIdentity().hashCode()); hashCode = prime * hashCode + ((getNotificationType() == null) ? 0 : getNotificationType().hashCode()); hashCode = prime * hashCode + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); return hashCode; }
/** * <p> * Sets whether Amazon SES includes the original email headers in Amazon SNS notifications of the specified * notification type. A value of <code>true</code> specifies that Amazon SES will include headers in notifications, * and a value of <code>false</code> specifies that Amazon SES will not include headers in notifications. * </p> * <p> * This value can only be set when <code>NotificationType</code> is already set to use a particular Amazon SNS * topic. * </p> * * @param enabled * Sets whether Amazon SES includes the original email headers in Amazon SNS notifications of the specified * notification type. A value of <code>true</code> specifies that Amazon SES will include headers in * notifications, and a value of <code>false</code> specifies that Amazon SES will not include headers in * notifications.</p> * <p> * This value can only be set when <code>NotificationType</code> is already set to use a particular Amazon * SNS topic. * @return Returns a reference to this object so that method calls can be chained together. */ public SetIdentityHeadersInNotificationsEnabledRequest withEnabled(Boolean enabled) { setEnabled(enabled); return this; }
/** * <p> * The identity for which to enable or disable headers in notifications. Examples: <code>user@example.com</code>, * <code>example.com</code>. * </p> * * @param identity * The identity for which to enable or disable headers in notifications. Examples: * <code>user@example.com</code>, <code>example.com</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public SetIdentityHeadersInNotificationsEnabledRequest withIdentity(String identity) { setIdentity(identity); return this; }
/** * <p> * The notification type for which to enable or disable headers in notifications. * </p> * * @param notificationType * The notification type for which to enable or disable headers in notifications. * @see NotificationType */ public void setNotificationType(NotificationType notificationType) { withNotificationType(notificationType); }
/** * <p> * The notification type for which to enable or disable headers in notifications. * </p> * * @param notificationType * The notification type for which to enable or disable headers in notifications. * @return Returns a reference to this object so that method calls can be chained together. * @see NotificationType */ public SetIdentityHeadersInNotificationsEnabledRequest withNotificationType(String notificationType) { setNotificationType(notificationType); return this; }
/** * <p> * The notification type for which to enable or disable headers in notifications. * </p> * * @param notificationType * The notification type for which to enable or disable headers in notifications. * @see NotificationType */ public void setNotificationType(NotificationType notificationType) { withNotificationType(notificationType); }
/** * <p> * The notification type for which to enable or disable headers in notifications. * </p> * * @param notificationType * The notification type for which to enable or disable headers in notifications. * @return Returns a reference to this object so that method calls can be chained together. * @see NotificationType */ public SetIdentityHeadersInNotificationsEnabledRequest withNotificationType(String notificationType) { setNotificationType(notificationType); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SetIdentityHeadersInNotificationsEnabledRequest == false) return false; SetIdentityHeadersInNotificationsEnabledRequest other = (SetIdentityHeadersInNotificationsEnabledRequest) obj; if (other.getIdentity() == null ^ this.getIdentity() == null) return false; if (other.getIdentity() != null && other.getIdentity().equals(this.getIdentity()) == false) return false; if (other.getNotificationType() == null ^ this.getNotificationType() == null) return false; if (other.getNotificationType() != null && other.getNotificationType().equals(this.getNotificationType()) == false) return false; if (other.getEnabled() == null ^ this.getEnabled() == null) return false; if (other.getEnabled() != null && other.getEnabled().equals(this.getEnabled()) == false) return false; return true; }
/** * <p> * The identity for which to enable or disable headers in notifications. Examples: <code>user@example.com</code>, * <code>example.com</code>. * </p> * * @param identity * The identity for which to enable or disable headers in notifications. Examples: * <code>user@example.com</code>, <code>example.com</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public SetIdentityHeadersInNotificationsEnabledRequest withIdentity(String identity) { setIdentity(identity); return this; }
/** * <p> * Sets whether Amazon SES includes the original email headers in Amazon SNS notifications of the specified * notification type. A value of <code>true</code> specifies that Amazon SES will include headers in notifications, * and a value of <code>false</code> specifies that Amazon SES will not include headers in notifications. * </p> * <p> * This value can only be set when <code>NotificationType</code> is already set to use a particular Amazon SNS * topic. * </p> * * @param enabled * Sets whether Amazon SES includes the original email headers in Amazon SNS notifications of the specified * notification type. A value of <code>true</code> specifies that Amazon SES will include headers in * notifications, and a value of <code>false</code> specifies that Amazon SES will not include headers in * notifications.</p> * <p> * This value can only be set when <code>NotificationType</code> is already set to use a particular Amazon * SNS topic. * @return Returns a reference to this object so that method calls can be chained together. */ public SetIdentityHeadersInNotificationsEnabledRequest withEnabled(Boolean enabled) { setEnabled(enabled); 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 (getIdentity() != null) sb.append("Identity: ").append(getIdentity()).append(","); if (getNotificationType() != null) sb.append("NotificationType: ").append(getNotificationType()).append(","); if (getEnabled() != null) sb.append("Enabled: ").append(getEnabled()); sb.append("}"); return sb.toString(); }
public Request<SetIdentityHeadersInNotificationsEnabledRequest> marshall( SetIdentityHeadersInNotificationsEnabledRequest setIdentityHeadersInNotificationsEnabledRequest) { if (setIdentityHeadersInNotificationsEnabledRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<SetIdentityHeadersInNotificationsEnabledRequest> request = new DefaultRequest<SetIdentityHeadersInNotificationsEnabledRequest>( setIdentityHeadersInNotificationsEnabledRequest, "AmazonSimpleEmailService"); request.addParameter("Action", "SetIdentityHeadersInNotificationsEnabled"); request.addParameter("Version", "2010-12-01"); request.setHttpMethod(HttpMethodName.POST); if (setIdentityHeadersInNotificationsEnabledRequest.getIdentity() != null) { request.addParameter("Identity", StringUtils.fromString(setIdentityHeadersInNotificationsEnabledRequest.getIdentity())); } if (setIdentityHeadersInNotificationsEnabledRequest.getNotificationType() != null) { request.addParameter("NotificationType", StringUtils.fromString(setIdentityHeadersInNotificationsEnabledRequest.getNotificationType())); } if (setIdentityHeadersInNotificationsEnabledRequest.getEnabled() != null) { request.addParameter("Enabled", StringUtils.fromBoolean(setIdentityHeadersInNotificationsEnabledRequest.getEnabled())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getIdentity() == null) ? 0 : getIdentity().hashCode()); hashCode = prime * hashCode + ((getNotificationType() == null) ? 0 : getNotificationType().hashCode()); hashCode = prime * hashCode + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SetIdentityHeadersInNotificationsEnabledRequest == false) return false; SetIdentityHeadersInNotificationsEnabledRequest other = (SetIdentityHeadersInNotificationsEnabledRequest) obj; if (other.getIdentity() == null ^ this.getIdentity() == null) return false; if (other.getIdentity() != null && other.getIdentity().equals(this.getIdentity()) == false) return false; if (other.getNotificationType() == null ^ this.getNotificationType() == null) return false; if (other.getNotificationType() != null && other.getNotificationType().equals(this.getNotificationType()) == false) return false; if (other.getEnabled() == null ^ this.getEnabled() == null) return false; if (other.getEnabled() != null && other.getEnabled().equals(this.getEnabled()) == false) return false; return true; } }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getIdentity() != null) sb.append("Identity: " + getIdentity() + ","); if (getNotificationType() != null) sb.append("NotificationType: " + getNotificationType() + ","); if (getEnabled() != null) sb.append("Enabled: " + getEnabled()); sb.append("}"); return sb.toString(); }
if (setIdentityHeadersInNotificationsEnabledRequest.getIdentity() != null) { prefix = "Identity"; String identity = setIdentityHeadersInNotificationsEnabledRequest.getIdentity(); request.addParameter(prefix, StringUtils.fromString(identity)); if (setIdentityHeadersInNotificationsEnabledRequest.getNotificationType() != null) { prefix = "NotificationType"; String notificationType = setIdentityHeadersInNotificationsEnabledRequest .getNotificationType(); request.addParameter(prefix, StringUtils.fromString(notificationType)); if (setIdentityHeadersInNotificationsEnabledRequest.getEnabled() != null) { prefix = "Enabled"; Boolean enabled = setIdentityHeadersInNotificationsEnabledRequest.getEnabled(); request.addParameter(prefix, StringUtils.fromBoolean(enabled));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getIdentity() == null) ? 0 : getIdentity().hashCode()); hashCode = prime * hashCode + ((getNotificationType() == null) ? 0 : getNotificationType().hashCode()); hashCode = prime * hashCode + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SetIdentityHeadersInNotificationsEnabledRequest == false) return false; SetIdentityHeadersInNotificationsEnabledRequest other = (SetIdentityHeadersInNotificationsEnabledRequest) obj; if (other.getIdentity() == null ^ this.getIdentity() == null) return false; if (other.getIdentity() != null && other.getIdentity().equals(this.getIdentity()) == false) return false; if (other.getNotificationType() == null ^ this.getNotificationType() == null) return false; if (other.getNotificationType() != null && other.getNotificationType().equals(this.getNotificationType()) == false) return false; if (other.getEnabled() == null ^ this.getEnabled() == null) return false; if (other.getEnabled() != null && other.getEnabled().equals(this.getEnabled()) == 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 (getIdentity() != null) sb.append("Identity: ").append(getIdentity()).append(","); if (getNotificationType() != null) sb.append("NotificationType: ").append(getNotificationType()).append(","); if (getEnabled() != null) sb.append("Enabled: ").append(getEnabled()); sb.append("}"); return sb.toString(); }
public Request<SetIdentityHeadersInNotificationsEnabledRequest> marshall( SetIdentityHeadersInNotificationsEnabledRequest setIdentityHeadersInNotificationsEnabledRequest) { if (setIdentityHeadersInNotificationsEnabledRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<SetIdentityHeadersInNotificationsEnabledRequest> request = new DefaultRequest<SetIdentityHeadersInNotificationsEnabledRequest>( setIdentityHeadersInNotificationsEnabledRequest, "AmazonSimpleEmailService"); request.addParameter("Action", "SetIdentityHeadersInNotificationsEnabled"); request.addParameter("Version", "2010-12-01"); request.setHttpMethod(HttpMethodName.POST); if (setIdentityHeadersInNotificationsEnabledRequest.getIdentity() != null) { request.addParameter("Identity", StringUtils.fromString(setIdentityHeadersInNotificationsEnabledRequest.getIdentity())); } if (setIdentityHeadersInNotificationsEnabledRequest.getNotificationType() != null) { request.addParameter("NotificationType", StringUtils.fromString(setIdentityHeadersInNotificationsEnabledRequest.getNotificationType())); } if (setIdentityHeadersInNotificationsEnabledRequest.getEnabled() != null) { request.addParameter("Enabled", StringUtils.fromBoolean(setIdentityHeadersInNotificationsEnabledRequest.getEnabled())); } return request; }