Class ImmutableSignalSubscriptionRecordValue.Builder
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableSignalSubscriptionRecordValue.Builder
- Enclosing class:
ImmutableSignalSubscriptionRecordValue
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 providedio.camunda.zeebe.protocol.record.value.SignalSubscriptionRecordValueinstance.from(TenantOwned instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.TenantOwnedinstance.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.withTenantId(String tenantId) Initializes the value for thetenantIdattribute.
-
Method Details
-
from
public final ImmutableSignalSubscriptionRecordValue.Builder from(SignalSubscriptionRecordValue instance) Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.SignalSubscriptionRecordValueinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.camunda.zeebe.protocol.record.value.TenantOwnedinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
withTenantId
Initializes the value for thetenantIdattribute.- Parameters:
tenantId- The value for tenantId (can benull)- 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
-