@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); hashCode = prime * hashCode + ((getSmtpReplyCode() == null) ? 0 : getSmtpReplyCode().hashCode()); hashCode = prime * hashCode + ((getStatusCode() == null) ? 0 : getStatusCode().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getSender() == null) ? 0 : getSender().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 (getTopicArn() != null) sb.append("TopicArn: ").append(getTopicArn()).append(","); if (getSmtpReplyCode() != null) sb.append("SmtpReplyCode: ").append(getSmtpReplyCode()).append(","); if (getStatusCode() != null) sb.append("StatusCode: ").append(getStatusCode()).append(","); if (getMessage() != null) sb.append("Message: ").append(getMessage()).append(","); if (getSender() != null) sb.append("Sender: ").append(getSender()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); hashCode = prime * hashCode + ((getSmtpReplyCode() == null) ? 0 : getSmtpReplyCode().hashCode()); hashCode = prime * hashCode + ((getStatusCode() == null) ? 0 : getStatusCode().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getSender() == null) ? 0 : getSender().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 (getTopicArn() != null) sb.append("TopicArn: " + getTopicArn() + ","); if (getSmtpReplyCode() != null) sb.append("SmtpReplyCode: " + getSmtpReplyCode() + ","); if (getStatusCode() != null) sb.append("StatusCode: " + getStatusCode() + ","); if (getMessage() != null) sb.append("Message: " + getMessage() + ","); if (getSender() != null) sb.append("Sender: " + getSender()); sb.append("}"); return sb.toString(); }
public void marshall(BounceAction _bounceAction, Request<?> request, String _prefix) { String prefix; if (_bounceAction.getTopicArn() != null) { prefix = _prefix + "TopicArn"; String topicArn = _bounceAction.getTopicArn(); request.addParameter(prefix, StringUtils.fromString(topicArn)); } if (_bounceAction.getSmtpReplyCode() != null) { prefix = _prefix + "SmtpReplyCode"; String smtpReplyCode = _bounceAction.getSmtpReplyCode(); request.addParameter(prefix, StringUtils.fromString(smtpReplyCode)); } if (_bounceAction.getStatusCode() != null) { prefix = _prefix + "StatusCode"; String statusCode = _bounceAction.getStatusCode(); request.addParameter(prefix, StringUtils.fromString(statusCode)); } if (_bounceAction.getMessage() != null) { prefix = _prefix + "Message"; String message = _bounceAction.getMessage(); request.addParameter(prefix, StringUtils.fromString(message)); } if (_bounceAction.getSender() != null) { prefix = _prefix + "Sender"; String sender = _bounceAction.getSender(); request.addParameter(prefix, StringUtils.fromString(sender)); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTopicArn() == null) ? 0 : getTopicArn().hashCode()); hashCode = prime * hashCode + ((getSmtpReplyCode() == null) ? 0 : getSmtpReplyCode().hashCode()); hashCode = prime * hashCode + ((getStatusCode() == null) ? 0 : getStatusCode().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getSender() == null) ? 0 : getSender().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 (getTopicArn() != null) sb.append("TopicArn: ").append(getTopicArn()).append(","); if (getSmtpReplyCode() != null) sb.append("SmtpReplyCode: ").append(getSmtpReplyCode()).append(","); if (getStatusCode() != null) sb.append("StatusCode: ").append(getStatusCode()).append(","); if (getMessage() != null) sb.append("Message: ").append(getMessage()).append(","); if (getSender() != null) sb.append("Sender: ").append(getSender()); sb.append("}"); return sb.toString(); }