Package com.openai.models.moderations
Class ModerationCreateResponse
-
- All Implemented Interfaces:
public final class ModerationCreateResponseRepresents if a given text input is potentially harmful.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classModerationCreateResponse.BuilderA builder for ModerationCreateResponse.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique identifier for the moderation request. final Stringmodel()The model used to generate the moderation results. final List<Moderation>results()A list of moderation objects. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_model()Returns the raw JSON value of model. final JsonField<List<Moderation>>_results()Returns the raw JSON value of results. final Map<String, JsonValue>_additionalProperties()final ModerationCreateResponse.BuildertoBuilder()final ModerationCreateResponsevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ModerationCreateResponse.Builderbuilder()Returns a mutable builder for constructing an instance of ModerationCreateResponse. -
-
Method Detail
-
results
final List<Moderation> results()
A list of moderation objects.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<String> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_results
final JsonField<List<Moderation>> _results()
Returns the raw JSON value of results.
Unlike results, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ModerationCreateResponse.Builder toBuilder()
-
validate
final ModerationCreateResponse validate()
-
builder
final static ModerationCreateResponse.Builder builder()
Returns a mutable builder for constructing an instance of ModerationCreateResponse.
The following fields are required:
.id() .model() .results()
-
-
-
-