@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.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)
/** * <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; }
@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.getRecipients().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) rule.getRecipients()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> recipientsList = (com.amazonaws.internal.SdkInternalList<String>) rule.getRecipients(); int recipientsListIndex = 1;
if (!rule.getRecipients().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) rule.getRecipients()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> recipientsList = (com.amazonaws.internal.SdkInternalList<String>) rule.getRecipients(); int recipientsListIndex = 1;
&& 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)
request.addParameter(prefix, StringUtils.fromString(tlsPolicy)); if (_receiptRule.getRecipients() != null) { prefix = _prefix + "Recipients"; java.util.List<String> recipients = _receiptRule.getRecipients(); int recipientsIndex = 1; String recipientsPrefix = 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.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)
if (!rule.getRecipients().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) rule.getRecipients()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> recipientsList = (com.amazonaws.internal.SdkInternalList<String>) rule.getRecipients(); int recipientsListIndex = 1;
if (!rule.getRecipients().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) rule.getRecipients()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> recipientsList = (com.amazonaws.internal.SdkInternalList<String>) rule.getRecipients(); int recipientsListIndex = 1;