Interface DocumentLifecycleStartWorkflowInputParameter.Builder
- Enclosing interface:
- DocumentLifecycleStartWorkflowInputParameter
public static interface DocumentLifecycleStartWorkflowInputParameter.Builder
Creates an instance of
DocumentLifecycleStartWorkflowInputParameter
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Validates and retrieves a completedDocumentLifecycleStartWorkflowInputParameter
.Sets the name of the input parameter for starting a workflow.Sets the value of the input parameter for starting a workflow.
-
Method Details
-
withName
Sets the name of the input parameter for starting a workflow.- Parameters:
name
- the name of the input parameter. Cannot be null or empty. For example,Docfield.number_field__c
.- Returns:
- this
DocumentLifecycleStartWorkflowInputParameter.Builder
-
withValue
Sets the value of the input parameter for starting a workflow.- Parameters:
value
- the value of the input parameter- Returns:
- this
DocumentLifecycleStartWorkflowInputParameter.Builder
-
build
Validates and retrieves a completedDocumentLifecycleStartWorkflowInputParameter
.- Returns:
- the
DocumentLifecycleStartWorkflowInputParameter
- Throws:
RuntimeException
- if the name is null or empty
-