@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof PublicKey == false)
            return false;
        PublicKey other = (PublicKey) obj;
        if (other.getValue() == null ^ this.getValue() == null)
            return false;
        if (other.getValue() != null && other.getValue().equals(this.getValue()) == false)
            return false;
        if (other.getValidityStartTime() == null ^ this.getValidityStartTime() == null)
            return false;
        if (other.getValidityStartTime() != null && other.getValidityStartTime().equals(this.getValidityStartTime()) == false)
            return false;
        if (other.getValidityEndTime() == null ^ this.getValidityEndTime() == null)
            return false;
        if (other.getValidityEndTime() != null && other.getValidityEndTime().equals(this.getValidityEndTime()) == false)
            return false;
        if (other.getFingerprint() == null ^ this.getFingerprint() == null)
            return false;
        if (other.getFingerprint() != null && other.getFingerprint().equals(this.getFingerprint()) == 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()
aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/model/PublicKey.java