Class WarningPartsDef.Warning

java.lang.Object
com.caplin.generated.motif.fx.warning.WarningPartsDef.Warning
All Implemented Interfaces:
BuilderMessage, Message
Enclosing class:
WarningPartsDef

public static final class WarningPartsDef.Warning extends Object implements BuilderMessage
  • Method Details

    • getWarningType

      @Nullable public @Nullable String getWarningType()
      Returns:
      The type of a warning message. Caplin supported warning types are [AMEND_REASON, GENERIC]. See the constants defined within com.caplin.motif.fx.trading.WarningTypes.
    • getWarningTitle

      @Nullable public @Nullable String getWarningTitle()
      Returns:
      The title of a warning message. Supports strings and i18n tokens.
    • getWarningMessage

      @Nullable public @Nullable String getWarningMessage()
      Returns:
      The message to display for any warnings regarding a quote request. Supports Markdown syntax for formatting.
    • getFields

      @NotNull public @NotNull Map<String,String> getFields()
      Specified by:
      getFields in interface Message
    • getFieldFlags

      @NotNull public @NotNull Map<String,Collection<String>> getFieldFlags()
      Specified by:
      getFieldFlags in interface BuilderMessage
      Returns:
      Get the flags for all fields.
    • getFlagFields

      @NotNull public @NotNull Map<String,Collection<String>> getFlagFields()
      Specified by:
      getFlagFields in interface BuilderMessage
      Returns:
      Get the fields for all flags.
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object
    • from

      @NotNull public static @NotNull WarningPartsDef.Warning from(@NotNull @NotNull Map<String,String> fields)
    • from

      @NotNull public static @NotNull WarningPartsDef.Warning from(@NotNull @NotNull Map<String,String> fields, @NotNull @NotNull String fieldPrefix)
    • newBuilder

      @NotNull public static @NotNull WarningPartsDef.Warning.Builder newBuilder()