Class AsyncClientClass

    • Method Detail

      • operations

        protected List<com.squareup.javapoet.MethodSpec> operations()
        Overrides:
        operations in class AsyncClientInterface
        Returns:
        List generated of methods for all operations.
      • updateSdkClientConfigurationMethod

        protected static com.squareup.javapoet.MethodSpec updateSdkClientConfigurationMethod​(com.squareup.javapoet.TypeName serviceClientConfigurationBuilderClassName)
      • operationBody

        protected com.squareup.javapoet.MethodSpec.Builder operationBody​(com.squareup.javapoet.MethodSpec.Builder builder,
                                                                         OperationModel opModel)
        Description copied from class: AsyncClientInterface
        Add the implementation body. The interface implements all methods by throwing an UnsupportedOperationException except for simple method overloads which just delegate to the traditional request/response method. This is overridden in AsyncClientClass to add an actual implementation.
        Overrides:
        operationBody in class AsyncClientInterface
        Parameters:
        builder - Current MethodSpec.Builder to add implementation to.
        opModel - Operation to generate method body for.
        Returns:
        Builder with method body added.
      • className

        public com.squareup.javapoet.ClassName className()
        Specified by:
        className in interface ClassSpec
        Overrides:
        className in class AsyncClientInterface
        Returns:
        The Poet representation of the class being generated, this may be used by other classes
      • staticImports

        public Iterable<StaticImport> staticImports()
        Description copied from interface: ClassSpec
        An optional hook to allow inclusion of static imports for example converting:
        
         import software.amazon.awssdk.utils.StringUtils;
         //...
           if(StringUtils.isBlank(value))...
         
        to
        
         import software.amazon.awssdk.utils.StringUtils.isBlank;
         //...
           if(isBlank(value))...
         
        Returns:
        the static imports to include