Class EnableResourceHandlerBuilder

    • Method Detail

      • withEnableResourceValidator

        public EnableResourceHandlerBuilder withEnableResourceValidator​(EnableResourceValidator validator)
        Sets the EnableResourceValidator used to build the handler instance. It allows to add connector-specific logic which validates whether a resource can be enabled.
        Parameters:
        validator - custom callback implementation
        Returns:
        this builder
      • withPreEnableResourceCallback

        public EnableResourceHandlerBuilder withPreEnableResourceCallback​(PreEnableResourceCallback callback)
        Sets the PreEnableResourceCallback used to build the handler instance. It allows to add connector-specific logic which is invoked before a resource is enabled.
        Parameters:
        callback - custom callback implementation
        Returns:
        this builder
      • withPostEnableResourceCallback

        public EnableResourceHandlerBuilder withPostEnableResourceCallback​(PostEnableResourceCallback callback)
        Sets the PostEnableResourceCallback used to build the handler instance. It allows to add connector-specific logic which is invoked after a resource is enabled.
        Parameters:
        callback - custom callback implementation
        Returns:
        this builder