* A base64-encoded public key of the ssh-rsa
type.
*
* A base64-encoded RSA private key. *
*/ private String privateKeyBase64; /** ** The timestamp when the default key pair was created. *
*/ private java.util.Date createdAt; /** *
* A base64-encoded public key of the ssh-rsa
type.
*
ssh-rsa
type.
*/
public void setPublicKeyBase64(String publicKeyBase64) {
this.publicKeyBase64 = publicKeyBase64;
}
/**
*
* A base64-encoded public key of the ssh-rsa
type.
*
ssh-rsa
type.
*/
public String getPublicKeyBase64() {
return this.publicKeyBase64;
}
/**
*
* A base64-encoded public key of the ssh-rsa
type.
*
ssh-rsa
type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DownloadDefaultKeyPairResult withPublicKeyBase64(String publicKeyBase64) {
setPublicKeyBase64(publicKeyBase64);
return this;
}
/**
* * A base64-encoded RSA private key. *
* * @param privateKeyBase64 * A base64-encoded RSA private key. */ public void setPrivateKeyBase64(String privateKeyBase64) { this.privateKeyBase64 = privateKeyBase64; } /** ** A base64-encoded RSA private key. *
* * @return A base64-encoded RSA private key. */ public String getPrivateKeyBase64() { return this.privateKeyBase64; } /** ** A base64-encoded RSA private key. *
* * @param privateKeyBase64 * A base64-encoded RSA private key. * @return Returns a reference to this object so that method calls can be chained together. */ public DownloadDefaultKeyPairResult withPrivateKeyBase64(String privateKeyBase64) { setPrivateKeyBase64(privateKeyBase64); return this; } /** ** The timestamp when the default key pair was created. *
* * @param createdAt * The timestamp when the default key pair was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** ** The timestamp when the default key pair was created. *
* * @return The timestamp when the default key pair was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** ** The timestamp when the default key pair was created. *
* * @param createdAt * The timestamp when the default key pair was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DownloadDefaultKeyPairResult withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); 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 (getPublicKeyBase64() != null) sb.append("PublicKeyBase64: ").append(getPublicKeyBase64()).append(","); if (getPrivateKeyBase64() != null) sb.append("PrivateKeyBase64: ").append(getPrivateKeyBase64()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DownloadDefaultKeyPairResult == false) return false; DownloadDefaultKeyPairResult other = (DownloadDefaultKeyPairResult) obj; if (other.getPublicKeyBase64() == null ^ this.getPublicKeyBase64() == null) return false; if (other.getPublicKeyBase64() != null && other.getPublicKeyBase64().equals(this.getPublicKeyBase64()) == false) return false; if (other.getPrivateKeyBase64() == null ^ this.getPrivateKeyBase64() == null) return false; if (other.getPrivateKeyBase64() != null && other.getPrivateKeyBase64().equals(this.getPrivateKeyBase64()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPublicKeyBase64() == null) ? 0 : getPublicKeyBase64().hashCode()); hashCode = prime * hashCode + ((getPrivateKeyBase64() == null) ? 0 : getPrivateKeyBase64().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); return hashCode; } @Override public DownloadDefaultKeyPairResult clone() { try { return (DownloadDefaultKeyPairResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }