Class SafetyIdentifierBlockedWebhookEvent.Data
-
- All Implemented Interfaces:
public final class SafetyIdentifierBlockedWebhookEvent.DataEvent data payload.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSafetyIdentifierBlockedWebhookEvent.Data.BuilderA builder for Data.
-
Method Summary
Modifier and Type Method Description final StringsafetyCategory()The safety category that triggered the block, such as bioorcyber.final StringsafetyIdentifier()The stable safety identifier associated with the blocked request. final Optional<String>model()The model used for the blocked request, if available. final Optional<String>projectId()The project associated with the blocked request, if available. final Optional<String>requestId()The OpenAI request ID for the blocked request, if available. final JsonField<String>_safetyCategory()Returns the raw JSON value of safetyCategory. final JsonField<String>_safetyIdentifier()Returns the raw JSON value of safetyIdentifier. final JsonField<String>_model()Returns the raw JSON value of model. final JsonField<String>_projectId()Returns the raw JSON value of projectId. final JsonField<String>_requestId()Returns the raw JSON value of requestId. final Map<String, JsonValue>_additionalProperties()final SafetyIdentifierBlockedWebhookEvent.Data.BuildertoBuilder()final SafetyIdentifierBlockedWebhookEvent.Datavalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SafetyIdentifierBlockedWebhookEvent.Data.Builderbuilder()Returns a mutable builder for constructing an instance of Data. -
-
Method Detail
-
safetyCategory
final String safetyCategory()
The safety category that triggered the block, such as
bioorcyber.
-
safetyIdentifier
final String safetyIdentifier()
The stable safety identifier associated with the blocked request.
-
projectId
final Optional<String> projectId()
The project associated with the blocked request, if available.
-
requestId
final Optional<String> requestId()
The OpenAI request ID for the blocked request, if available.
-
_safetyCategory
final JsonField<String> _safetyCategory()
Returns the raw JSON value of safetyCategory.
Unlike safetyCategory, this method doesn't throw if the JSON field has an unexpected type.
-
_safetyIdentifier
final JsonField<String> _safetyIdentifier()
Returns the raw JSON value of safetyIdentifier.
Unlike safetyIdentifier, 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.
-
_projectId
final JsonField<String> _projectId()
Returns the raw JSON value of projectId.
Unlike projectId, this method doesn't throw if the JSON field has an unexpected type.
-
_requestId
final JsonField<String> _requestId()
Returns the raw JSON value of requestId.
Unlike requestId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SafetyIdentifierBlockedWebhookEvent.Data.Builder toBuilder()
-
validate
final SafetyIdentifierBlockedWebhookEvent.Data validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static SafetyIdentifierBlockedWebhookEvent.Data.Builder builder()
Returns a mutable builder for constructing an instance of Data.
The following fields are required:
.safetyCategory() .safetyIdentifier()
-
-
-
-