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

        if (obj instanceof AssociatedRole == false)
            return false;
        AssociatedRole other = (AssociatedRole) obj;
        if (other.getAssociatedRoleArn() == null ^ this.getAssociatedRoleArn() == null)
            return false;
        if (other.getAssociatedRoleArn() != null && other.getAssociatedRoleArn().equals(this.getAssociatedRoleArn()) == false)
            return false;
        if (other.getCertificateS3BucketName() == null ^ this.getCertificateS3BucketName() == null)
            return false;
        if (other.getCertificateS3BucketName() != null && other.getCertificateS3BucketName().equals(this.getCertificateS3BucketName()) == false)
            return false;
        if (other.getCertificateS3ObjectKey() == null ^ this.getCertificateS3ObjectKey() == null)
            return false;
        if (other.getCertificateS3ObjectKey() != null && other.getCertificateS3ObjectKey().equals(this.getCertificateS3ObjectKey()) == false)
            return false;
        if (other.getEncryptionKmsKeyId() == null ^ this.getEncryptionKmsKeyId() == null)
            return false;
        if (other.getEncryptionKmsKeyId() != null && other.getEncryptionKmsKeyId().equals(this.getEncryptionKmsKeyId()) == 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-ec2/src/main/java/com/amazonaws/services/ec2/model/AssociatedRole.java