Package ai.extend.types
Class WebhookSubscription
- java.lang.Object
-
- ai.extend.types.WebhookSubscription
-
public final class WebhookSubscription extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceWebhookSubscription._FinalStagestatic classWebhookSubscription.Builderstatic interfaceWebhookSubscription.CreatedAtStagestatic interfaceWebhookSubscription.IdStagestatic interfaceWebhookSubscription.ResourceIdStagestatic interfaceWebhookSubscription.ResourceTypeStagestatic interfaceWebhookSubscription.WebhookEndpointIdStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WebhookSubscription.IdStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.time.OffsetDateTimegetCreatedAt()java.util.List<WebhookSubscriptionEventType>getEnabledEvents()java.lang.StringgetId()java.lang.StringgetObject()java.lang.StringgetResourceId()WebhookSubscriptionResourceTypegetResourceType()java.lang.StringgetWebhookEndpointId()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getObject
public java.lang.String getObject()
-
getId
public java.lang.String getId()
- Returns:
- Unique identifier for the webhook subscription.
-
getWebhookEndpointId
public java.lang.String getWebhookEndpointId()
- Returns:
- The ID of the webhook endpoint this subscription belongs to.
-
getResourceType
public WebhookSubscriptionResourceType getResourceType()
-
getResourceId
public java.lang.String getResourceId()
- Returns:
- The ID of the resource this subscription is scoped to (e.g., an extractor, classifier, splitter, or workflow).
-
getEnabledEvents
public java.util.List<WebhookSubscriptionEventType> getEnabledEvents()
- Returns:
- The list of event types this subscription is subscribed to. The valid event types depend on the
resourceType.
-
getCreatedAt
public java.time.OffsetDateTime getCreatedAt()
- Returns:
- The date and time the webhook subscription was created.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static WebhookSubscription.IdStage builder()
-
-