* The unique identifier of the user that a new password is generated for. *
*/ private String userId; /** ** A randomly generated temporary password for the requested user account. This password expires in 7 days. *
*/ private String temporaryPassword; /** ** The unique identifier of the user that a new password is generated for. *
* * @param userId * The unique identifier of the user that a new password is generated for. */ public void setUserId(String userId) { this.userId = userId; } /** ** The unique identifier of the user that a new password is generated for. *
* * @return The unique identifier of the user that a new password is generated for. */ public String getUserId() { return this.userId; } /** ** The unique identifier of the user that a new password is generated for. *
* * @param userId * The unique identifier of the user that a new password is generated for. * @return Returns a reference to this object so that method calls can be chained together. */ public ResetUserPasswordResult withUserId(String userId) { setUserId(userId); return this; } /** ** A randomly generated temporary password for the requested user account. This password expires in 7 days. *
* * @param temporaryPassword * A randomly generated temporary password for the requested user account. This password expires in 7 days. */ public void setTemporaryPassword(String temporaryPassword) { this.temporaryPassword = temporaryPassword; } /** ** A randomly generated temporary password for the requested user account. This password expires in 7 days. *
* * @return A randomly generated temporary password for the requested user account. This password expires in 7 days. */ public String getTemporaryPassword() { return this.temporaryPassword; } /** ** A randomly generated temporary password for the requested user account. This password expires in 7 days. *
* * @param temporaryPassword * A randomly generated temporary password for the requested user account. This password expires in 7 days. * @return Returns a reference to this object so that method calls can be chained together. */ public ResetUserPasswordResult withTemporaryPassword(String temporaryPassword) { setTemporaryPassword(temporaryPassword); return this; } /** * 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 (getUserId() != null) sb.append("UserId: ").append(getUserId()).append(","); if (getTemporaryPassword() != null) sb.append("TemporaryPassword: ").append("***Sensitive Data Redacted***"); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ResetUserPasswordResult == false) return false; ResetUserPasswordResult other = (ResetUserPasswordResult) obj; if (other.getUserId() == null ^ this.getUserId() == null) return false; if (other.getUserId() != null && other.getUserId().equals(this.getUserId()) == false) return false; if (other.getTemporaryPassword() == null ^ this.getTemporaryPassword() == null) return false; if (other.getTemporaryPassword() != null && other.getTemporaryPassword().equals(this.getTemporaryPassword()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUserId() == null) ? 0 : getUserId().hashCode()); hashCode = prime * hashCode + ((getTemporaryPassword() == null) ? 0 : getTemporaryPassword().hashCode()); return hashCode; } @Override public ResetUserPasswordResult clone() { try { return (ResetUserPasswordResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }