@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServerName() == null) ? 0 : getServerName().hashCode()); hashCode = prime * hashCode + ((getNodeName() == null) ? 0 : getNodeName().hashCode()); hashCode = prime * hashCode + ((getEngineAttributes() == null) ? 0 : getEngineAttributes().hashCode()); return hashCode; }
/** * <p> * The name of the client node. * </p> * * @param nodeName * The name of the client node. * @return Returns a reference to this object so that method calls can be chained together. */ public DisassociateNodeRequest withNodeName(String nodeName) { setNodeName(nodeName); return this; }
/** * <p> * The name of the server from which to disassociate the node. * </p> * * @param serverName * The name of the server from which to disassociate the node. * @return Returns a reference to this object so that method calls can be chained together. */ public DisassociateNodeRequest withServerName(String serverName) { setServerName(serverName); return this; }
setEngineAttributes(engineAttributes); return this;
setEngineAttributes(new java.util.ArrayList<EngineAttribute>(engineAttributes.length));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DisassociateNodeRequest == false) return false; DisassociateNodeRequest other = (DisassociateNodeRequest) obj; if (other.getServerName() == null ^ this.getServerName() == null) return false; if (other.getServerName() != null && other.getServerName().equals(this.getServerName()) == false) return false; if (other.getNodeName() == null ^ this.getNodeName() == null) return false; if (other.getNodeName() != null && other.getNodeName().equals(this.getNodeName()) == false) return false; if (other.getEngineAttributes() == null ^ this.getEngineAttributes() == null) return false; if (other.getEngineAttributes() != null && other.getEngineAttributes().equals(this.getEngineAttributes()) == false) return false; return true; }
/** * 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 (getServerName() != null) sb.append("ServerName: ").append(getServerName()).append(","); if (getNodeName() != null) sb.append("NodeName: ").append(getNodeName()).append(","); if (getEngineAttributes() != null) sb.append("EngineAttributes: ").append(getEngineAttributes()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(DisassociateNodeRequest disassociateNodeRequest, ProtocolMarshaller protocolMarshaller) { if (disassociateNodeRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(disassociateNodeRequest.getServerName(), SERVERNAME_BINDING); protocolMarshaller.marshall(disassociateNodeRequest.getNodeName(), NODENAME_BINDING); protocolMarshaller.marshall(disassociateNodeRequest.getEngineAttributes(), ENGINEATTRIBUTES_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }