Class KeyAttributeDefinitionPair

java.lang.Object
org.mule.runtime.dsl.api.component.KeyAttributeDefinitionPair

public final class KeyAttributeDefinitionPair extends Object
Holder for a pair of a map key and its value attribute definition. When AttributeDefinition.Builder.fromMultipleDefinitions(KeyAttributeDefinitionPair...) is used, this class allows to define the AttributeDefinition and the key to be used for the generated map holding the attribute value. The #Builder must be used to create instances for KeyAttributeDefinitionPair.
Since:
4.0
  • Constructor Details

    • KeyAttributeDefinitionPair

      public KeyAttributeDefinitionPair()
  • Method Details

    • getKey

      public String getKey()
      Returns:
      the map key for holding the value provided by the value generated after processing #getAttributeDefinition()
    • getAttributeDefinition

      public AttributeDefinition getAttributeDefinition()
      Returns:
      the definition for getting a value from a configuration model.
    • newBuilder

      public static KeyAttributeDefinitionPair.Builder newBuilder()
      Returns:
      builder for KeyAttributeDefinitionPair