Package com.intercom.api.types
Class CreateDataEventRequest.WithUserId.Builder
- java.lang.Object
-
- com.intercom.api.types.CreateDataEventRequest.WithUserId.Builder
-
- All Implemented Interfaces:
CreateDataEventRequest.WithUserId._FinalStage,CreateDataEventRequest.WithUserId.CreatedAtStage,CreateDataEventRequest.WithUserId.EventNameStage,CreateDataEventRequest.WithUserId.UserIdStage
- Enclosing class:
- CreateDataEventRequest.WithUserId
public static final class CreateDataEventRequest.WithUserId.Builder extends java.lang.Object implements CreateDataEventRequest.WithUserId.UserIdStage, CreateDataEventRequest.WithUserId.EventNameStage, CreateDataEventRequest.WithUserId.CreatedAtStage, CreateDataEventRequest.WithUserId._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateDataEventRequest.WithUserIdbuild()CreateDataEventRequest.WithUserId._FinalStagecreatedAt(int createdAt)The time the event occurred as a UTC Unix timestampCreateDataEventRequest.WithUserId.CreatedAtStageeventName(java.lang.String eventName)The name of the event that occurred.CreateDataEventRequest.WithUserId.Builderfrom(CreateDataEventRequest.WithUserId other)CreateDataEventRequest.WithUserId._FinalStagemetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Optional metadata about the event.CreateDataEventRequest.WithUserId._FinalStagemetadata(java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> metadata)Optional metadata about the event.CreateDataEventRequest.WithUserId.EventNameStageuserId(java.lang.String userId)Your identifier for the user.
-
-
-
Method Detail
-
from
public CreateDataEventRequest.WithUserId.Builder from(CreateDataEventRequest.WithUserId other)
- Specified by:
fromin interfaceCreateDataEventRequest.WithUserId.UserIdStage
-
userId
public CreateDataEventRequest.WithUserId.EventNameStage userId(@NotNull java.lang.String userId)
Your identifier for the user.
Your identifier for the user.
- Specified by:
userIdin interfaceCreateDataEventRequest.WithUserId.UserIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
eventName
public CreateDataEventRequest.WithUserId.CreatedAtStage eventName(@NotNull java.lang.String eventName)
The name of the event that occurred. This is presented to your App's admins when filtering and creating segments - a good event name is typically a past tense 'verb-noun' combination, to improve readability, for example
updated-plan.The name of the event that occurred. This is presented to your App's admins when filtering and creating segments - a good event name is typically a past tense 'verb-noun' combination, to improve readability, for example
updated-plan.- Specified by:
eventNamein interfaceCreateDataEventRequest.WithUserId.EventNameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public CreateDataEventRequest.WithUserId._FinalStage createdAt(int createdAt)
The time the event occurred as a UTC Unix timestamp
The time the event occurred as a UTC Unix timestamp
- Specified by:
createdAtin interfaceCreateDataEventRequest.WithUserId.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metadata
public CreateDataEventRequest.WithUserId._FinalStage metadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Optional metadata about the event.
- Specified by:
metadatain interfaceCreateDataEventRequest.WithUserId._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metadata
public CreateDataEventRequest.WithUserId._FinalStage metadata(java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> metadata)
Optional metadata about the event.
- Specified by:
metadatain interfaceCreateDataEventRequest.WithUserId._FinalStage
-
build
public CreateDataEventRequest.WithUserId build()
- Specified by:
buildin interfaceCreateDataEventRequest.WithUserId._FinalStage
-
-