@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUserName() == null) ? 0 : getUserName().hashCode()); hashCode = prime * hashCode + ((getSSHPublicKeyId() == null) ? 0 : getSSHPublicKeyId().hashCode()); hashCode = prime * hashCode + ((getFingerprint() == null) ? 0 : getFingerprint().hashCode()); hashCode = prime * hashCode + ((getSSHPublicKeyBody() == null) ? 0 : getSSHPublicKeyBody().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 + ((getSSHPublicKey() == null) ? 0 : getSSHPublicKey().hashCode()); return hashCode; }
/** * <p> * The MD5 message digest of the SSH public key. * </p> * * @param fingerprint * The MD5 message digest of the SSH public key. * @return Returns a reference to this object so that method calls can be chained together. */ public SSHPublicKey withFingerprint(String fingerprint) { setFingerprint(fingerprint); return this; }
public SSHPublicKey unmarshall(StaxUnmarshallerContext context) throws Exception { SSHPublicKey sSHPublicKey = new SSHPublicKey(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; sSHPublicKey.setUserName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; sSHPublicKey.setSSHPublicKeyId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; sSHPublicKey.setFingerprint(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; sSHPublicKey.setSSHPublicKeyBody(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; sSHPublicKey.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; sSHPublicKey.setUploadDate(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UploadSSHPublicKeyResult == false) return false; UploadSSHPublicKeyResult other = (UploadSSHPublicKeyResult) obj; if (other.getSSHPublicKey() == null ^ this.getSSHPublicKey() == null) return false; if (other.getSSHPublicKey() != null && other.getSSHPublicKey().equals(this.getSSHPublicKey()) == false) return false; return true; }
public SSHPublicKey unmarshall(StaxUnmarshallerContext context) throws Exception { SSHPublicKey sSHPublicKey = new SSHPublicKey(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; sSHPublicKey.setUserName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; sSHPublicKey.setSSHPublicKeyId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; sSHPublicKey.setFingerprint(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; sSHPublicKey.setSSHPublicKeyBody(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; sSHPublicKey.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; sSHPublicKey.setUploadDate(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetSSHPublicKeyResult == false) return false; GetSSHPublicKeyResult other = (GetSSHPublicKeyResult) obj; if (other.getSSHPublicKey() == null ^ this.getSSHPublicKey() == null) return false; if (other.getSSHPublicKey() != null && other.getSSHPublicKey().equals(this.getSSHPublicKey()) == false) return false; return true; }
return false; SSHPublicKey other = (SSHPublicKey) obj; if (other.getUserName() == null ^ this.getUserName() == null) return false; if (other.getUserName() != null && other.getUserName().equals(this.getUserName()) == false) return false; if (other.getSSHPublicKeyId() == null ^ this.getSSHPublicKeyId() == null) return false; if (other.getSSHPublicKeyId() != null && other.getSSHPublicKeyId().equals(this.getSSHPublicKeyId()) == false) return false; if (other.getFingerprint() == null ^ this.getFingerprint() == null) return false; if (other.getFingerprint() != null && other.getFingerprint().equals(this.getFingerprint()) == false) return false; if (other.getSSHPublicKeyBody() == null ^ this.getSSHPublicKeyBody() == null) return false; if (other.getSSHPublicKeyBody() != null && other.getSSHPublicKeyBody().equals(this.getSSHPublicKeyBody()) == 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;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSSHPublicKey() == null) ? 0 : getSSHPublicKey().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetSSHPublicKeyResult == false) return false; GetSSHPublicKeyResult other = (GetSSHPublicKeyResult) obj; if (other.getSSHPublicKey() == null ^ this.getSSHPublicKey() == null) return false; if (other.getSSHPublicKey() != null && other.getSSHPublicKey().equals(this.getSSHPublicKey()) == false) return false; return true; }
/** * <p> * The MD5 message digest of the SSH public key. * </p> * * @param fingerprint * The MD5 message digest of the SSH public key. * @return Returns a reference to this object so that method calls can be chained together. */ public SSHPublicKey withFingerprint(String fingerprint) { setFingerprint(fingerprint); 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 (getUserName() != null) sb.append("UserName: ").append(getUserName()).append(","); if (getSSHPublicKeyId() != null) sb.append("SSHPublicKeyId: ").append(getSSHPublicKeyId()).append(","); if (getFingerprint() != null) sb.append("Fingerprint: ").append(getFingerprint()).append(","); if (getSSHPublicKeyBody() != null) sb.append("SSHPublicKeyBody: ").append(getSSHPublicKeyBody()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getUploadDate() != null) sb.append("UploadDate: ").append(getUploadDate()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSSHPublicKey() == null) ? 0 : getSSHPublicKey().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UploadSSHPublicKeyResult == false) return false; UploadSSHPublicKeyResult other = (UploadSSHPublicKeyResult) obj; if (other.getSSHPublicKey() == null ^ this.getSSHPublicKey() == null) return false; if (other.getSSHPublicKey() != null && other.getSSHPublicKey().equals(this.getSSHPublicKey()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUserName() == null) ? 0 : getUserName().hashCode()); hashCode = prime * hashCode + ((getSSHPublicKeyId() == null) ? 0 : getSSHPublicKeyId().hashCode()); hashCode = prime * hashCode + ((getFingerprint() == null) ? 0 : getFingerprint().hashCode()); hashCode = prime * hashCode + ((getSSHPublicKeyBody() == null) ? 0 : getSSHPublicKeyBody().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 + ((getSSHPublicKey() == null) ? 0 : getSSHPublicKey().hashCode()); return hashCode; }
return false; SSHPublicKey other = (SSHPublicKey) obj; if (other.getUserName() == null ^ this.getUserName() == null) return false; if (other.getUserName() != null && other.getUserName().equals(this.getUserName()) == false) return false; if (other.getSSHPublicKeyId() == null ^ this.getSSHPublicKeyId() == null) return false; if (other.getSSHPublicKeyId() != null && other.getSSHPublicKeyId().equals(this.getSSHPublicKeyId()) == false) return false; if (other.getFingerprint() == null ^ this.getFingerprint() == null) return false; if (other.getFingerprint() != null && other.getFingerprint().equals(this.getFingerprint()) == false) return false; if (other.getSSHPublicKeyBody() == null ^ this.getSSHPublicKeyBody() == null) return false; if (other.getSSHPublicKeyBody() != null && other.getSSHPublicKeyBody().equals(this.getSSHPublicKeyBody()) == 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 (getSSHPublicKeyId() != null) sb.append("SSHPublicKeyId: ").append(getSSHPublicKeyId()).append(","); if (getFingerprint() != null) sb.append("Fingerprint: ").append(getFingerprint()).append(","); if (getSSHPublicKeyBody() != null) sb.append("SSHPublicKeyBody: ").append(getSSHPublicKeyBody()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getUploadDate() != null) sb.append("UploadDate: ").append(getUploadDate()); sb.append("}"); return sb.toString(); }