@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServers() == null) ? 0 : getServers().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; }
/** * <p> * This is not currently implemented for <code>DescribeServers</code> requests. * </p> * * @param nextToken * This is not currently implemented for <code>DescribeServers</code> requests. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeServersResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
/** * <p> * Contains the response to a <code>DescribeServers</code> request. * </p> * <p> * <i>For Puppet Server:</i> <code>DescribeServersResponse$Servers$EngineAttributes</code> contains * PUPPET_API_CA_CERT. This is the PEM-encoded CA certificate that is used by the Puppet API over TCP port number * 8140. The CA certificate is also used to sign node certificates. * </p> * * @param servers * Contains the response to a <code>DescribeServers</code> request.</p> * <p> * <i>For Puppet Server:</i> <code>DescribeServersResponse$Servers$EngineAttributes</code> contains * PUPPET_API_CA_CERT. This is the PEM-encoded CA certificate that is used by the Puppet API over TCP port * number 8140. The CA certificate is also used to sign node certificates. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeServersResult withServers(java.util.Collection<Server> servers) { setServers(servers); return this; }
public DescribeServersResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeServersResult describeServersResult = new DescribeServersResult(); if (context.testExpression("Servers", targetDepth)) { context.nextToken(); describeServersResult.setServers(new ListUnmarshaller<Server>(ServerJsonUnmarshaller.getInstance()).unmarshall(context)); describeServersResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeServersResult == false) return false; DescribeServersResult other = (DescribeServersResult) obj; if (other.getServers() == null ^ this.getServers() == null) return false; if (other.getServers() != null && other.getServers().equals(this.getServers()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; }
setServers(new java.util.ArrayList<Server>(servers.length));
/** * 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 (getServers() != null) sb.append("Servers: ").append(getServers()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); }