java.lang.Object
org.mule.runtime.extension.api.model.notification.NotificationModelBuilder

public final class NotificationModelBuilder extends Object
Builder pattern implementation to build NotificationModel instances.
Since:
1.1
  • Method Details

    • newNotification

      public static NotificationModelBuilder newNotification(String identifier, String namespace)
      Creates a builder to be able to create NotificationModel instances
      Parameters:
      identifier - The identifier of the NotificationModel to create.
      namespace - adds a namespace to the NotificationModel that is being built
      Returns:
      An NotificationModelBuilder initialized with the typeName
    • newNotification

      public static NotificationModelBuilder newNotification(org.mule.runtime.api.component.ComponentIdentifier identifier)
      Creates a builder to be able to create NotificationModel instances from a notification ComponentIdentifier
      Parameters:
      identifier - The identifier of the notification to create.
      Returns:
      An NotificationModelBuilder initialized with the identifiers name and namespace
    • withType

      public NotificationModelBuilder withType(org.mule.metadata.api.model.MetadataType type)
      Parameters:
      type - the type of data the NotificationModel provides
      Returns:
      the contributed NotificationModelBuilder
    • build

      public org.mule.runtime.api.meta.model.notification.NotificationModel build()
      Returns:
      a new NotificationModel instance