| Modifier and Type | Method and Description |
|---|---|
Error |
build()
Builds a new
Error. |
Error.Builder |
code(Integer code)
Initializes the value for the
code attribute. |
Error.Builder |
detail(String detail)
Initializes the value for the
detail attribute. |
Error.Builder |
from(Error instance)
Fill a builder with attribute values from the provided
Error instance. |
Error.Builder |
title(String title)
Initializes the value for the
title attribute. |
public final Error.Builder from(Error instance)
Error instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Error.Builder code(Integer code)
code attribute.code - The value for codethis builder for use in a chained invocationpublic final Error.Builder detail(String detail)
detail attribute.detail - The value for detailthis builder for use in a chained invocationpublic final Error.Builder title(String title)
title attribute.title - The value for titlethis builder for use in a chained invocationpublic Error build()
Error.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.