Package com.github.twitch4j.eventsub
Class EventSubSubscription.EventSubSubscriptionBuilder
java.lang.Object
com.github.twitch4j.eventsub.EventSubSubscription.EventSubSubscriptionBuilder
- Enclosing class:
- EventSubSubscription
public static class EventSubSubscription.EventSubSubscriptionBuilder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description EventSubSubscriptionbuild()EventSubSubscription.EventSubSubscriptionBuildercondition(EventSubCondition condition)Object specifying custom parameters for the subscription.EventSubSubscription.EventSubSubscriptionBuildercost(java.lang.Integer cost)How much the subscription counts against your limit.EventSubSubscription.EventSubSubscriptionBuildercreatedAt(java.time.Instant createdAt)Timestamp indicating when the subscription was created.EventSubSubscription.EventSubSubscriptionBuilderid(java.lang.String id)ID of the subscription.EventSubSubscription.EventSubSubscriptionBuilderrawType(java.lang.String rawType)The category of the subscription.EventSubSubscription.EventSubSubscriptionBuilderrawVersion(java.lang.String rawVersion)The version of the subscription.EventSubSubscription.EventSubSubscriptionBuilderstatus(EventSubSubscriptionStatus status)Status of the subscription.java.lang.StringtoString()EventSubSubscription.EventSubSubscriptionBuildertransport(EventSubTransport transport)Object indicating the notification delivery specific information.EventSubSubscription.EventSubSubscriptionBuildertype(SubscriptionType<?,?,?> type)The category and version of the subscription.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Method Details
-
id
ID of the subscription.- Returns:
this.
-
status
Status of the subscription.- Returns:
this.
-
type
The category and version of the subscription.- Returns:
this.
-
condition
Object specifying custom parameters for the subscription.- Returns:
this.
-
createdAt
Timestamp indicating when the subscription was created.- Returns:
this.
-
transport
Object indicating the notification delivery specific information.- Returns:
this.
-
cost
How much the subscription counts against your limit. Subscriptions cost 0 if the user has authorized your application; otherwise they cost 1.- Returns:
this.- See Also:
- Limit Docs
-
rawType
The category of the subscription.- Returns:
this.
-
rawVersion
The version of the subscription.- Returns:
this.
-
build
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-