@Override
    public HeadBucketResult apply(HeadBucketRequest headBucketRequest) {
        return client.headBucket(headBucketRequest);
    }
Makes a call to the operation specified by the waiter by taking the
corresponding request and returns the corresponding result

@param headBucketRequest
       Corresponding request for the operation
@return Corresponding result of the operation
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/waiters/HeadBucketFunction.java