Class ModerationCreateResponse.Builder
-
- All Implemented Interfaces:
public final class ModerationCreateResponse.Builder
A builder for ModerationCreateResponse.
-
-
Method Summary
-
-
Method Detail
-
id
final ModerationCreateResponse.Builder id(String id)
The unique identifier for the moderation request.
-
id
final ModerationCreateResponse.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final ModerationCreateResponse.Builder model(String model)
The model used to generate the moderation results.
-
model
final ModerationCreateResponse.Builder model(JsonField<String> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
results
final ModerationCreateResponse.Builder results(List<Moderation> results)
A list of moderation objects.
-
results
final ModerationCreateResponse.Builder results(JsonField<List<Moderation>> results)
Sets Builder.results to an arbitrary JSON value.
You should usually call Builder.results with a well-typed
List<Moderation>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addResult
final ModerationCreateResponse.Builder addResult(Moderation result)
Adds a single Moderation to results.
-
additionalProperties
final ModerationCreateResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ModerationCreateResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ModerationCreateResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ModerationCreateResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ModerationCreateResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ModerationCreateResponse build()
Returns an immutable instance of ModerationCreateResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .model() .results()
-
-
-
-