All Downloads are FREE. Search and download functionalities are using the official Maven repository.

macros.asyncclientclass.ClientMethodForOperationWithSimpleForm.ftl Maven / Gradle / Ivy

<#macro content operation>
<#if operation.simpleMethodForms??>
  <#list operation.simpleMethodForms as form>

    /**
     * Simplified method form for invoking the ${operation.operationName}
     * operation.
     *
     * @see #${operation.methodName}Async(${operation.input.variableType})
     */
    @Override
    <#if operation.deprecated || form.deprecated>
      @Deprecated
    
    public ${operation.asyncFutureType} ${operation.methodName}Async(
            ${form.argumentsDeclaration}) {

        return ${operation.methodName}Async(new ${operation.input.variableType}()
                ${form.withMethodCalls});
    }

    /**
     * Simplified method form for invoking the ${operation.operationName}
     * operation with an AsyncHandler.
     *
     * @see #${operation.methodName}Async(${operation.input.variableType}, com.amazonaws.handlers.AsyncHandler)
     */
    @Override
    <#if operation.deprecated || form.deprecated>
    @Deprecated
    
    public ${operation.asyncFutureType} ${operation.methodName}Async(
            <#if form.arguments?has_content>
              ${form.argumentsDeclaration},
            
            ${operation.asyncHandlerType} asyncHandler) {

        return ${operation.methodName}Async(new ${operation.input.variableType}()
                ${form.withMethodCalls},
                asyncHandler);
    }
  






© 2015 - 2025 Weber Informatics LLC | Privacy Policy