@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getToAddresses() == null) ? 0 : getToAddresses().hashCode()); hashCode = prime * hashCode + ((getCcAddresses() == null) ? 0 : getCcAddresses().hashCode()); hashCode = prime * hashCode + ((getBccAddresses() == null) ? 0 : getBccAddresses().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 (getToAddresses() != null) sb.append("ToAddresses: ").append(getToAddresses()).append(","); if (getCcAddresses() != null) sb.append("CcAddresses: ").append(getCcAddresses()).append(","); if (getBccAddresses() != null) sb.append("BccAddresses: ").append(getBccAddresses()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Destination == false) return false; Destination other = (Destination) obj; if (other.getToAddresses() == null ^ this.getToAddresses() == null) return false; if (other.getToAddresses() != null && other.getToAddresses().equals(this.getToAddresses()) == false) return false; if (other.getCcAddresses() == null ^ this.getCcAddresses() == null) return false; if (other.getCcAddresses() != null && other.getCcAddresses().equals(this.getCcAddresses()) == false) return false; if (other.getBccAddresses() == null ^ this.getBccAddresses() == null) return false; if (other.getBccAddresses() != null && other.getBccAddresses().equals(this.getBccAddresses()) == false) return false; return true; }
/** * <p> * The CC: field(s) of the message. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param ccAddresses <p> * The CC: field(s) of the message. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public Destination withCcAddresses(String... ccAddresses) { if (getCcAddresses() == null) { this.ccAddresses = new java.util.ArrayList<String>(ccAddresses.length); } for (String value : ccAddresses) { this.ccAddresses.add(value); } return this; }
if (!destination.getCcAddresses().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) destination.getCcAddresses()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> ccAddressesList = (com.amazonaws.internal.SdkInternalList<String>) destination .getCcAddresses(); int ccAddressesListIndex = 1;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getToAddresses() == null) ? 0 : getToAddresses().hashCode()); hashCode = prime * hashCode + ((getCcAddresses() == null) ? 0 : getCcAddresses().hashCode()); hashCode = prime * hashCode + ((getBccAddresses() == null) ? 0 : getBccAddresses().hashCode()); return hashCode; }
if (!destination.getCcAddresses().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) destination.getCcAddresses()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> ccAddressesList = (com.amazonaws.internal.SdkInternalList<String>) destination .getCcAddresses(); int ccAddressesListIndex = 1;
/** * 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 (getToAddresses() != null) sb.append("ToAddresses: " + getToAddresses() + ","); if (getCcAddresses() != null) sb.append("CcAddresses: " + getCcAddresses() + ","); if (getBccAddresses() != null) sb.append("BccAddresses: " + getBccAddresses()); sb.append("}"); return sb.toString(); }
if (!destination.getCcAddresses().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) destination.getCcAddresses()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> ccAddressesList = (com.amazonaws.internal.SdkInternalList<String>) destination .getCcAddresses(); int ccAddressesListIndex = 1;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Destination == false) return false; Destination other = (Destination) obj; if (other.getToAddresses() == null ^ this.getToAddresses() == null) return false; if (other.getToAddresses() != null && other.getToAddresses().equals(this.getToAddresses()) == false) return false; if (other.getCcAddresses() == null ^ this.getCcAddresses() == null) return false; if (other.getCcAddresses() != null && other.getCcAddresses().equals(this.getCcAddresses()) == false) return false; if (other.getBccAddresses() == null ^ this.getBccAddresses() == null) return false; if (other.getBccAddresses() != null && other.getBccAddresses().equals(this.getBccAddresses()) == false) return false; return true; } }
if (_destination.getCcAddresses() != null) { prefix = _prefix + "CcAddresses"; java.util.List<String> ccAddresses = _destination.getCcAddresses(); int ccAddressesIndex = 1; String ccAddressesPrefix = prefix;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getToAddresses() == null) ? 0 : getToAddresses().hashCode()); hashCode = prime * hashCode + ((getCcAddresses() == null) ? 0 : getCcAddresses().hashCode()); hashCode = prime * hashCode + ((getBccAddresses() == null) ? 0 : getBccAddresses().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 (getToAddresses() != null) sb.append("ToAddresses: ").append(getToAddresses()).append(","); if (getCcAddresses() != null) sb.append("CcAddresses: ").append(getCcAddresses()).append(","); if (getBccAddresses() != null) sb.append("BccAddresses: ").append(getBccAddresses()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Destination == false) return false; Destination other = (Destination) obj; if (other.getToAddresses() == null ^ this.getToAddresses() == null) return false; if (other.getToAddresses() != null && other.getToAddresses().equals(this.getToAddresses()) == false) return false; if (other.getCcAddresses() == null ^ this.getCcAddresses() == null) return false; if (other.getCcAddresses() != null && other.getCcAddresses().equals(this.getCcAddresses()) == false) return false; if (other.getBccAddresses() == null ^ this.getBccAddresses() == null) return false; if (other.getBccAddresses() != null && other.getBccAddresses().equals(this.getBccAddresses()) == false) return false; return true; }
if (!destination.getCcAddresses().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) destination.getCcAddresses()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> ccAddressesList = (com.amazonaws.internal.SdkInternalList<String>) destination .getCcAddresses(); int ccAddressesListIndex = 1;
if (!destination.getCcAddresses().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) destination.getCcAddresses()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> ccAddressesList = (com.amazonaws.internal.SdkInternalList<String>) destination .getCcAddresses(); int ccAddressesListIndex = 1;
if (!destination.getCcAddresses().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) destination.getCcAddresses()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> ccAddressesList = (com.amazonaws.internal.SdkInternalList<String>) destination .getCcAddresses(); int ccAddressesListIndex = 1;