@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UploadSigningCertificateResult == false) return false; UploadSigningCertificateResult other = (UploadSigningCertificateResult) obj; if (other.getCertificate() == null ^ this.getCertificate() == null) return false; if (other.getCertificate() != null && other.getCertificate().equals(this.getCertificate()) == false) return false; return true; }
/** * <p> * Information about the certificate. * </p> * * @param certificate * Information about the certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public UploadSigningCertificateResult withCertificate(SigningCertificate certificate) { setCertificate(certificate); return this; }
public UploadSigningCertificateResult unmarshall(StaxUnmarshallerContext context) throws Exception { UploadSigningCertificateResult uploadSigningCertificateResult = new UploadSigningCertificateResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return uploadSigningCertificateResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Certificate", targetDepth)) { uploadSigningCertificateResult.setCertificate(SigningCertificateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return uploadSigningCertificateResult; } } } }
public UploadSigningCertificateResult unmarshall(StaxUnmarshallerContext context) throws Exception { UploadSigningCertificateResult uploadSigningCertificateResult = new UploadSigningCertificateResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return uploadSigningCertificateResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Certificate", targetDepth)) { uploadSigningCertificateResult.setCertificate(SigningCertificateStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return uploadSigningCertificateResult; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificate() == null) ? 0 : getCertificate().hashCode()); return hashCode; }
/** * <p> * Information about the certificate. * </p> * * @param certificate * Information about the certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public UploadSigningCertificateResult withCertificate(SigningCertificate certificate) { setCertificate(certificate); 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 (getCertificate() != null) sb.append("Certificate: ").append(getCertificate()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UploadSigningCertificateResult == false) return false; UploadSigningCertificateResult other = (UploadSigningCertificateResult) obj; if (other.getCertificate() == null ^ this.getCertificate() == null) return false; if (other.getCertificate() != null && other.getCertificate().equals(this.getCertificate()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificate() == null) ? 0 : getCertificate().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 (getCertificate() != null) sb.append("Certificate: ").append(getCertificate()); sb.append("}"); return sb.toString(); }