Class ErrorObject.Builder
-
- All Implemented Interfaces:
public final class ErrorObject.Builder
A builder for ErrorObject.
-
-
Method Summary
-
-
Method Detail
-
code
final ErrorObject.Builder code(String code)
-
code
final ErrorObject.Builder code(Optional<String> code)
Alias for calling Builder.code with
code.orElse(null)
.
-
code
final ErrorObject.Builder code(JsonField<String> code)
Sets Builder.code to an arbitrary JSON value.
You should usually call Builder.code with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
message
final ErrorObject.Builder message(String message)
-
message
final ErrorObject.Builder message(JsonField<String> message)
Sets Builder.message to an arbitrary JSON value.
You should usually call Builder.message with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
param
final ErrorObject.Builder param(String param)
-
param
final ErrorObject.Builder param(Optional<String> param)
Alias for calling Builder.param with
param.orElse(null)
.
-
param
final ErrorObject.Builder param(JsonField<String> param)
Sets Builder.param to an arbitrary JSON value.
You should usually call Builder.param with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ErrorObject.Builder type(String type)
-
type
final ErrorObject.Builder type(JsonField<String> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ErrorObject.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ErrorObject.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ErrorObject.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ErrorObject.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ErrorObject.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ErrorObject build()
Returns an immutable instance of ErrorObject.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.code() .message() .param() .type()
-
-
-
-