/** * <p> * A structure containing the user name and password create date for the user. * </p> * * @param loginProfile * A structure containing the user name and password create date for the user. * @return Returns a reference to this object so that method calls can be chained together. */ public GetLoginProfileResult withLoginProfile(LoginProfile loginProfile) { setLoginProfile(loginProfile); return this; }
public GetLoginProfileResult unmarshall(StaxUnmarshallerContext context) throws Exception { GetLoginProfileResult getLoginProfileResult = new GetLoginProfileResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return getLoginProfileResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("LoginProfile", targetDepth)) { getLoginProfileResult.setLoginProfile(LoginProfileStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return getLoginProfileResult; } } } }
/** * <p> * A structure containing the user name and password create date for the user. * </p> * * @param loginProfile * A structure containing the user name and password create date for the user. * @return Returns a reference to this object so that method calls can be chained together. */ public GetLoginProfileResult withLoginProfile(LoginProfile loginProfile) { setLoginProfile(loginProfile); return this; }
public GetLoginProfileResult unmarshall(StaxUnmarshallerContext context) throws Exception { GetLoginProfileResult getLoginProfileResult = new GetLoginProfileResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return getLoginProfileResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("LoginProfile", targetDepth)) { getLoginProfileResult.setLoginProfile(LoginProfileStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return getLoginProfileResult; } } } }