Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Message |
build() |
Message.Builder |
code(String code)
The message code.
|
Message.Builder |
copy(Message model) |
Message.Builder |
message(String message)
The message text.
|
Message.Builder |
type(Message.Type type)
The type of message (error, warning, or info).
|
public Message.Builder type(Message.Type type)
The type of message (error, warning, or info).
type
- the value to setpublic Message.Builder code(String code)
The message code.
code
- the value to setpublic Message.Builder message(String message)
The message text.
message
- the value to setpublic Message build()
public Message.Builder copy(Message model)
Copyright © 2016–2024. All rights reserved.