@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListTagsForResourceResult == false) return false; ListTagsForResourceResult other = (ListTagsForResourceResult) obj; if (other.getResourceTagSet() == null ^ this.getResourceTagSet() == null) return false; if (other.getResourceTagSet() != null && other.getResourceTagSet().equals(this.getResourceTagSet()) == false) return false; return true; }
/** * <p> * A <code>ResourceTagSet</code> containing tags associated with the specified resource. * </p> * * @param resourceTagSet * A <code>ResourceTagSet</code> containing tags associated with the specified resource. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTagsForResourceResult withResourceTagSet(ResourceTagSet resourceTagSet) { setResourceTagSet(resourceTagSet); return this; }
public ListTagsForResourceResult unmarshall(StaxUnmarshallerContext context) throws Exception { ListTagsForResourceResult listTagsForResourceResult = new ListTagsForResourceResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return listTagsForResourceResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ResourceTagSet", targetDepth)) { listTagsForResourceResult.setResourceTagSet(ResourceTagSetStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return listTagsForResourceResult; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getResourceTagSet() == null) ? 0 : getResourceTagSet().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 (getResourceTagSet() != null) sb.append("ResourceTagSet: ").append(getResourceTagSet()); sb.append("}"); return sb.toString(); }