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