@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUserName() == null) ? 0 : getUserName().hashCode()); hashCode = prime * hashCode + ((getCertificateId() == null) ? 0 : getCertificateId().hashCode()); hashCode = prime * hashCode + ((getCertificateBody() == null) ? 0 : getCertificateBody().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getUploadDate() == null) ? 0 : getUploadDate().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificate() == null) ? 0 : getCertificate().hashCode()); return hashCode; }
/** * Constructs a new SigningCertificate object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param userName * The name of the user the signing certificate is associated with. * @param certificateId * The ID for the signing certificate. * @param certificateBody * The contents of the signing certificate. * @param status * The status of the signing certificate. <code>Active</code> means that the key is valid for API calls, * while <code>Inactive</code> means it is not. */ public SigningCertificate(String userName, String certificateId, String certificateBody, String status) { setUserName(userName); setCertificateId(certificateId); setCertificateBody(certificateBody); setStatus(status); }
public SigningCertificate unmarshall(StaxUnmarshallerContext context) throws Exception { SigningCertificate signingCertificate = new SigningCertificate(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; signingCertificate.setUserName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; signingCertificate.setCertificateId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; signingCertificate.setCertificateBody(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; signingCertificate.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; signingCertificate.setUploadDate(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue;
/** * <p> * The ID for the signing certificate. * </p> * * @param certificateId * The ID for the signing certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public SigningCertificate withCertificateId(String certificateId) { setCertificateId(certificateId); return this; }
/** * <p> * The contents of the signing certificate. * </p> * * @param certificateBody * The contents of the signing certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public SigningCertificate withCertificateBody(String certificateBody) { setCertificateBody(certificateBody); return this; }
@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; }
public SigningCertificate unmarshall(StaxUnmarshallerContext context) throws Exception { SigningCertificate signingCertificate = new SigningCertificate(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; signingCertificate.setUserName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; signingCertificate.setCertificateId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; signingCertificate.setCertificateBody(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; signingCertificate.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; signingCertificate.setUploadDate(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue;
/** * <p> * The ID for the signing certificate. * </p> * * @param certificateId * The ID for the signing certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public SigningCertificate withCertificateId(String certificateId) { setCertificateId(certificateId); return this; }
/** * <p> * The contents of the signing certificate. * </p> * * @param certificateBody * The contents of the signing certificate. * @return Returns a reference to this object so that method calls can be chained together. */ public SigningCertificate withCertificateBody(String certificateBody) { setCertificateBody(certificateBody); return this; }
@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; }
return false; SigningCertificate other = (SigningCertificate) obj; if (other.getUserName() == null ^ this.getUserName() == null) return false; if (other.getUserName() != null && other.getUserName().equals(this.getUserName()) == false) return false; if (other.getCertificateId() == null ^ this.getCertificateId() == null) return false; if (other.getCertificateId() != null && other.getCertificateId().equals(this.getCertificateId()) == false) return false; if (other.getCertificateBody() == null ^ this.getCertificateBody() == null) return false; if (other.getCertificateBody() != null && other.getCertificateBody().equals(this.getCertificateBody()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getUploadDate() == null ^ this.getUploadDate() == null) return false; if (other.getUploadDate() != null && other.getUploadDate().equals(this.getUploadDate()) == false) return false; return true;
/** * Constructs a new SigningCertificate object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param userName * The name of the user the signing certificate is associated with. * @param certificateId * The ID for the signing certificate. * @param certificateBody * The contents of the signing certificate. * @param status * The status of the signing certificate. <code>Active</code> means that the key is valid for API calls, * while <code>Inactive</code> means it is not. */ public SigningCertificate(String userName, String certificateId, String certificateBody, StatusType status) { setUserName(userName); setCertificateId(certificateId); setCertificateBody(certificateBody); setStatus(status.toString()); }
@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 (getUserName() != null) sb.append("UserName: ").append(getUserName()).append(","); if (getCertificateId() != null) sb.append("CertificateId: ").append(getCertificateId()).append(","); if (getCertificateBody() != null) sb.append("CertificateBody: ").append(getCertificateBody()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getUploadDate() != null) sb.append("UploadDate: ").append(getUploadDate()); sb.append("}"); return sb.toString(); }
/** * Constructs a new SigningCertificate object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param userName * The name of the user the signing certificate is associated with. * @param certificateId * The ID for the signing certificate. * @param certificateBody * The contents of the signing certificate. * @param status * The status of the signing certificate. <code>Active</code> means that the key is valid for API calls, * while <code>Inactive</code> means it is not. */ public SigningCertificate(String userName, String certificateId, String certificateBody, String status) { setUserName(userName); setCertificateId(certificateId); setCertificateBody(certificateBody); setStatus(status); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUserName() == null) ? 0 : getUserName().hashCode()); hashCode = prime * hashCode + ((getCertificateId() == null) ? 0 : getCertificateId().hashCode()); hashCode = prime * hashCode + ((getCertificateBody() == null) ? 0 : getCertificateBody().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getUploadDate() == null) ? 0 : getUploadDate().hashCode()); return hashCode; }
/** * Constructs a new SigningCertificate object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param userName * The name of the user the signing certificate is associated with. * @param certificateId * The ID for the signing certificate. * @param certificateBody * The contents of the signing certificate. * @param status * The status of the signing certificate. <code>Active</code> means that the key is valid for API calls, * while <code>Inactive</code> means it is not. */ public SigningCertificate(String userName, String certificateId, String certificateBody, StatusType status) { setUserName(userName); setCertificateId(certificateId); setCertificateBody(certificateBody); setStatus(status.toString()); }
return false; SigningCertificate other = (SigningCertificate) obj; if (other.getUserName() == null ^ this.getUserName() == null) return false; if (other.getUserName() != null && other.getUserName().equals(this.getUserName()) == false) return false; if (other.getCertificateId() == null ^ this.getCertificateId() == null) return false; if (other.getCertificateId() != null && other.getCertificateId().equals(this.getCertificateId()) == false) return false; if (other.getCertificateBody() == null ^ this.getCertificateBody() == null) return false; if (other.getCertificateBody() != null && other.getCertificateBody().equals(this.getCertificateBody()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getUploadDate() == null ^ this.getUploadDate() == null) return false; if (other.getUploadDate() != null && other.getUploadDate().equals(this.getUploadDate()) == 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 (getCertificateId() != null) sb.append("CertificateId: ").append(getCertificateId()).append(","); if (getCertificateBody() != null) sb.append("CertificateBody: ").append(getCertificateBody()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getUploadDate() != null) sb.append("UploadDate: ").append(getUploadDate()); sb.append("}"); return sb.toString(); }