@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; }
/** * <p> * Human-readable text to include in the bounce message. * </p> * * @param message * Human-readable text to include in the bounce message. * @return Returns a reference to this object so that method calls can be chained together. */ public BounceAction withMessage(String message) { setMessage(message); return this; }
/** * <p> * The email address of the sender of the bounced email. This is the address from which the bounce message will be * sent. * </p> * * @param sender * The email address of the sender of the bounced email. This is the address from which the bounce message * will be sent. * @return Returns a reference to this object so that method calls can be chained together. */ public BounceAction withSender(String sender) { setSender(sender); return this; }
public BounceAction unmarshall(StaxUnmarshallerContext context) throws Exception { BounceAction bounceAction = new BounceAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; bounceAction.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; bounceAction.setSmtpReplyCode(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; bounceAction.setStatusCode(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; bounceAction.setMessage(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; bounceAction.setSender(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3Action() == null) ? 0 : getS3Action().hashCode()); hashCode = prime * hashCode + ((getBounceAction() == null) ? 0 : getBounceAction().hashCode()); hashCode = prime * hashCode + ((getWorkmailAction() == null) ? 0 : getWorkmailAction().hashCode()); hashCode = prime * hashCode + ((getLambdaAction() == null) ? 0 : getLambdaAction().hashCode()); hashCode = prime * hashCode + ((getStopAction() == null) ? 0 : getStopAction().hashCode()); hashCode = prime * hashCode + ((getAddHeaderAction() == null) ? 0 : getAddHeaderAction().hashCode()); hashCode = prime * hashCode + ((getSNSAction() == null) ? 0 : getSNSAction().hashCode()); return hashCode; }
if (other.getBounceAction() == null ^ this.getBounceAction() == null) return false; if (other.getBounceAction() != null && other.getBounceAction().equals(this.getBounceAction()) == false) return false; if (other.getWorkmailAction() == null ^ this.getWorkmailAction() == null)
public BounceAction unmarshall(StaxUnmarshallerContext context) throws Exception { BounceAction bounceAction = new BounceAction(); bounceAction.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall( context)); continue; bounceAction.setSmtpReplyCode(StringStaxUnmarshaller.getInstance().unmarshall( context)); continue; bounceAction.setStatusCode(StringStaxUnmarshaller.getInstance().unmarshall( context)); continue; bounceAction.setMessage(StringStaxUnmarshaller.getInstance() .unmarshall(context)); continue; .setSender(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3Action() == null) ? 0 : getS3Action().hashCode()); hashCode = prime * hashCode + ((getBounceAction() == null) ? 0 : getBounceAction().hashCode()); hashCode = prime * hashCode + ((getWorkmailAction() == null) ? 0 : getWorkmailAction().hashCode()); hashCode = prime * hashCode + ((getLambdaAction() == null) ? 0 : getLambdaAction().hashCode()); hashCode = prime * hashCode + ((getStopAction() == null) ? 0 : getStopAction().hashCode()); hashCode = prime * hashCode + ((getAddHeaderAction() == null) ? 0 : getAddHeaderAction().hashCode()); hashCode = prime * hashCode + ((getSNSAction() == null) ? 0 : getSNSAction().hashCode()); return hashCode; }
return false; if (other.getBounceAction() != null && other.getBounceAction().equals(this.getBounceAction()) == false) return false; if (other.getWorkmailAction() == null ^ this.getWorkmailAction() == null)
return false; BounceAction other = (BounceAction) obj; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; if (other.getSmtpReplyCode() == null ^ this.getSmtpReplyCode() == null) return false; if (other.getSmtpReplyCode() != null && other.getSmtpReplyCode().equals(this.getSmtpReplyCode()) == false) return false; if (other.getStatusCode() == null ^ this.getStatusCode() == null) return false; if (other.getStatusCode() != null && other.getStatusCode().equals(this.getStatusCode()) == false) return false; if (other.getMessage() == null ^ this.getMessage() == null) return false; if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) return false; if (other.getSender() == null ^ this.getSender() == null) return false; if (other.getSender() != null && other.getSender().equals(this.getSender()) == false) return false; return true;
public BounceAction unmarshall(StaxUnmarshallerContext context) throws Exception { BounceAction bounceAction = new BounceAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; bounceAction.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; bounceAction.setSmtpReplyCode(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; bounceAction.setStatusCode(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; bounceAction.setMessage(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; bounceAction.setSender(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3Action() == null) ? 0 : getS3Action().hashCode()); hashCode = prime * hashCode + ((getBounceAction() == null) ? 0 : getBounceAction().hashCode()); hashCode = prime * hashCode + ((getWorkmailAction() == null) ? 0 : getWorkmailAction().hashCode()); hashCode = prime * hashCode + ((getLambdaAction() == null) ? 0 : getLambdaAction().hashCode()); hashCode = prime * hashCode + ((getStopAction() == null) ? 0 : getStopAction().hashCode()); hashCode = prime * hashCode + ((getAddHeaderAction() == null) ? 0 : getAddHeaderAction().hashCode()); hashCode = prime * hashCode + ((getSNSAction() == null) ? 0 : getSNSAction().hashCode()); return hashCode; }
if (other.getBounceAction() == null ^ this.getBounceAction() == null) return false; if (other.getBounceAction() != null && other.getBounceAction().equals(this.getBounceAction()) == false) return false; if (other.getWorkmailAction() == null ^ this.getWorkmailAction() == null)
/** * <p> * Human-readable text to include in the bounce message. * </p> * * @param message * Human-readable text to include in the bounce message. * @return Returns a reference to this object so that method calls can be chained together. */ public BounceAction withMessage(String message) { setMessage(message); return this; }
/** * <p> * The email address of the sender of the bounced email. This is the address from which the bounce message will be * sent. * </p> * * @param sender * The email address of the sender of the bounced email. This is the address from which the bounce message * will be sent. * @return Returns a reference to this object so that method calls can be chained together. */ public BounceAction withSender(String sender) { setSender(sender); 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 (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; }
BounceAction other = (BounceAction) obj; if (other.getTopicArn() == null ^ this.getTopicArn() == null) return false; if (other.getTopicArn() != null && other.getTopicArn().equals(this.getTopicArn()) == false) return false; if (other.getSmtpReplyCode() == null ^ this.getSmtpReplyCode() == null) return false; if (other.getSmtpReplyCode() != null && other.getSmtpReplyCode().equals(this.getSmtpReplyCode()) == false) return false; if (other.getStatusCode() == null ^ this.getStatusCode() == null) return false; if (other.getStatusCode() != null && other.getStatusCode().equals(this.getStatusCode()) == false) return false; if (other.getMessage() == null ^ this.getMessage() == null) return false; if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) return false; if (other.getSender() == null ^ this.getSender() == null) return false; if (other.getSender() != null && other.getSender().equals(this.getSender()) == 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 (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(); }
if (bounceAction != null) { if (bounceAction.getTopicArn() != null) { request.addParameter("Rule.Actions.member." + actionsListIndex + ".BounceAction.TopicArn", StringUtils.fromString(bounceAction.getTopicArn())); if (bounceAction.getSmtpReplyCode() != null) { request.addParameter("Rule.Actions.member." + actionsListIndex + ".BounceAction.SmtpReplyCode", StringUtils.fromString(bounceAction.getSmtpReplyCode())); if (bounceAction.getStatusCode() != null) { request.addParameter("Rule.Actions.member." + actionsListIndex + ".BounceAction.StatusCode", StringUtils.fromString(bounceAction.getStatusCode())); if (bounceAction.getMessage() != null) { request.addParameter("Rule.Actions.member." + actionsListIndex + ".BounceAction.Message", StringUtils.fromString(bounceAction.getMessage())); if (bounceAction.getSender() != null) { request.addParameter("Rule.Actions.member." + actionsListIndex + ".BounceAction.Sender", StringUtils.fromString(bounceAction.getSender()));