/** * <p> * The name of the user, which can be used for signing in to the AWS Management Console. * </p> * * @param userName * The name of the user, which can be used for signing in to the AWS Management Console. * @return Returns a reference to this object so that method calls can be chained together. */ public LoginProfile withUserName(String userName) { setUserName(userName); return this; }
/** * Constructs a new LoginProfile object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param userName * The name of the user, which can be used for signing in to the AWS Management Console. * @param createDate * The date when the password for the user was created. */ public LoginProfile(String userName, java.util.Date createDate) { setUserName(userName); setCreateDate(createDate); }
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> * The name of the user, which can be used for signing in to the AWS Management Console. * </p> * * @param userName * The name of the user, which can be used for signing in to the AWS Management Console. * @return Returns a reference to this object so that method calls can be chained together. */ public LoginProfile withUserName(String userName) { setUserName(userName); return this; }
/** * Constructs a new LoginProfile object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param userName * The name of the user, which can be used for signing in to the AWS Management Console. * @param createDate * The date when the password for the user was created. */ public LoginProfile(String userName, java.util.Date createDate) { setUserName(userName); setCreateDate(createDate); }
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; } } } }