Class BatchError.Builder
-
- All Implemented Interfaces:
public final class BatchError.Builder
A builder for BatchError.
-
-
Method Summary
Modifier and Type Method Description final BatchError.Builder
code(String code)
An error code identifying the error type. final BatchError.Builder
code(JsonField<String> code)
Sets Builder.code to an arbitrary JSON value. final BatchError.Builder
line(Long line)
The line number of the input file where the error occurred, if applicable. final BatchError.Builder
line(Long line)
Alias for Builder.line. final BatchError.Builder
line(Optional<Long> line)
Alias for calling Builder.line with line.orElse(null)
.final BatchError.Builder
line(JsonField<Long> line)
Sets Builder.line to an arbitrary JSON value. final BatchError.Builder
message(String message)
A human-readable message providing more details about the error. final BatchError.Builder
message(JsonField<String> message)
Sets Builder.message to an arbitrary JSON value. final BatchError.Builder
param(String param)
The name of the parameter that caused the error, if applicable. final BatchError.Builder
param(Optional<String> param)
Alias for calling Builder.param with param.orElse(null)
.final BatchError.Builder
param(JsonField<String> param)
Sets Builder.param to an arbitrary JSON value. final BatchError.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final BatchError.Builder
putAdditionalProperty(String key, JsonValue value)
final BatchError.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final BatchError.Builder
removeAdditionalProperty(String key)
final BatchError.Builder
removeAllAdditionalProperties(Set<String> keys)
final BatchError
build()
Returns an immutable instance of BatchError. -
-
Method Detail
-
code
final BatchError.Builder code(String code)
An error code identifying the error type.
-
code
final BatchError.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.
-
line
final BatchError.Builder line(Long line)
The line number of the input file where the error occurred, if applicable.
-
line
final BatchError.Builder line(Long line)
Alias for Builder.line.
This unboxed primitive overload exists for backwards compatibility.
-
line
final BatchError.Builder line(Optional<Long> line)
Alias for calling Builder.line with
line.orElse(null)
.
-
line
final BatchError.Builder line(JsonField<Long> line)
Sets Builder.line to an arbitrary JSON value.
You should usually call Builder.line with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
message
final BatchError.Builder message(String message)
A human-readable message providing more details about the error.
-
message
final BatchError.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 BatchError.Builder param(String param)
The name of the parameter that caused the error, if applicable.
-
param
final BatchError.Builder param(Optional<String> param)
Alias for calling Builder.param with
param.orElse(null)
.
-
param
final BatchError.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.
-
additionalProperties
final BatchError.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BatchError.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BatchError.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BatchError.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BatchError.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BatchError build()
Returns an immutable instance of BatchError.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-