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