Interface ObjectLifecycleStateMetadataRequest.Builder
- Enclosing interface:
- ObjectLifecycleStateMetadataRequest
public static interface ObjectLifecycleStateMetadataRequest.Builder
Creates an instance of
ObjectLifecycleStateMetadataRequest
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Validates and retrieves a completedObjectLifecycleStateMetadataRequest
.withLifecycleName
(String lifecycleName) Required: sets the lifecycle name for the requested object lifecycle state.withStateName
(String stateName) Required: sets the object lifecycle state name.
-
Method Details
-
withLifecycleName
Required: sets the lifecycle name for the requested object lifecycle state.- Parameters:
lifecycleName
- lifecycle name for the object lifecycle state to retrieve metadata of. Cannot be null or empty. For example,checklist_lifecycle__sys
.- Returns:
- this
ObjectLifecycleStateMetadataRequest.Builder
-
withStateName
Required: sets the object lifecycle state name.- Parameters:
stateName
- name of the object lifecycle state to retrieve metadata of. Cannot be null or empty. For example,initiated_state__c
.- Returns:
- this
ObjectLifecycleStateMetadataRequest.Builder
-
build
Validates and retrieves a completedObjectLifecycleStateMetadataRequest
.- Returns:
- this completed
ObjectLifecycleStateMetadataRequest
- Throws:
RuntimeException
- if either the object lifecycle name or state name is not specified
-