Class AlertsExtension.Builder

  • Enclosing class:
    AlertsExtension

    public static class AlertsExtension.Builder
    extends java.lang.Object
    Builder for configuring the alerts extension.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.lang.String> customTypes  
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()  
    • Field Detail

      • customTypes

        private final java.util.Map<java.lang.String,​java.lang.String> customTypes
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • addCustomType

        public AlertsExtension.Builder addCustomType​(java.lang.String type,
                                                     java.lang.String title)
        Adds a custom alert type with a display title.

        This can also be used to override the display title of standard GFM types (e.g., for localization).

        Parameters:
        type - the alert type (must be uppercase)
        title - the display title for this alert type
        Returns:
        this