@SuppressWarnings({"rawtypes", "unchecked"})
    public RequestHandler putLifecycleAsyncRequest(
            PutBucketLifecycleInput input, ResponseCallBack<PutBucketLifecycleOutput> callback)
            throws QSException {
        if (input == null) {
            input = new PutBucketLifecycleInput();
        }

        Map context = new HashMap();
        context.put(QSConstant.PARAM_KEY_REQUEST_ZONE, this.zone);
        context.put(QSConstant.EVN_CONTEXT_KEY, this.envContext);
        context.put("OperationName", "PutBucketLifecycle");
        context.put("APIName", "PutBucketLifecycle");
        context.put("ServiceName", "PUT Bucket Lifecycle");
        context.put("RequestMethod", "PUT");
        context.put("RequestURI", "/<bucket-name>?lifecycle");
        context.put("bucketNameInput", this.bucketName);

        if (QSStringUtil.isEmpty(bucketName)) {
            throw new QSException("bucketName can't be empty!");
        }

        if (callback == null) {
            throw new QSException("callback can't be null");
        }

        RequestHandler requestHandler =
                ResourceRequestFactory.getResourceRequest()
                        .getRequestAsync(context, input, callback);
        return requestHandler;
    }
@ SuppressWarnings ( { "rawtypes" , "unchecked" } ) public RequestHandler putLifecycleAsyncRequest ( PutBucketLifecycleInput input , ResponseCallBack < PutBucketLifecycleOutput > callback ) throws QSException { if ( input == null ) { input = new PutBucketLifecycleInput ( ) ; } Map context = new HashMap ( ) ; context . put ( QSConstant . PARAM_KEY_REQUEST_ZONE , this . zone ) ; context . put ( QSConstant . EVN_CONTEXT_KEY , this . envContext ) ; context . put ( "OperationName" , "PutBucketLifecycle" ) ; context . put ( "APIName" , "PutBucketLifecycle" ) ; context . put ( "ServiceName" , "PUT Bucket Lifecycle" ) ; context . put ( "RequestMethod" , "PUT" ) ; context . put ( "RequestURI" , "/<bucket-name>?lifecycle" ) ; context . put ( "bucketNameInput" , this . bucketName ) ; if ( QSStringUtil . isEmpty ( bucketName ) ) { throw new QSException ( "bucketName can't be empty!" ) ; } if ( callback == null ) { throw new QSException ( "callback can't be null" ) ; } RequestHandler requestHandler = ResourceRequestFactory . getResourceRequest ( ) . getRequestAsync ( context , input , callback ) ; return requestHandler ; }
@param input the input
@param callback response callback
@throws QSException exception
@return RequestHandler http request handler Documentation URL: <a
href="https://docs.qingcloud.com/qingstor/api/bucket/lifecycle/put_lifecycle.html">https://docs.qingcloud.com/qingstor/api/bucket/lifecycle/put_lifecycle.html</a>