public ReceiptRule unmarshall(StaxUnmarshallerContext context) throws Exception { ReceiptRule receiptRule = new ReceiptRule(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; receiptRule.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptRule.setEnabled(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptRule.setTlsPolicy(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptRule.withRecipients(new ArrayList<String>()); continue; receiptRule.withRecipients(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptRule.withActions(new ArrayList<ReceiptAction>()); continue; receiptRule.withActions(ReceiptActionStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptRule.setScanEnabled(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeReceiptRuleResult == false) return false; DescribeReceiptRuleResult other = (DescribeReceiptRuleResult) obj; if (other.getRule() == null ^ this.getRule() == null) return false; if (other.getRule() != null && other.getRule().equals(this.getRule()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); hashCode = prime * hashCode + ((getTlsPolicy() == null) ? 0 : getTlsPolicy().hashCode()); hashCode = prime * hashCode + ((getRecipients() == null) ? 0 : getRecipients().hashCode()); hashCode = prime * hashCode + ((getActions() == null) ? 0 : getActions().hashCode()); hashCode = prime * hashCode + ((getScanEnabled() == null) ? 0 : getScanEnabled().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRule() == null) ? 0 : getRule().hashCode()); return hashCode; }
/** * <p> * An ordered list of actions to perform on messages that match at least one of the recipient email addresses or * domains specified in the receipt rule. * </p> * * @param actions * An ordered list of actions to perform on messages that match at least one of the recipient email addresses * or domains specified in the receipt rule. * @return Returns a reference to this object so that method calls can be chained together. */ public ReceiptRule withActions(java.util.Collection<ReceiptAction> actions) { setActions(actions); return this; }
/** * <p> * The recipient domains and email addresses that the receipt rule applies * to. If this field is not specified, this rule will match all recipients * under all verified domains. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param recipients <p> * The recipient domains and email addresses that the receipt * rule applies to. If this field is not specified, this rule * will match all recipients under all verified domains. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ReceiptRule withRecipients(String... recipients) { if (getRecipients() == null) { this.recipients = new java.util.ArrayList<String>(recipients.length); } for (String value : recipients) { this.recipients.add(value); } return this; }
/** * <p> * An ordered list of actions to perform on messages that match at least one * of the recipient email addresses or domains specified in the receipt * rule. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param actions <p> * An ordered list of actions to perform on messages that match * at least one of the recipient email addresses or domains * specified in the receipt rule. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ReceiptRule withActions(ReceiptAction... actions) { if (getActions() == null) { this.actions = new java.util.ArrayList<ReceiptAction>(actions.length); } for (ReceiptAction value : actions) { this.actions.add(value); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRuleSetName() == null) ? 0 : getRuleSetName().hashCode()); hashCode = prime * hashCode + ((getRule() == null) ? 0 : getRule().hashCode()); return hashCode; }
/** * <p> * An ordered list of actions to perform on messages that match at least one of the recipient email addresses or * domains specified in the receipt rule. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setActions(java.util.Collection)} or {@link #withActions(java.util.Collection)} if you want to override * the existing values. * </p> * * @param actions * An ordered list of actions to perform on messages that match at least one of the recipient email addresses * or domains specified in the receipt rule. * @return Returns a reference to this object so that method calls can be chained together. */ public ReceiptRule withActions(ReceiptAction... actions) { if (this.actions == null) { setActions(new com.amazonaws.internal.SdkInternalList<ReceiptAction>(actions.length)); } for (ReceiptAction ele : actions) { this.actions.add(ele); } return this; }
return false; ReceiptRule other = (ReceiptRule) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getEnabled() == null ^ this.getEnabled() == null) return false; if (other.getEnabled() != null && other.getEnabled().equals(this.getEnabled()) == false) return false; if (other.getTlsPolicy() == null ^ this.getTlsPolicy() == null) return false; if (other.getTlsPolicy() != null && other.getTlsPolicy().equals(this.getTlsPolicy()) == false) return false; if (other.getRecipients() == null ^ this.getRecipients() == null) return false; if (other.getRecipients() != null && other.getRecipients().equals(this.getRecipients()) == false) return false; if (other.getActions() == null ^ this.getActions() == null) return false; if (other.getActions() != null && other.getActions().equals(this.getActions()) == false) return false; if (other.getScanEnabled() == null ^ this.getScanEnabled() == null) return false; if (other.getScanEnabled() != null && other.getScanEnabled().equals(this.getScanEnabled()) == false) return false; return true;
public ReceiptRule unmarshall(StaxUnmarshallerContext context) throws Exception { ReceiptRule receiptRule = new ReceiptRule(); receiptRule.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptRule.setEnabled(BooleanStaxUnmarshaller.getInstance() .unmarshall(context)); continue; receiptRule.setTlsPolicy(StringStaxUnmarshaller.getInstance().unmarshall( context)); continue; receiptRule.withRecipients(StringStaxUnmarshaller.getInstance().unmarshall( context)); continue; receiptRule.withActions(ReceiptActionStaxUnmarshaller.getInstance().unmarshall( context)); continue; receiptRule.setScanEnabled(BooleanStaxUnmarshaller.getInstance().unmarshall( context)); continue;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRuleSetName() == null) ? 0 : getRuleSetName().hashCode()); hashCode = prime * hashCode + ((getAfter() == null) ? 0 : getAfter().hashCode()); hashCode = prime * hashCode + ((getRule() == null) ? 0 : getRule().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateReceiptRuleRequest == false) return false; UpdateReceiptRuleRequest other = (UpdateReceiptRuleRequest) obj; if (other.getRuleSetName() == null ^ this.getRuleSetName() == null) return false; if (other.getRuleSetName() != null && other.getRuleSetName().equals(this.getRuleSetName()) == false) return false; if (other.getRule() == null ^ this.getRule() == null) return false; if (other.getRule() != null && other.getRule().equals(this.getRule()) == false) return false; return true; }
/** * <p> * An ordered list of actions to perform on messages that match at least one * of the recipient email addresses or domains specified in the receipt * rule. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param actions <p> * An ordered list of actions to perform on messages that match * at least one of the recipient email addresses or domains * specified in the receipt rule. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ReceiptRule withActions(java.util.Collection<ReceiptAction> actions) { setActions(actions); 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getEnabled() != null) sb.append("Enabled: ").append(getEnabled()).append(","); if (getTlsPolicy() != null) sb.append("TlsPolicy: ").append(getTlsPolicy()).append(","); if (getRecipients() != null) sb.append("Recipients: ").append(getRecipients()).append(","); if (getActions() != null) sb.append("Actions: ").append(getActions()).append(","); if (getScanEnabled() != null) sb.append("ScanEnabled: ").append(getScanEnabled()); sb.append("}"); return sb.toString(); }
public ReceiptRule unmarshall(StaxUnmarshallerContext context) throws Exception { ReceiptRule receiptRule = new ReceiptRule(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; receiptRule.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptRule.setEnabled(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptRule.setTlsPolicy(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptRule.withRecipients(new ArrayList<String>()); continue; receiptRule.withRecipients(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptRule.withActions(new ArrayList<ReceiptAction>()); continue; receiptRule.withActions(ReceiptActionStaxUnmarshaller.getInstance().unmarshall(context)); continue; receiptRule.setScanEnabled(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRule() == null) ? 0 : getRule().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateReceiptRuleRequest == false) return false; CreateReceiptRuleRequest other = (CreateReceiptRuleRequest) obj; if (other.getRuleSetName() == null ^ this.getRuleSetName() == null) return false; if (other.getRuleSetName() != null && other.getRuleSetName().equals(this.getRuleSetName()) == false) return false; if (other.getAfter() == null ^ this.getAfter() == null) return false; if (other.getAfter() != null && other.getAfter().equals(this.getAfter()) == false) return false; if (other.getRule() == null ^ this.getRule() == null) return false; if (other.getRule() != null && other.getRule().equals(this.getRule()) == false) return false; return true; }
/** * <p> * An ordered list of actions to perform on messages that match at least one of the recipient email addresses or * domains specified in the receipt rule. * </p> * * @param actions * An ordered list of actions to perform on messages that match at least one of the recipient email addresses * or domains specified in the receipt rule. * @return Returns a reference to this object so that method calls can be chained together. */ public ReceiptRule withActions(java.util.Collection<ReceiptAction> actions) { setActions(actions); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); hashCode = prime * hashCode + ((getTlsPolicy() == null) ? 0 : getTlsPolicy().hashCode()); hashCode = prime * hashCode + ((getRecipients() == null) ? 0 : getRecipients().hashCode()); hashCode = prime * hashCode + ((getActions() == null) ? 0 : getActions().hashCode()); hashCode = prime * hashCode + ((getScanEnabled() == null) ? 0 : getScanEnabled().hashCode()); return hashCode; }