Class VLookupBuilder


public class VLookupBuilder extends AbstractInputBuilder<VLookupBuilder,Object>
Builder class for input type Lookup InputType.LOOKUP.
  • Constructor Details

  • Method Details

    • setAttributeName

      public VLookupBuilder setAttributeName(String attributeName)
      Sets a new attribute for the VLookupBuilder instance.

      Example:

      
       api.inputBuilderFactory()
            .createVLookup("lookup")
            .setAttributeName("myFavoriteLookup")
            .setKeys([KEY1: "key1", KEY2: "key2"])
            .buildContextParameter()
       
      Parameters:
      attributeName - name of the attribute, as a String
      Returns:
      self
    • setAttributeNames

      public VLookupBuilder setAttributeNames(List<String> attributeNames)
      Sets new list of the attributes for the VLookupBuilder instance.

      Example:

      
       api.inputBuilderFactory()
            .createVLookup("lookup")
            .setAttributeNames(["name1", "name2"])
            .setKeys([KEY1: "key1", KEY2: "key2"])
            .buildContextParameter()
       
      Parameters:
      attributeNames - names of the attributes, as a List
      Returns:
      self
    • setKeys

      public VLookupBuilder setKeys(Map keys)
      Set Map of keys for the VLookupBuilder instance.

      Example:

      
       api.inputBuilderFactory()
            .createVLookup("lookup")
            .setAttributeNames(["name1", "name2"])
            .setKeys([KEY1: "key1", KEY2: "key2"])
            .buildContextParameter()
       
      Parameters:
      keys - keys to be set, as a Map
      Returns:
      self
    • _getInput

      protected Object _getInput()
      Specified by:
      _getInput in class AbstractInputBuilder<VLookupBuilder,Object>