@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNodeAssociationStatus() == null) ? 0 : getNodeAssociationStatus().hashCode()); hashCode = prime * hashCode + ((getEngineAttributes() == null) ? 0 : getEngineAttributes().hashCode()); return hashCode; }
/** * <p> * Attributes specific to the node association. In Puppet, the attibute PUPPET_NODE_CERT contains the signed * certificate (the result of the CSR). * </p> * * @param engineAttributes * Attributes specific to the node association. In Puppet, the attibute PUPPET_NODE_CERT contains the signed * certificate (the result of the CSR). * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeNodeAssociationStatusResult withEngineAttributes(java.util.Collection<EngineAttribute> engineAttributes) { setEngineAttributes(engineAttributes); return this; }
public DescribeNodeAssociationStatusResult unmarshall(JsonUnmarshallerContext context) throws Exception { DescribeNodeAssociationStatusResult describeNodeAssociationStatusResult = new DescribeNodeAssociationStatusResult(); if (context.testExpression("NodeAssociationStatus", targetDepth)) { context.nextToken(); describeNodeAssociationStatusResult.setNodeAssociationStatus(context.getUnmarshaller(String.class).unmarshall(context)); .setEngineAttributes(new ListUnmarshaller<EngineAttribute>(EngineAttributeJsonUnmarshaller.getInstance()).unmarshall(context));
withNodeAssociationStatus(nodeAssociationStatus);
setNodeAssociationStatus(nodeAssociationStatus); return this;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeNodeAssociationStatusResult == false) return false; DescribeNodeAssociationStatusResult other = (DescribeNodeAssociationStatusResult) obj; if (other.getNodeAssociationStatus() == null ^ this.getNodeAssociationStatus() == null) return false; if (other.getNodeAssociationStatus() != null && other.getNodeAssociationStatus().equals(this.getNodeAssociationStatus()) == 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; }
/** * <p> * Attributes specific to the node association. In Puppet, the attibute PUPPET_NODE_CERT contains the signed * certificate (the result of the CSR). * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setEngineAttributes(java.util.Collection)} or {@link #withEngineAttributes(java.util.Collection)} if you * want to override the existing values. * </p> * * @param engineAttributes * Attributes specific to the node association. In Puppet, the attibute PUPPET_NODE_CERT contains the signed * certificate (the result of the CSR). * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeNodeAssociationStatusResult withEngineAttributes(EngineAttribute... engineAttributes) { if (this.engineAttributes == null) { setEngineAttributes(new java.util.ArrayList<EngineAttribute>(engineAttributes.length)); } for (EngineAttribute ele : engineAttributes) { this.engineAttributes.add(ele); } return this; }
/** * 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 (getNodeAssociationStatus() != null) sb.append("NodeAssociationStatus: ").append(getNodeAssociationStatus()).append(","); if (getEngineAttributes() != null) sb.append("EngineAttributes: ").append(getEngineAttributes()); sb.append("}"); return sb.toString(); }