Class JourneysInvokeRequest.Builder
-
- All Implemented Interfaces:
public final class JourneysInvokeRequest.BuilderA builder for JourneysInvokeRequest.
-
-
Method Summary
-
-
Method Detail
-
data
final JourneysInvokeRequest.Builder data(JourneysInvokeRequest.Data data)
Data payload passed to the journey. The expected shape can be predefined using the schema builder in the journey editor. This data is available in journey steps for condition evaluation and template variable interpolation. Can also contain user identifiers (user_id, userId, anonymousId) if not provided elsewhere.
-
data
final JourneysInvokeRequest.Builder data(JsonField<JourneysInvokeRequest.Data> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed Data value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
profile
final JourneysInvokeRequest.Builder profile(JourneysInvokeRequest.Profile profile)
Profile data for the user. Can contain contact information (email, phone_number), user identifiers (user_id, userId, anonymousId), or any custom profile fields. Profile fields are merged with any existing stored profile for the user. Include context.tenant_id to load a tenant-scoped profile for multi-tenant scenarios.
-
profile
final JourneysInvokeRequest.Builder profile(JsonField<JourneysInvokeRequest.Profile> profile)
Sets Builder.profile to an arbitrary JSON value.
You should usually call Builder.profile with a well-typed Profile value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userId
final JourneysInvokeRequest.Builder userId(String userId)
A unique identifier for the user. If not provided, the system will attempt to resolve the user identifier from profile or data objects.
-
userId
final JourneysInvokeRequest.Builder userId(JsonField<String> userId)
Sets Builder.userId to an arbitrary JSON value.
You should usually call Builder.userId 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 JourneysInvokeRequest.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final JourneysInvokeRequest.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final JourneysInvokeRequest.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final JourneysInvokeRequest.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final JourneysInvokeRequest.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final JourneysInvokeRequest build()
Returns an immutable instance of JourneysInvokeRequest.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-