Class ImmutableSignalSubscriptionRecordValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableSignalSubscriptionRecordValue.Builder
- Enclosing class:
- ImmutableSignalSubscriptionRecordValue
@NotThreadSafe
public static final class ImmutableSignalSubscriptionRecordValue.Builder
extends Object
Builds instances of type
ImmutableSignalSubscriptionRecordValue.
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 newImmutableSignalSubscriptionRecordValue.clear()Clear the builder to the initial state.from(SignalSubscriptionRecordValue instance) Fill a builder with attribute values from the providedSignalSubscriptionRecordValueinstance.withBpmnProcessId(String bpmnProcessId) Initializes the value for thebpmnProcessIdattribute.withCatchEventId(String catchEventId) Initializes the value for thecatchEventIdattribute.withCatchEventInstanceKey(long catchEventInstanceKey) Initializes the value for thecatchEventInstanceKeyattribute.withProcessDefinitionKey(long processDefinitionKey) Initializes the value for theprocessDefinitionKeyattribute.withSignalName(String signalName) Initializes the value for thesignalNameattribute.
-
Method Details
-
from
public final ImmutableSignalSubscriptionRecordValue.Builder from(SignalSubscriptionRecordValue instance) Fill a builder with attribute values from the providedSignalSubscriptionRecordValueinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
withProcessDefinitionKey
public final ImmutableSignalSubscriptionRecordValue.Builder withProcessDefinitionKey(long processDefinitionKey) Initializes the value for theprocessDefinitionKeyattribute.- Parameters:
processDefinitionKey- The value for processDefinitionKey- Returns:
thisbuilder for use in a chained invocation
-
withBpmnProcessId
Initializes the value for thebpmnProcessIdattribute.- Parameters:
bpmnProcessId- The value for bpmnProcessId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withCatchEventId
Initializes the value for thecatchEventIdattribute.- Parameters:
catchEventId- The value for catchEventId (can benull)- Returns:
thisbuilder for use in a chained invocation
-
withCatchEventInstanceKey
public final ImmutableSignalSubscriptionRecordValue.Builder withCatchEventInstanceKey(long catchEventInstanceKey) Initializes the value for thecatchEventInstanceKeyattribute.- Parameters:
catchEventInstanceKey- The value for catchEventInstanceKey- Returns:
thisbuilder for use in a chained invocation
-
withSignalName
Initializes the value for thesignalNameattribute.- Parameters:
signalName- The value for signalName (can benull)- 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 newImmutableSignalSubscriptionRecordValue.- Returns:
- An immutable instance of SignalSubscriptionRecordValue
- Throws:
IllegalStateException- if any required attributes are missing
-