@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRecipient() == null) ? 0 : getRecipient().hashCode()); hashCode = prime * hashCode + ((getRecipientArn() == null) ? 0 : getRecipientArn().hashCode()); hashCode = prime * hashCode + ((getBounceType() == null) ? 0 : getBounceType().hashCode()); hashCode = prime * hashCode + ((getRecipientDsnFields() == null) ? 0 : getRecipientDsnFields().hashCode()); return hashCode; }
/** * <p> * The reason for the bounce. You must provide either this parameter or <code>RecipientDsnFields</code>. * </p> * * @param bounceType * The reason for the bounce. You must provide either this parameter or <code>RecipientDsnFields</code>. * @return Returns a reference to this object so that method calls can be chained together. * @see BounceType */ public BouncedRecipientInfo withBounceType(String bounceType) { setBounceType(bounceType); return this; }
/** * <p> * The email address of the recipient of the bounced email. * </p> * * @param recipient * The email address of the recipient of the bounced email. * @return Returns a reference to this object so that method calls can be chained together. */ public BouncedRecipientInfo withRecipient(String recipient) { setRecipient(recipient); return this; }
public BouncedRecipientInfo unmarshall(StaxUnmarshallerContext context) throws Exception { BouncedRecipientInfo bouncedRecipientInfo = new BouncedRecipientInfo(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; bouncedRecipientInfo.setRecipient(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; bouncedRecipientInfo.setRecipientArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; bouncedRecipientInfo.setBounceType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; bouncedRecipientInfo.setRecipientDsnFields(RecipientDsnFieldsStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * Recipient-related DSN fields, most of which would normally be filled in automatically when provided with a * <code>BounceType</code>. You must provide either this parameter or <code>BounceType</code>. * </p> * * @param recipientDsnFields * Recipient-related DSN fields, most of which would normally be filled in automatically when provided with a * <code>BounceType</code>. You must provide either this parameter or <code>BounceType</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public BouncedRecipientInfo withRecipientDsnFields(RecipientDsnFields recipientDsnFields) { setRecipientDsnFields(recipientDsnFields); return this; }
/** * <p> * This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the * sending authorization policy that permits you to receive email for the recipient of the bounced email. For more * information about sending authorization, see the <a * href="http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer * Guide</a>. * </p> * * @param recipientArn * This parameter is used only for sending authorization. It is the ARN of the identity that is associated * with the sending authorization policy that permits you to receive email for the recipient of the bounced * email. For more information about sending authorization, see the <a * href="http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES * Developer Guide</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public BouncedRecipientInfo withRecipientArn(String recipientArn) { setRecipientArn(recipientArn); return this; }
/** * <p> * The reason for the bounce. You must provide either this parameter or <code>RecipientDsnFields</code>. * </p> * * @param bounceType * The reason for the bounce. You must provide either this parameter or <code>RecipientDsnFields</code>. * @see BounceType */ public void setBounceType(BounceType bounceType) { withBounceType(bounceType); }
public BouncedRecipientInfo unmarshall(StaxUnmarshallerContext context) throws Exception { BouncedRecipientInfo bouncedRecipientInfo = new BouncedRecipientInfo(); bouncedRecipientInfo.setRecipient(StringStaxUnmarshaller.getInstance() .unmarshall(context)); continue; bouncedRecipientInfo.setRecipientArn(StringStaxUnmarshaller.getInstance() .unmarshall(context)); continue; bouncedRecipientInfo.setBounceType(StringStaxUnmarshaller.getInstance() .unmarshall(context)); continue; bouncedRecipientInfo.setRecipientDsnFields(RecipientDsnFieldsStaxUnmarshaller .getInstance().unmarshall(context)); continue;
/** * <p> * Recipient-related DSN fields, most of which would normally be filled in automatically when provided with a * <code>BounceType</code>. You must provide either this parameter or <code>BounceType</code>. * </p> * * @param recipientDsnFields * Recipient-related DSN fields, most of which would normally be filled in automatically when provided with a * <code>BounceType</code>. You must provide either this parameter or <code>BounceType</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public BouncedRecipientInfo withRecipientDsnFields(RecipientDsnFields recipientDsnFields) { setRecipientDsnFields(recipientDsnFields); return this; }
/** * <p> * This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the * sending authorization policy that permits you to receive email for the recipient of the bounced email. For more * information about sending authorization, see the <a * href="http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES Developer * Guide</a>. * </p> * * @param recipientArn * This parameter is used only for sending authorization. It is the ARN of the identity that is associated * with the sending authorization policy that permits you to receive email for the recipient of the bounced * email. For more information about sending authorization, see the <a * href="http://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html">Amazon SES * Developer Guide</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public BouncedRecipientInfo withRecipientArn(String recipientArn) { setRecipientArn(recipientArn); return this; }
/** * <p> * The reason for the bounce. You must provide either this parameter or <code>RecipientDsnFields</code>. * </p> * * @param bounceType * The reason for the bounce. You must provide either this parameter or <code>RecipientDsnFields</code>. * @see BounceType */ public void setBounceType(BounceType bounceType) { withBounceType(bounceType); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BouncedRecipientInfo == false) return false; BouncedRecipientInfo other = (BouncedRecipientInfo) obj; if (other.getRecipient() == null ^ this.getRecipient() == null) return false; if (other.getRecipient() != null && other.getRecipient().equals(this.getRecipient()) == false) return false; if (other.getRecipientArn() == null ^ this.getRecipientArn() == null) return false; if (other.getRecipientArn() != null && other.getRecipientArn().equals(this.getRecipientArn()) == false) return false; if (other.getBounceType() == null ^ this.getBounceType() == null) return false; if (other.getBounceType() != null && other.getBounceType().equals(this.getBounceType()) == false) return false; if (other.getRecipientDsnFields() == null ^ this.getRecipientDsnFields() == null) return false; if (other.getRecipientDsnFields() != null && other.getRecipientDsnFields().equals(this.getRecipientDsnFields()) == false) return false; return true; }
public BouncedRecipientInfo unmarshall(StaxUnmarshallerContext context) throws Exception { BouncedRecipientInfo bouncedRecipientInfo = new BouncedRecipientInfo(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; bouncedRecipientInfo.setRecipient(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; bouncedRecipientInfo.setRecipientArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; bouncedRecipientInfo.setBounceType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; bouncedRecipientInfo.setRecipientDsnFields(RecipientDsnFieldsStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * The email address of the recipient of the bounced email. * </p> * * @param recipient * The email address of the recipient of the bounced email. * @return Returns a reference to this object so that method calls can be chained together. */ public BouncedRecipientInfo withRecipient(String recipient) { setRecipient(recipient); return this; }
/** * <p> * The reason for the bounce. You must provide either this parameter or <code>RecipientDsnFields</code>. * </p> * * @param bounceType * The reason for the bounce. You must provide either this parameter or <code>RecipientDsnFields</code>. * @return Returns a reference to this object so that method calls can be chained together. * @see BounceType */ public BouncedRecipientInfo withBounceType(String bounceType) { setBounceType(bounceType); 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 (getRecipient() != null) sb.append("Recipient: ").append(getRecipient()).append(","); if (getRecipientArn() != null) sb.append("RecipientArn: ").append(getRecipientArn()).append(","); if (getBounceType() != null) sb.append("BounceType: ").append(getBounceType()).append(","); if (getRecipientDsnFields() != null) sb.append("RecipientDsnFields: ").append(getRecipientDsnFields()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRecipient() == null) ? 0 : getRecipient().hashCode()); hashCode = prime * hashCode + ((getRecipientArn() == null) ? 0 : getRecipientArn().hashCode()); hashCode = prime * hashCode + ((getBounceType() == null) ? 0 : getBounceType().hashCode()); hashCode = prime * hashCode + ((getRecipientDsnFields() == null) ? 0 : getRecipientDsnFields().hashCode()); return hashCode; }
BouncedRecipientInfo other = (BouncedRecipientInfo) obj; if (other.getRecipient() == null ^ this.getRecipient() == null) return false; if (other.getRecipient() != null && other.getRecipient().equals(this.getRecipient()) == false) return false; if (other.getRecipientArn() == null ^ this.getRecipientArn() == null) return false; if (other.getRecipientArn() != null && other.getRecipientArn().equals(this.getRecipientArn()) == false) return false; if (other.getBounceType() == null ^ this.getBounceType() == null) return false; if (other.getBounceType() != null && other.getBounceType().equals(this.getBounceType()) == false) return false; if (other.getRecipientDsnFields() == null ^ this.getRecipientDsnFields() == null) return false; if (other.getRecipientDsnFields() != null && other.getRecipientDsnFields().equals(this.getRecipientDsnFields()) == 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 (getRecipient() != null) sb.append("Recipient: " + getRecipient() + ","); if (getRecipientArn() != null) sb.append("RecipientArn: " + getRecipientArn() + ","); if (getBounceType() != null) sb.append("BounceType: " + getBounceType() + ","); if (getRecipientDsnFields() != null) sb.append("RecipientDsnFields: " + getRecipientDsnFields()); sb.append("}"); return sb.toString(); }
if (bouncedRecipientInfoListListValue.getRecipient() != null) { request.addParameter("BouncedRecipientInfoList.member." + bouncedRecipientInfoListListIndex + ".Recipient", StringUtils.fromString(bouncedRecipientInfoListListValue.getRecipient())); if (bouncedRecipientInfoListListValue.getRecipientArn() != null) { request.addParameter("BouncedRecipientInfoList.member." + bouncedRecipientInfoListListIndex + ".RecipientArn", StringUtils.fromString(bouncedRecipientInfoListListValue.getRecipientArn())); if (bouncedRecipientInfoListListValue.getBounceType() != null) { request.addParameter("BouncedRecipientInfoList.member." + bouncedRecipientInfoListListIndex + ".BounceType", StringUtils.fromString(bouncedRecipientInfoListListValue.getBounceType())); RecipientDsnFields recipientDsnFields = bouncedRecipientInfoListListValue.getRecipientDsnFields(); if (recipientDsnFields != null) {