Interface NotificationConfiguration.Builder

    • Method Detail

      • channels

        NotificationConfiguration.Builder channels​(Collection<Channel> channels)

        List of up to two channels to be used for sending notifications for events detected from the application profile.

        Parameters:
        channels - List of up to two channels to be used for sending notifications for events detected from the application profile.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • channels

        NotificationConfiguration.Builder channels​(Channel... channels)

        List of up to two channels to be used for sending notifications for events detected from the application profile.

        Parameters:
        channels - List of up to two channels to be used for sending notifications for events detected from the application profile.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • channels

        NotificationConfiguration.Builder channels​(Consumer<Channel.Builder>... channels)

        List of up to two channels to be used for sending notifications for events detected from the application profile.

        This is a convenience method that creates an instance of the Channel.Builder avoiding the need to create one manually via Channel.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #channels(List).

        Parameters:
        channels - a consumer that will call methods on Channel.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #channels(java.util.Collection)