@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; }
/** * <p> * Adds a header to the received email. * </p> * * @param addHeaderAction * Adds a header to the received email. * @return Returns a reference to this object so that method calls can be chained together. */ public ReceiptAction withAddHeaderAction(AddHeaderAction addHeaderAction) { setAddHeaderAction(addHeaderAction); return this; }
/** * <p> * Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification * to Amazon Simple Notification Service (Amazon SNS). * </p> * * @param bounceAction * Rejects the received email by returning a bounce response to the sender and, optionally, publishes a * notification to Amazon Simple Notification Service (Amazon SNS). * @return Returns a reference to this object so that method calls can be chained together. */ public ReceiptAction withBounceAction(BounceAction bounceAction) { setBounceAction(bounceAction); return this; }
public ReceiptAction unmarshall(StaxUnmarshallerContext context) throws Exception { ReceiptAction receiptAction = new ReceiptAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; receiptAction.setS3Action(S3ActionStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptAction.setBounceAction(BounceActionStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptAction.setWorkmailAction(WorkmailActionStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptAction.setLambdaAction(LambdaActionStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptAction.setStopAction(StopActionStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptAction.setAddHeaderAction(AddHeaderActionStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptAction.setSNSAction(SNSActionStaxUnmarshaller.getInstance().unmarshall(context)); continue;
public ReceiptAction unmarshall(StaxUnmarshallerContext context) throws Exception { ReceiptAction receiptAction = new ReceiptAction(); receiptAction.setS3Action(S3ActionStaxUnmarshaller.getInstance().unmarshall( context)); continue; receiptAction.setBounceAction(BounceActionStaxUnmarshaller.getInstance() .unmarshall(context)); continue; receiptAction.setWorkmailAction(WorkmailActionStaxUnmarshaller.getInstance() .unmarshall(context)); continue; receiptAction.setLambdaAction(LambdaActionStaxUnmarshaller.getInstance() .unmarshall(context)); continue; receiptAction.setStopAction(StopActionStaxUnmarshaller.getInstance() .unmarshall(context)); continue; receiptAction.setAddHeaderAction(AddHeaderActionStaxUnmarshaller.getInstance() .unmarshall(context)); continue; receiptAction.setSNSAction(SNSActionStaxUnmarshaller.getInstance().unmarshall( context)); continue;
return false; ReceiptAction other = (ReceiptAction) obj; if (other.getS3Action() == null ^ this.getS3Action() == null) return false; if (other.getS3Action() != null && other.getS3Action().equals(this.getS3Action()) == false) return false; 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) return false; if (other.getWorkmailAction() != null && other.getWorkmailAction().equals(this.getWorkmailAction()) == false) return false; if (other.getLambdaAction() == null ^ this.getLambdaAction() == null) return false; if (other.getLambdaAction() != null && other.getLambdaAction().equals(this.getLambdaAction()) == false) return false; if (other.getStopAction() == null ^ this.getStopAction() == null) return false; if (other.getStopAction() != null && other.getStopAction().equals(this.getStopAction()) == false) return false; if (other.getAddHeaderAction() == null ^ this.getAddHeaderAction() == null) return false; if (other.getAddHeaderAction() != null && other.getAddHeaderAction().equals(this.getAddHeaderAction()) == false) return false; if (other.getSNSAction() == null ^ this.getSNSAction() == null) return false; if (other.getSNSAction() != null && other.getSNSAction().equals(this.getSNSAction()) == false)
public ReceiptAction unmarshall(StaxUnmarshallerContext context) throws Exception { ReceiptAction receiptAction = new ReceiptAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; receiptAction.setS3Action(S3ActionStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptAction.setBounceAction(BounceActionStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptAction.setWorkmailAction(WorkmailActionStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptAction.setLambdaAction(LambdaActionStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptAction.setStopAction(StopActionStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptAction.setAddHeaderAction(AddHeaderActionStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptAction.setSNSAction(SNSActionStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * Adds a header to the received email. * </p> * * @param addHeaderAction * Adds a header to the received email. * @return Returns a reference to this object so that method calls can be chained together. */ public ReceiptAction withAddHeaderAction(AddHeaderAction addHeaderAction) { setAddHeaderAction(addHeaderAction); return this; }
/** * <p> * Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification * to Amazon Simple Notification Service (Amazon SNS). * </p> * * @param bounceAction * Rejects the received email by returning a bounce response to the sender and, optionally, publishes a * notification to Amazon Simple Notification Service (Amazon SNS). * @return Returns a reference to this object so that method calls can be chained together. */ public ReceiptAction withBounceAction(BounceAction bounceAction) { setBounceAction(bounceAction); 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 (getS3Action() != null) sb.append("S3Action: ").append(getS3Action()).append(","); if (getBounceAction() != null) sb.append("BounceAction: ").append(getBounceAction()).append(","); if (getWorkmailAction() != null) sb.append("WorkmailAction: ").append(getWorkmailAction()).append(","); if (getLambdaAction() != null) sb.append("LambdaAction: ").append(getLambdaAction()).append(","); if (getStopAction() != null) sb.append("StopAction: ").append(getStopAction()).append(","); if (getAddHeaderAction() != null) sb.append("AddHeaderAction: ").append(getAddHeaderAction()).append(","); if (getSNSAction() != null) sb.append("SNSAction: ").append(getSNSAction()); sb.append("}"); return sb.toString(); }
@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; }
/** * 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 (getS3Action() != null) sb.append("S3Action: " + getS3Action() + ","); if (getBounceAction() != null) sb.append("BounceAction: " + getBounceAction() + ","); if (getWorkmailAction() != null) sb.append("WorkmailAction: " + getWorkmailAction() + ","); if (getLambdaAction() != null) sb.append("LambdaAction: " + getLambdaAction() + ","); if (getStopAction() != null) sb.append("StopAction: " + getStopAction() + ","); if (getAddHeaderAction() != null) sb.append("AddHeaderAction: " + getAddHeaderAction() + ","); if (getSNSAction() != null) sb.append("SNSAction: " + getSNSAction()); sb.append("}"); return sb.toString(); }
if (other.getS3Action() == null ^ this.getS3Action() == null) return false; if (other.getS3Action() != null && other.getS3Action().equals(this.getS3Action()) == false) return false; 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) return false; if (other.getWorkmailAction() != null && other.getWorkmailAction().equals(this.getWorkmailAction()) == false) return false; if (other.getLambdaAction() == null ^ this.getLambdaAction() == null) return false; if (other.getLambdaAction() != null && other.getLambdaAction().equals(this.getLambdaAction()) == false) return false; if (other.getStopAction() == null ^ this.getStopAction() == null) return false; if (other.getStopAction() != null && other.getStopAction().equals(this.getStopAction()) == false) return false; if (other.getAddHeaderAction() == null ^ this.getAddHeaderAction() == null) return false; if (other.getAddHeaderAction() != null && other.getAddHeaderAction().equals(this.getAddHeaderAction()) == false) return false;
S3Action s3Action = actionsListValue.getS3Action(); if (s3Action != null) { BounceAction bounceAction = actionsListValue.getBounceAction(); if (bounceAction != null) { WorkmailAction workmailAction = actionsListValue.getWorkmailAction(); if (workmailAction != null) { LambdaAction lambdaAction = actionsListValue.getLambdaAction(); if (lambdaAction != null) { StopAction stopAction = actionsListValue.getStopAction(); if (stopAction != null) { AddHeaderAction addHeaderAction = actionsListValue.getAddHeaderAction(); if (addHeaderAction != null) { SNSAction sNSAction = actionsListValue.getSNSAction(); if (sNSAction != null) {
S3Action s3Action = actionsListValue.getS3Action(); if (s3Action != null) { BounceAction bounceAction = actionsListValue.getBounceAction(); if (bounceAction != null) { WorkmailAction workmailAction = actionsListValue.getWorkmailAction(); if (workmailAction != null) { LambdaAction lambdaAction = actionsListValue.getLambdaAction(); if (lambdaAction != null) { StopAction stopAction = actionsListValue.getStopAction(); if (stopAction != null) { AddHeaderAction addHeaderAction = actionsListValue.getAddHeaderAction(); if (addHeaderAction != null) { SNSAction sNSAction = actionsListValue.getSNSAction(); if (sNSAction != null) {
public void marshall(ReceiptAction _receiptAction, Request<?> request, String _prefix) { String prefix; if (_receiptAction.getS3Action() != null) { prefix = _prefix + "S3Action"; S3Action s3Action = _receiptAction.getS3Action(); S3ActionStaxMarshaller.getInstance().marshall(s3Action, request, prefix + "."); if (_receiptAction.getBounceAction() != null) { prefix = _prefix + "BounceAction"; BounceAction bounceAction = _receiptAction.getBounceAction(); BounceActionStaxMarshaller.getInstance().marshall(bounceAction, request, prefix + "."); if (_receiptAction.getWorkmailAction() != null) { prefix = _prefix + "WorkmailAction"; WorkmailAction workmailAction = _receiptAction.getWorkmailAction(); WorkmailActionStaxMarshaller.getInstance().marshall(workmailAction, request, prefix + "."); if (_receiptAction.getLambdaAction() != null) { prefix = _prefix + "LambdaAction"; LambdaAction lambdaAction = _receiptAction.getLambdaAction(); LambdaActionStaxMarshaller.getInstance().marshall(lambdaAction, request, prefix + "."); if (_receiptAction.getStopAction() != null) { prefix = _prefix + "StopAction"; StopAction stopAction = _receiptAction.getStopAction(); StopActionStaxMarshaller.getInstance().marshall(stopAction, request, prefix + "."); if (_receiptAction.getAddHeaderAction() != null) { prefix = _prefix + "AddHeaderAction";
@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; ReceiptAction other = (ReceiptAction) obj; if (other.getS3Action() == null ^ this.getS3Action() == null) return false; if (other.getS3Action() != null && other.getS3Action().equals(this.getS3Action()) == false) return false; 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) return false; if (other.getWorkmailAction() != null && other.getWorkmailAction().equals(this.getWorkmailAction()) == false) return false; if (other.getLambdaAction() == null ^ this.getLambdaAction() == null) return false; if (other.getLambdaAction() != null && other.getLambdaAction().equals(this.getLambdaAction()) == false) return false; if (other.getStopAction() == null ^ this.getStopAction() == null) return false; if (other.getStopAction() != null && other.getStopAction().equals(this.getStopAction()) == false) return false; if (other.getAddHeaderAction() == null ^ this.getAddHeaderAction() == null) return false; if (other.getAddHeaderAction() != null && other.getAddHeaderAction().equals(this.getAddHeaderAction()) == false) return false; if (other.getSNSAction() == null ^ this.getSNSAction() == null) return false; if (other.getSNSAction() != null && other.getSNSAction().equals(this.getSNSAction()) == false)
/** * 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 (getS3Action() != null) sb.append("S3Action: ").append(getS3Action()).append(","); if (getBounceAction() != null) sb.append("BounceAction: ").append(getBounceAction()).append(","); if (getWorkmailAction() != null) sb.append("WorkmailAction: ").append(getWorkmailAction()).append(","); if (getLambdaAction() != null) sb.append("LambdaAction: ").append(getLambdaAction()).append(","); if (getStopAction() != null) sb.append("StopAction: ").append(getStopAction()).append(","); if (getAddHeaderAction() != null) sb.append("AddHeaderAction: ").append(getAddHeaderAction()).append(","); if (getSNSAction() != null) sb.append("SNSAction: ").append(getSNSAction()); sb.append("}"); return sb.toString(); }
S3Action s3Action = actionsListValue.getS3Action(); if (s3Action != null) { BounceAction bounceAction = actionsListValue.getBounceAction(); if (bounceAction != null) { WorkmailAction workmailAction = actionsListValue.getWorkmailAction(); if (workmailAction != null) { LambdaAction lambdaAction = actionsListValue.getLambdaAction(); if (lambdaAction != null) { StopAction stopAction = actionsListValue.getStopAction(); if (stopAction != null) { AddHeaderAction addHeaderAction = actionsListValue.getAddHeaderAction(); if (addHeaderAction != null) { SNSAction sNSAction = actionsListValue.getSNSAction(); if (sNSAction != null) {