Package com.intercom.api.types
Class CreateDataEventRequest.WithId.Builder
- java.lang.Object
-
- com.intercom.api.types.CreateDataEventRequest.WithId.Builder
-
- All Implemented Interfaces:
CreateDataEventRequest.WithId._FinalStage,CreateDataEventRequest.WithId.CreatedAtStage,CreateDataEventRequest.WithId.EventNameStage,CreateDataEventRequest.WithId.IdStage
- Enclosing class:
- CreateDataEventRequest.WithId
public static final class CreateDataEventRequest.WithId.Builder extends java.lang.Object implements CreateDataEventRequest.WithId.IdStage, CreateDataEventRequest.WithId.EventNameStage, CreateDataEventRequest.WithId.CreatedAtStage, CreateDataEventRequest.WithId._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateDataEventRequest.WithIdbuild()CreateDataEventRequest.WithId._FinalStagecreatedAt(int createdAt)The time the event occurred as a UTC Unix timestampCreateDataEventRequest.WithId.CreatedAtStageeventName(java.lang.String eventName)The name of the event that occurred.CreateDataEventRequest.WithId.Builderfrom(CreateDataEventRequest.WithId other)CreateDataEventRequest.WithId.EventNameStageid(java.lang.String id)The unique identifier for the contact (lead or user) which is given by Intercom.CreateDataEventRequest.WithId._FinalStagemetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Optional metadata about the event.CreateDataEventRequest.WithId._FinalStagemetadata(java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> metadata)Optional metadata about the event.
-
-
-
Method Detail
-
from
public CreateDataEventRequest.WithId.Builder from(CreateDataEventRequest.WithId other)
- Specified by:
fromin interfaceCreateDataEventRequest.WithId.IdStage
-
id
public CreateDataEventRequest.WithId.EventNameStage id(@NotNull java.lang.String id)
The unique identifier for the contact (lead or user) which is given by Intercom.The unique identifier for the contact (lead or user) which is given by Intercom.
- Specified by:
idin interfaceCreateDataEventRequest.WithId.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
eventName
public CreateDataEventRequest.WithId.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.WithId.EventNameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
createdAt
public CreateDataEventRequest.WithId._FinalStage createdAt(int createdAt)
The time the event occurred as a UTC Unix timestampThe time the event occurred as a UTC Unix timestamp
- Specified by:
createdAtin interfaceCreateDataEventRequest.WithId.CreatedAtStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metadata
public CreateDataEventRequest.WithId._FinalStage metadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Optional metadata about the event.
- Specified by:
metadatain interfaceCreateDataEventRequest.WithId._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metadata
public CreateDataEventRequest.WithId._FinalStage metadata(java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> metadata)
Optional metadata about the event.
- Specified by:
metadatain interfaceCreateDataEventRequest.WithId._FinalStage
-
build
public CreateDataEventRequest.WithId build()
- Specified by:
buildin interfaceCreateDataEventRequest.WithId._FinalStage
-
-