@Override
    public int hashCode() {
        int result = partition != null ? partition.hashCode() : 0;
        result = 31 * result + (region != null ? region.hashCode() : 0);
        result = 31 * result + (accountId != null ? accountId.hashCode() : 0);
        result = 31 * result + accessPointName.hashCode();
        result = 31 * result + (parentS3Resource != null ? parentS3Resource.hashCode() : 0);
        return result;
    }
Gets the optional parent s3 resource
@return the parent s3 resource if exists, otherwise null
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/S3AccessPointResource.java