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 Summary
-
Method Summary
Modifier and Type Method Description LogMessage
build()
Builds a LogMessage.LogMessage.Builder
code(String code)
Set the code.LogMessage.Builder
level(String level)
Set the level.LogMessage.Builder
msg(String msg)
Set the msg.LogMessage.Builder
source(LogMessageSource source)
Set the source.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
level
- the levelmsg
- the msgcode
- the code
-
-
Method Details
-
build
Builds a LogMessage.- Returns:
- the new LogMessage instance
-
level
Set the level.- Parameters:
level
- the level- Returns:
- the LogMessage builder
-
msg
Set the msg.- Parameters:
msg
- the msg- Returns:
- the LogMessage builder
-
code
Set the code.- Parameters:
code
- the code- Returns:
- the LogMessage builder
-
source
Set the source.- Parameters:
source
- the source- Returns:
- the LogMessage builder
-