/** * 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 (getNodeGroupId() != null) sb.append("NodeGroupId: ").append(getNodeGroupId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getPrimaryEndpoint() != null) sb.append("PrimaryEndpoint: ").append(getPrimaryEndpoint()).append(","); if (getSlots() != null) sb.append("Slots: ").append(getSlots()).append(","); if (getNodeGroupMembers() != null) sb.append("NodeGroupMembers: ").append(getNodeGroupMembers()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNodeGroupId() == null) ? 0 : getNodeGroupId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getPrimaryEndpoint() == null) ? 0 : getPrimaryEndpoint().hashCode()); hashCode = prime * hashCode + ((getSlots() == null) ? 0 : getSlots().hashCode()); hashCode = prime * hashCode + ((getNodeGroupMembers() == null) ? 0 : getNodeGroupMembers().hashCode()); return hashCode; }
if (other.getNodeGroupId() != null && other.getNodeGroupId().equals(this.getNodeGroupId()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getPrimaryEndpoint() == null ^ this.getPrimaryEndpoint() == null)
/** * 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 (getNodeGroupId() != null) sb.append("NodeGroupId: ").append(getNodeGroupId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getPrimaryEndpoint() != null) sb.append("PrimaryEndpoint: ").append(getPrimaryEndpoint()).append(","); if (getSlots() != null) sb.append("Slots: ").append(getSlots()).append(","); if (getNodeGroupMembers() != null) sb.append("NodeGroupMembers: ").append(getNodeGroupMembers()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNodeGroupId() == null) ? 0 : getNodeGroupId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getPrimaryEndpoint() == null) ? 0 : getPrimaryEndpoint().hashCode()); hashCode = prime * hashCode + ((getSlots() == null) ? 0 : getSlots().hashCode()); hashCode = prime * hashCode + ((getNodeGroupMembers() == null) ? 0 : getNodeGroupMembers().hashCode()); return hashCode; }
if (other.getNodeGroupId() != null && other.getNodeGroupId().equals(this.getNodeGroupId()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getPrimaryEndpoint() == null ^ this.getPrimaryEndpoint() == null)