public static final class OvfWarning.Builder
extends java.lang.Object
OvfWarning
.Constructor and Description |
---|
Builder(OvfMessage.Category category)
Constructor with parameters for the required properties of
OvfWarning . |
Modifier and Type | Method and Description |
---|---|
OvfWarning |
build() |
OvfWarning.Builder |
setError(Structure error)
Represents a server
Error . |
OvfWarning.Builder |
setIssues(java.util.List<ParseIssue> issues)
List of parse issues (see ParseIssue ). |
OvfWarning.Builder |
setMessage(LocalizableMessage message)
A localizable message.
|
OvfWarning.Builder |
setName(java.lang.String name)
The name of input parameter.
|
OvfWarning.Builder |
setValue(java.lang.String value)
The value of input parameter.
|
public Builder(OvfMessage.Category category)
OvfWarning
.public OvfWarning.Builder setIssues(java.util.List<ParseIssue> issues)
List
of parse issues (see ParseIssue
).
This property is optional and it is only relevant when the value of getCategory()
is OvfMessage.Category.VALIDATION
.issues
- New value for the property.public OvfWarning.Builder setName(java.lang.String name)
getCategory()
is OvfMessage.Category.INPUT
.name
- New value for the property.public OvfWarning.Builder setValue(java.lang.String value)
getCategory()
is OvfMessage.Category.INPUT
.value
- New value for the property.public OvfWarning.Builder setMessage(LocalizableMessage message)
getCategory()
is OvfMessage.Category.INPUT
.message
- New value for the property.public OvfWarning.Builder setError(Structure error)
Error
.
This property is optional and it is only relevant when the value of getCategory()
is OvfMessage.Category.SERVER
.public OvfWarning build()