/** * <p> * The name of the security group. * </p> * * @param groupName * The name of the security group. * @return Returns a reference to this object so that method calls can be chained together. */ public GroupIdentifier withGroupName(String groupName) { setGroupName(groupName); return this; }
public GroupIdentifier unmarshall(StaxUnmarshallerContext context) throws Exception { GroupIdentifier groupIdentifier = new GroupIdentifier(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return groupIdentifier; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("groupName", targetDepth)) { groupIdentifier.setGroupName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("groupId", targetDepth)) { groupIdentifier.setGroupId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return groupIdentifier; } } } }
/** * <p> * The name of the security group. * </p> * * @param groupName * The name of the security group. * @return Returns a reference to this object so that method calls can be chained together. */ public GroupIdentifier withGroupName(String groupName) { setGroupName(groupName); return this; }
public GroupIdentifier unmarshall(StaxUnmarshallerContext context) throws Exception { GroupIdentifier groupIdentifier = new GroupIdentifier(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return groupIdentifier; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("groupName", targetDepth)) { groupIdentifier.setGroupName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("groupId", targetDepth)) { groupIdentifier.setGroupId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { return groupIdentifier; } } } }
public GroupIdentifier unmarshall(StaxUnmarshallerContext context) throws Exception { GroupIdentifier groupIdentifier = new GroupIdentifier(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return groupIdentifier; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("groupName", targetDepth)) { groupIdentifier.setGroupName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("groupId", targetDepth)) { groupIdentifier.setGroupId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return groupIdentifier; } } } }