@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> * 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; } } } }
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; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoginProfile() == null) ? 0 : getLoginProfile().hashCode()); return hashCode; }
/** * <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; }
/** * 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 (getLoginProfile() != null) sb.append("LoginProfile: ").append(getLoginProfile()); sb.append("}"); return sb.toString(); }
@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; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoginProfile() == null) ? 0 : getLoginProfile().hashCode()); return hashCode; }
/** * 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 (getLoginProfile() != null) sb.append("LoginProfile: ").append(getLoginProfile()); sb.append("}"); return sb.toString(); }