/** * <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; } } } }