Class ImmutableProcessMessageSubscriptionRecordValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableProcessMessageSubscriptionRecordValue.Builder
- Enclosing class:
- ImmutableProcessMessageSubscriptionRecordValue
@NotThreadSafe
public static final class ImmutableProcessMessageSubscriptionRecordValue.Builder
extends Object
Builds instances of type
ImmutableProcessMessageSubscriptionRecordValue.
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 newImmutableProcessMessageSubscriptionRecordValue.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(ProcessInstanceRelated instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.ProcessInstanceRelatedinstance.from(ProcessMessageSubscriptionRecordValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.ProcessMessageSubscriptionRecordValueinstance.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.withElementId(String elementId) Initializes the value for theelementIdattribute.withElementInstanceKey(long elementInstanceKey) Initializes the value for theelementInstanceKeyattribute.withInterrupting(boolean interrupting) Initializes the value for theinterruptingattribute.withMessageKey(long messageKey) Initializes the value for themessageKeyattribute.withMessageName(String messageName) Initializes the value for themessageNameattribute.withProcessInstanceKey(long processInstanceKey) Initializes the value for theprocessInstanceKeyattribute.withVariables(Map<String, ? extends Object> entries) Sets or replaces all mappings from the specified map as entries for thevariablesmap.
-
Method Details
-
from
public final ImmutableProcessMessageSubscriptionRecordValue.Builder from(ProcessInstanceRelated instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.ProcessInstanceRelatedinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableProcessMessageSubscriptionRecordValue.Builder from(ProcessMessageSubscriptionRecordValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.ProcessMessageSubscriptionRecordValueinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableProcessMessageSubscriptionRecordValue.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 ImmutableProcessMessageSubscriptionRecordValue.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 ImmutableProcessMessageSubscriptionRecordValue.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 ImmutableProcessMessageSubscriptionRecordValue.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 ImmutableProcessMessageSubscriptionRecordValue.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
-
withProcessInstanceKey
public final ImmutableProcessMessageSubscriptionRecordValue.Builder withProcessInstanceKey(long processInstanceKey) Initializes the value for theprocessInstanceKeyattribute.- Parameters:
processInstanceKey- The value for processInstanceKey- Returns:
thisbuilder for use in a chained invocation
-
withElementInstanceKey
public final ImmutableProcessMessageSubscriptionRecordValue.Builder withElementInstanceKey(long elementInstanceKey) Initializes the value for theelementInstanceKeyattribute.- Parameters:
elementInstanceKey- The value for elementInstanceKey- Returns:
thisbuilder for use in a chained invocation
-
withBpmnProcessId
public final ImmutableProcessMessageSubscriptionRecordValue.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
-
withMessageKey
Initializes the value for themessageKeyattribute.- Parameters:
messageKey- The value for messageKey- Returns:
thisbuilder for use in a chained invocation
-
withMessageName
public final ImmutableProcessMessageSubscriptionRecordValue.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
-
withCorrelationKey
public final ImmutableProcessMessageSubscriptionRecordValue.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
-
withElementId
Initializes the value for theelementIdattribute.- Parameters:
elementId- The value for elementId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withInterrupting
public final ImmutableProcessMessageSubscriptionRecordValue.Builder withInterrupting(boolean interrupting) Initializes the value for theinterruptingattribute.- Parameters:
interrupting- The value for interrupting- 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 newImmutableProcessMessageSubscriptionRecordValue.- Returns:
- An immutable instance of ProcessMessageSubscriptionRecordValue
- Throws:
IllegalStateException- if any required attributes are missing
-