public final class NotificationModelBuilder extends Object
NotificationModel instances.| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.meta.model.notification.NotificationModel |
build() |
static NotificationModelBuilder |
newNotification(org.mule.runtime.api.component.ComponentIdentifier identifier)
Creates a builder to be able to create
NotificationModel instances from a notification ComponentIdentifier |
static NotificationModelBuilder |
newNotification(String identifier,
String namespace)
Creates a builder to be able to create
NotificationModel instances |
NotificationModelBuilder |
withType(org.mule.metadata.api.model.MetadataType type) |
public static NotificationModelBuilder newNotification(String identifier, String namespace)
NotificationModel instancesidentifier - The identifier of the NotificationModel to create.namespace - adds a namespace to the NotificationModel that is being builtNotificationModelBuilder initialized with the typeNamepublic static NotificationModelBuilder newNotification(org.mule.runtime.api.component.ComponentIdentifier identifier)
NotificationModel instances from a notification ComponentIdentifieridentifier - The identifier of the notification to create.NotificationModelBuilder initialized with the identifiers name and namespacepublic NotificationModelBuilder withType(org.mule.metadata.api.model.MetadataType type)
type - the type of data the NotificationModel providesNotificationModelBuilderpublic org.mule.runtime.api.meta.model.notification.NotificationModel build()
NotificationModel instanceCopyright © 2024 MuleSoft, Inc.. All rights reserved.