Class SafetyIdentifierBlockedWebhookEvent.Data.Builder
-
- All Implemented Interfaces:
public final class SafetyIdentifierBlockedWebhookEvent.Data.BuilderA builder for Data.
-
-
Method Summary
-
-
Method Detail
-
safetyCategory
final SafetyIdentifierBlockedWebhookEvent.Data.Builder safetyCategory(String safetyCategory)
The safety category that triggered the block, such as
bioorcyber.
-
safetyCategory
final SafetyIdentifierBlockedWebhookEvent.Data.Builder safetyCategory(JsonField<String> safetyCategory)
Sets Builder.safetyCategory to an arbitrary JSON value.
You should usually call Builder.safetyCategory with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
safetyIdentifier
final SafetyIdentifierBlockedWebhookEvent.Data.Builder safetyIdentifier(String safetyIdentifier)
The stable safety identifier associated with the blocked request.
-
safetyIdentifier
final SafetyIdentifierBlockedWebhookEvent.Data.Builder safetyIdentifier(JsonField<String> safetyIdentifier)
Sets Builder.safetyIdentifier to an arbitrary JSON value.
You should usually call Builder.safetyIdentifier 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 SafetyIdentifierBlockedWebhookEvent.Data.Builder model(String model)
The model used for the blocked request, if available.
-
model
final SafetyIdentifierBlockedWebhookEvent.Data.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.
-
projectId
final SafetyIdentifierBlockedWebhookEvent.Data.Builder projectId(String projectId)
The project associated with the blocked request, if available.
-
projectId
final SafetyIdentifierBlockedWebhookEvent.Data.Builder projectId(JsonField<String> projectId)
Sets Builder.projectId to an arbitrary JSON value.
You should usually call Builder.projectId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
requestId
final SafetyIdentifierBlockedWebhookEvent.Data.Builder requestId(String requestId)
The OpenAI request ID for the blocked request, if available.
-
requestId
final SafetyIdentifierBlockedWebhookEvent.Data.Builder requestId(JsonField<String> requestId)
Sets Builder.requestId to an arbitrary JSON value.
You should usually call Builder.requestId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final SafetyIdentifierBlockedWebhookEvent.Data.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final SafetyIdentifierBlockedWebhookEvent.Data.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final SafetyIdentifierBlockedWebhookEvent.Data.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final SafetyIdentifierBlockedWebhookEvent.Data.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final SafetyIdentifierBlockedWebhookEvent.Data.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final SafetyIdentifierBlockedWebhookEvent.Data build()
Returns an immutable instance of Data.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.safetyCategory() .safetyIdentifier()
-
-
-
-