@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateServiceSpecificCredentialResult == false) return false; CreateServiceSpecificCredentialResult other = (CreateServiceSpecificCredentialResult) obj; if (other.getServiceSpecificCredential() == null ^ this.getServiceSpecificCredential() == null) return false; if (other.getServiceSpecificCredential() != null && other.getServiceSpecificCredential().equals(this.getServiceSpecificCredential()) == false) return false; return true; }
/** * <p> * A structure that contains information about the newly created service-specific credential. * </p> * <important> * <p> * This is the only time that the password for this credential set is available. It cannot be recovered later. * Instead, you will have to reset the password with <a>ResetServiceSpecificCredential</a>. * </p> * </important> * * @param serviceSpecificCredential * A structure that contains information about the newly created service-specific credential.</p> <important> * <p> * This is the only time that the password for this credential set is available. It cannot be recovered * later. Instead, you will have to reset the password with <a>ResetServiceSpecificCredential</a>. * </p> * @return Returns a reference to this object so that method calls can be chained together. */ public CreateServiceSpecificCredentialResult withServiceSpecificCredential(ServiceSpecificCredential serviceSpecificCredential) { setServiceSpecificCredential(serviceSpecificCredential); return this; }
public CreateServiceSpecificCredentialResult unmarshall(StaxUnmarshallerContext context) throws Exception { CreateServiceSpecificCredentialResult createServiceSpecificCredentialResult = new CreateServiceSpecificCredentialResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return createServiceSpecificCredentialResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ServiceSpecificCredential", targetDepth)) { createServiceSpecificCredentialResult.setServiceSpecificCredential(ServiceSpecificCredentialStaxUnmarshaller.getInstance().unmarshall( context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return createServiceSpecificCredentialResult; } } } }
public CreateServiceSpecificCredentialResult unmarshall(StaxUnmarshallerContext context) throws Exception { CreateServiceSpecificCredentialResult createServiceSpecificCredentialResult = new CreateServiceSpecificCredentialResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return createServiceSpecificCredentialResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("ServiceSpecificCredential", targetDepth)) { createServiceSpecificCredentialResult.setServiceSpecificCredential(ServiceSpecificCredentialStaxUnmarshaller.getInstance().unmarshall( context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return createServiceSpecificCredentialResult; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServiceSpecificCredential() == null) ? 0 : getServiceSpecificCredential().hashCode()); return hashCode; }
/** * <p> * A structure that contains information about the newly created service-specific credential. * </p> * <important> * <p> * This is the only time that the password for this credential set is available. It cannot be recovered later. * Instead, you will have to reset the password with <a>ResetServiceSpecificCredential</a>. * </p> * </important> * * @param serviceSpecificCredential * A structure that contains information about the newly created service-specific credential.</p> <important> * <p> * This is the only time that the password for this credential set is available. It cannot be recovered * later. Instead, you will have to reset the password with <a>ResetServiceSpecificCredential</a>. * </p> * @return Returns a reference to this object so that method calls can be chained together. */ public CreateServiceSpecificCredentialResult withServiceSpecificCredential(ServiceSpecificCredential serviceSpecificCredential) { setServiceSpecificCredential(serviceSpecificCredential); 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 (getServiceSpecificCredential() != null) sb.append("ServiceSpecificCredential: ").append(getServiceSpecificCredential()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateServiceSpecificCredentialResult == false) return false; CreateServiceSpecificCredentialResult other = (CreateServiceSpecificCredentialResult) obj; if (other.getServiceSpecificCredential() == null ^ this.getServiceSpecificCredential() == null) return false; if (other.getServiceSpecificCredential() != null && other.getServiceSpecificCredential().equals(this.getServiceSpecificCredential()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServiceSpecificCredential() == null) ? 0 : getServiceSpecificCredential().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 (getServiceSpecificCredential() != null) sb.append("ServiceSpecificCredential: ").append(getServiceSpecificCredential()); sb.append("}"); return sb.toString(); }