/** * <p> * Specifies whether the user is required to set a new password on next sign-in. * </p> * * @param passwordResetRequired * Specifies whether the user is required to set a new password on next sign-in. * @return Returns a reference to this object so that method calls can be chained together. */ public LoginProfile withPasswordResetRequired(Boolean passwordResetRequired) { setPasswordResetRequired(passwordResetRequired); return this; }
public LoginProfile unmarshall(StaxUnmarshallerContext context) throws Exception { LoginProfile loginProfile = new LoginProfile(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return loginProfile; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("UserName", targetDepth)) { loginProfile.setUserName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CreateDate", targetDepth)) { loginProfile.setCreateDate(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; } if (context.testExpression("PasswordResetRequired", targetDepth)) { loginProfile.setPasswordResetRequired(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return loginProfile; } } } }
/** * <p> * Specifies whether the user is required to set a new password on next sign-in. * </p> * * @param passwordResetRequired * Specifies whether the user is required to set a new password on next sign-in. * @return Returns a reference to this object so that method calls can be chained together. */ public LoginProfile withPasswordResetRequired(Boolean passwordResetRequired) { setPasswordResetRequired(passwordResetRequired); return this; }
public LoginProfile unmarshall(StaxUnmarshallerContext context) throws Exception { LoginProfile loginProfile = new LoginProfile(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return loginProfile; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("UserName", targetDepth)) { loginProfile.setUserName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CreateDate", targetDepth)) { loginProfile.setCreateDate(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; } if (context.testExpression("PasswordResetRequired", targetDepth)) { loginProfile.setPasswordResetRequired(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return loginProfile; } } } }