@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 To: field(s) of the message. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param toAddresses <p> * The To: field(s) of the message. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public Destination withToAddresses(String... toAddresses) { if (getToAddresses() == null) { this.toAddresses = new java.util.ArrayList<String>(toAddresses.length); } for (String value : toAddresses) { this.toAddresses.add(value); } return this; }
if (destination != null) { if (!destination.getToAddresses().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) destination.getToAddresses()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> toAddressesList = (com.amazonaws.internal.SdkInternalList<String>) destination .getToAddresses(); int toAddressesListIndex = 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 != null) { if (!destination.getToAddresses().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) destination.getToAddresses()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> toAddressesList = (com.amazonaws.internal.SdkInternalList<String>) destination .getToAddresses(); int toAddressesListIndex = 1;
if (destination != null) { if (!destination.getToAddresses().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) destination.getToAddresses()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> toAddressesList = (com.amazonaws.internal.SdkInternalList<String>) destination .getToAddresses(); int toAddressesListIndex = 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(); }
@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; } }
public void marshall(Destination _destination, Request<?> request, String _prefix) { String prefix; if (_destination.getToAddresses() != null) { prefix = _prefix + "ToAddresses"; java.util.List<String> toAddresses = _destination.getToAddresses(); int toAddressesIndex = 1; String toAddressesPrefix = 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 != null) { if (!destination.getToAddresses().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) destination.getToAddresses()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> toAddressesList = (com.amazonaws.internal.SdkInternalList<String>) destination .getToAddresses(); int toAddressesListIndex = 1;
if (destination != null) { if (!destination.getToAddresses().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) destination.getToAddresses()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> toAddressesList = (com.amazonaws.internal.SdkInternalList<String>) destination .getToAddresses(); int toAddressesListIndex = 1;
if (destination != null) { if (!destination.getToAddresses().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) destination.getToAddresses()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> toAddressesList = (com.amazonaws.internal.SdkInternalList<String>) destination .getToAddresses(); int toAddressesListIndex = 1;