Class RefusalStopDetails.Builder
-
- All Implemented Interfaces:
public final class RefusalStopDetails.BuilderA builder for RefusalStopDetails.
-
-
Method Summary
-
-
Method Detail
-
category
final RefusalStopDetails.Builder category(RefusalStopDetails.Category category)
The policy category that triggered the refusal.
nullwhen the refusal doesn't map to a named category.
-
category
final RefusalStopDetails.Builder category(Optional<RefusalStopDetails.Category> category)
Alias for calling Builder.category with
category.orElse(null).
-
category
final RefusalStopDetails.Builder category(JsonField<RefusalStopDetails.Category> category)
Sets Builder.category to an arbitrary JSON value.
You should usually call Builder.category with a well-typed Category value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
explanation
final RefusalStopDetails.Builder explanation(String explanation)
Human-readable explanation of the refusal.
This text is not guaranteed to be stable.
nullwhen no explanation is available for the category.
-
explanation
final RefusalStopDetails.Builder explanation(Optional<String> explanation)
Alias for calling Builder.explanation with
explanation.orElse(null).
-
explanation
final RefusalStopDetails.Builder explanation(JsonField<String> explanation)
Sets Builder.explanation to an arbitrary JSON value.
You should usually call Builder.explanation 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 RefusalStopDetails.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("refusal")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RefusalStopDetails.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RefusalStopDetails.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RefusalStopDetails.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RefusalStopDetails.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RefusalStopDetails.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RefusalStopDetails build()
Returns an immutable instance of RefusalStopDetails.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.category() .explanation()
-
-
-
-