@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUserName() == null) ? 0 : getUserName().hashCode()); hashCode = prime * hashCode + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode()); hashCode = prime * hashCode + ((getPasswordResetRequired() == null) ? 0 : getPasswordResetRequired().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoginProfile() == null) ? 0 : getLoginProfile().hashCode()); return hashCode; }
/** * 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; } } } }
userTemp.setPasswordCreationDate(logProf.getCreateDate()); userTemp.setPasswordResetRequired(logProf.isPasswordResetRequired()); }catch (Exception e) {
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateLoginProfileResult == false) return false; CreateLoginProfileResult other = (CreateLoginProfileResult) obj; if (other.getLoginProfile() == null ^ this.getLoginProfile() == null) return false; if (other.getLoginProfile() != null && other.getLoginProfile().equals(this.getLoginProfile()) == false) return false; return true; }
/** * <p> * The date when the password for the user was created. * </p> * * @param createDate * The date when the password for the user was created. * @return Returns a reference to this object so that method calls can be chained together. */ public LoginProfile withCreateDate(java.util.Date createDate) { setCreateDate(createDate); return this; }
/** * <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; }
/** * <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; } } } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetLoginProfileResult == false) return false; GetLoginProfileResult other = (GetLoginProfileResult) obj; if (other.getLoginProfile() == null ^ this.getLoginProfile() == null) return false; if (other.getLoginProfile() != null && other.getLoginProfile().equals(this.getLoginProfile()) == false) return false; return true; }
/** * <p> * The date when the password for the user was created. * </p> * * @param createDate * The date when the password for the user was created. * @return Returns a reference to this object so that method calls can be chained together. */ public LoginProfile withCreateDate(java.util.Date createDate) { setCreateDate(createDate); return this; }
/** * <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; }
/** * <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; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LoginProfile == false) return false; LoginProfile other = (LoginProfile) obj; if (other.getUserName() == null ^ this.getUserName() == null) return false; if (other.getUserName() != null && other.getUserName().equals(this.getUserName()) == false) return false; if (other.getCreateDate() == null ^ this.getCreateDate() == null) return false; if (other.getCreateDate() != null && other.getCreateDate().equals(this.getCreateDate()) == false) return false; if (other.getPasswordResetRequired() == null ^ this.getPasswordResetRequired() == null) return false; if (other.getPasswordResetRequired() != null && other.getPasswordResetRequired().equals(this.getPasswordResetRequired()) == false) return false; return true; }
/** * 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); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoginProfile() == null) ? 0 : getLoginProfile().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetLoginProfileResult == false) return false; GetLoginProfileResult other = (GetLoginProfileResult) obj; if (other.getLoginProfile() == null ^ this.getLoginProfile() == null) return false; if (other.getLoginProfile() != null && other.getLoginProfile().equals(this.getLoginProfile()) == false) return false; return true; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getUserName() != null) sb.append("UserName: ").append(getUserName()).append(","); if (getCreateDate() != null) sb.append("CreateDate: ").append(getCreateDate()).append(","); if (getPasswordResetRequired() != null) sb.append("PasswordResetRequired: ").append(getPasswordResetRequired()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoginProfile() == null) ? 0 : getLoginProfile().hashCode()); return hashCode; }