Class LogMessage.Builder

java.lang.Object
com.ibm.watson.assistant.v1.model.LogMessage.Builder
Enclosing class:
LogMessage

public static class LogMessage.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String level, String msg, String code)
      Instantiates a new builder with required properties.
      Parameters:
      level - the level
      msg - the msg
      code - the code
  • Method Details

    • build

      public LogMessage build()
      Builds a LogMessage.
      Returns:
      the new LogMessage instance
    • level

      public LogMessage.Builder level​(String level)
      Set the level.
      Parameters:
      level - the level
      Returns:
      the LogMessage builder
    • msg

      public LogMessage.Builder msg​(String msg)
      Set the msg.
      Parameters:
      msg - the msg
      Returns:
      the LogMessage builder
    • code

      public LogMessage.Builder code​(String code)
      Set the code.
      Parameters:
      code - the code
      Returns:
      the LogMessage builder
    • source

      public LogMessage.Builder source​(LogMessageSource source)
      Set the source.
      Parameters:
      source - the source
      Returns:
      the LogMessage builder