public static class LogMessage.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String level,
String msg,
String code)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and 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.
|
public LogMessage build()
public LogMessage.Builder level(String level)
level
- the levelpublic LogMessage.Builder msg(String msg)
msg
- the msgpublic LogMessage.Builder code(String code)
code
- the codepublic LogMessage.Builder source(LogMessageSource source)
source
- the sourceCopyright © 2022 IBM Cloud. All rights reserved.