Class ImmutableMessageStartEventSubscriptionRecordValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableMessageStartEventSubscriptionRecordValue.Builder
- Enclosing class:
- ImmutableMessageStartEventSubscriptionRecordValue
@NotThreadSafe
public static final class ImmutableMessageStartEventSubscriptionRecordValue.Builder
extends Object
Builds instances of type
ImmutableMessageStartEventSubscriptionRecordValue.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableMessageStartEventSubscriptionRecordValue.clear()Clear the builder to the initial state.from(RecordValueWithVariables instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.RecordValueWithVariablesinstance.from(MessageStartEventSubscriptionRecordValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.MessageStartEventSubscriptionRecordValueinstance.putAllVariables(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tovariablesmap.putVariable(String key, Object value) Put one entry to thevariablesmap.putVariable(Map.Entry<String, ? extends Object> entry) Put one entry to thevariablesmap.withBpmnProcessId(String bpmnProcessId) Initializes the value for thebpmnProcessIdattribute.withCorrelationKey(String correlationKey) Initializes the value for thecorrelationKeyattribute.withMessageKey(long messageKey) Initializes the value for themessageKeyattribute.withMessageName(String messageName) Initializes the value for themessageNameattribute.withProcessDefinitionKey(long processDefinitionKey) Initializes the value for theprocessDefinitionKeyattribute.withProcessInstanceKey(long processInstanceKey) Initializes the value for theprocessInstanceKeyattribute.withStartEventId(String startEventId) Initializes the value for thestartEventIdattribute.withVariables(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thevariablesmap.
-
Method Details
-
from
public final ImmutableMessageStartEventSubscriptionRecordValue.Builder from(MessageStartEventSubscriptionRecordValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.MessageStartEventSubscriptionRecordValueinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableMessageStartEventSubscriptionRecordValue.Builder from(RecordValueWithVariables instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.RecordValueWithVariablesinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
putVariable
public final ImmutableMessageStartEventSubscriptionRecordValue.Builder putVariable(@Nullable String key, @Nullable Object value) Put one entry to thevariablesmap.- Parameters:
key- The key in the variables mapvalue- The associated value in the variables map- Returns:
thisbuilder for use in a chained invocation
-
putVariable
public final ImmutableMessageStartEventSubscriptionRecordValue.Builder putVariable(Map.Entry<String, ? extends Object> entry) Put one entry to thevariablesmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
withVariables
public final ImmutableMessageStartEventSubscriptionRecordValue.Builder withVariables(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thevariablesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the variables map- Returns:
thisbuilder for use in a chained invocation
-
putAllVariables
public final ImmutableMessageStartEventSubscriptionRecordValue.Builder putAllVariables(Map<String, ? extends Object> entries) Put all mappings from the specified map as entries tovariablesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the variables map- Returns:
thisbuilder for use in a chained invocation
-
withProcessDefinitionKey
public final ImmutableMessageStartEventSubscriptionRecordValue.Builder withProcessDefinitionKey(long processDefinitionKey) Initializes the value for theprocessDefinitionKeyattribute.- Parameters:
processDefinitionKey- The value for processDefinitionKey- Returns:
thisbuilder for use in a chained invocation
-
withBpmnProcessId
public final ImmutableMessageStartEventSubscriptionRecordValue.Builder withBpmnProcessId(String bpmnProcessId) Initializes the value for thebpmnProcessIdattribute.- Parameters:
bpmnProcessId- The value for bpmnProcessId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withStartEventId
public final ImmutableMessageStartEventSubscriptionRecordValue.Builder withStartEventId(String startEventId) Initializes the value for thestartEventIdattribute.- Parameters:
startEventId- The value for startEventId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withMessageName
public final ImmutableMessageStartEventSubscriptionRecordValue.Builder withMessageName(String messageName) Initializes the value for themessageNameattribute.- Parameters:
messageName- The value for messageName (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withProcessInstanceKey
public final ImmutableMessageStartEventSubscriptionRecordValue.Builder withProcessInstanceKey(long processInstanceKey) Initializes the value for theprocessInstanceKeyattribute.- Parameters:
processInstanceKey- The value for processInstanceKey- Returns:
thisbuilder for use in a chained invocation
-
withCorrelationKey
public final ImmutableMessageStartEventSubscriptionRecordValue.Builder withCorrelationKey(String correlationKey) Initializes the value for thecorrelationKeyattribute.- Parameters:
correlationKey- The value for correlationKey (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withMessageKey
public final ImmutableMessageStartEventSubscriptionRecordValue.Builder withMessageKey(long messageKey) Initializes the value for themessageKeyattribute.- Parameters:
messageKey- The value for messageKey- Returns:
thisbuilder for use in a chained invocation
-
clear
Clear the builder to the initial state.- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableMessageStartEventSubscriptionRecordValue.- Returns:
- An immutable instance of MessageStartEventSubscriptionRecordValue
- Throws:
IllegalStateException- if any required attributes are missing
-