Class RefusalContentBlock.Builder
-
- All Implemented Interfaces:
public final class RefusalContentBlock.Builder
A builder for RefusalContentBlock.
-
-
Method Summary
Modifier and Type Method Description final RefusalContentBlock.Builder
refusal(String refusal)
final RefusalContentBlock.Builder
refusal(JsonField<String> refusal)
Sets Builder.refusal to an arbitrary JSON value. final RefusalContentBlock.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final RefusalContentBlock.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final RefusalContentBlock.Builder
putAdditionalProperty(String key, JsonValue value)
final RefusalContentBlock.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final RefusalContentBlock.Builder
removeAdditionalProperty(String key)
final RefusalContentBlock.Builder
removeAllAdditionalProperties(Set<String> keys)
final RefusalContentBlock
build()
Returns an immutable instance of RefusalContentBlock. -
-
Method Detail
-
refusal
final RefusalContentBlock.Builder refusal(String refusal)
-
refusal
final RefusalContentBlock.Builder refusal(JsonField<String> refusal)
Sets Builder.refusal to an arbitrary JSON value.
You should usually call Builder.refusal 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 RefusalContentBlock.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 RefusalContentBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RefusalContentBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RefusalContentBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RefusalContentBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RefusalContentBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RefusalContentBlock build()
Returns an immutable instance of RefusalContentBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.refusal()
-
-
-
-