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