@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; }
/** * 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(); }
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)
/** * <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 + ((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; }
/** * 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 (getName() != null) sb.append("Name: " + getName() + ","); if (getEnabled() != null) sb.append("Enabled: " + getEnabled() + ","); if (getTlsPolicy() != null) sb.append("TlsPolicy: " + getTlsPolicy() + ","); if (getRecipients() != null) sb.append("Recipients: " + getRecipients() + ","); if (getActions() != null) sb.append("Actions: " + getActions() + ","); if (getScanEnabled() != null) sb.append("ScanEnabled: " + getScanEnabled()); sb.append("}"); return sb.toString(); }
if (!rule.getActions().isEmpty() || !((com.amazonaws.internal.SdkInternalList<ReceiptAction>) rule.getActions()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<ReceiptAction> actionsList = (com.amazonaws.internal.SdkInternalList<ReceiptAction>) rule .getActions(); int actionsListIndex = 1;
if (!rule.getActions().isEmpty() || !((com.amazonaws.internal.SdkInternalList<ReceiptAction>) rule.getActions()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<ReceiptAction> actionsList = (com.amazonaws.internal.SdkInternalList<ReceiptAction>) rule .getActions(); int actionsListIndex = 1;
&& 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)
if (_receiptRule.getActions() != null) { prefix = _prefix + "Actions"; java.util.List<ReceiptAction> actions = _receiptRule.getActions(); int actionsIndex = 1; String actionsPrefix = prefix;
@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; }
/** * 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(); }
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)
if (!rule.getActions().isEmpty() || !((com.amazonaws.internal.SdkInternalList<ReceiptAction>) rule.getActions()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<ReceiptAction> actionsList = (com.amazonaws.internal.SdkInternalList<ReceiptAction>) rule .getActions(); int actionsListIndex = 1;
if (!rule.getActions().isEmpty() || !((com.amazonaws.internal.SdkInternalList<ReceiptAction>) rule.getActions()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<ReceiptAction> actionsList = (com.amazonaws.internal.SdkInternalList<ReceiptAction>) rule .getActions(); int actionsListIndex = 1;