Package com.openai.models.moderations
Class ModerationCreateResponse
-
- All Implemented Interfaces:
public final class ModerationCreateResponse
Represents if a given text input is potentially harmful.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ModerationCreateResponse.Builder
A builder for ModerationCreateResponse.
-
Method Summary
Modifier and Type Method Description final String
id()
The unique identifier for the moderation request. final String
model()
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.Builder
toBuilder()
final ModerationCreateResponse
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ModerationCreateResponse.Builder
builder()
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()
-
-
-
-