Interface ObjectLifecycleStateEntryActionMetadataRequest.Builder
- Enclosing interface:
- ObjectLifecycleStateEntryActionMetadataRequest
public static interface ObjectLifecycleStateEntryActionMetadataRequest.Builder
Creates an instance of
ObjectLifecycleStateEntryActionRuleMetadata.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Validates and retrieves a completedObjectLifecycleStateEntryActionMetadataRequest.withLifecycleName(String lifecycleName) Required: sets the object lifecycle name.withStateName(String stateName) Required: sets the name of the state associated with the requested object lifecycle.
-
Method Details
-
withLifecycleName
Required: sets the object lifecycle name.- Parameters:
lifecycleName- API name of the object lifecycle (active or inactive) to retrieve metadata of. Cannot be null or empty. For example,checklist_lifecycle__sys.- Returns:
- this
ObjectLifecycleStateEntryActionMetadataRequest.Builder
-
withStateName
Required: sets the name of the state associated with the requested object lifecycle.- Parameters:
stateName- API name of the lifecycle state (active or inactive) associated with the object lifecycle to retrieve metadata of. Cannot be null or empty. For example,active_state__sys.- Returns:
- this
ObjectLifecycleStateEntryActionMetadataRequest.Builder
-
build
Validates and retrieves a completedObjectLifecycleStateEntryActionMetadataRequest. Both the lifecycle or state name must be provided.- Returns:
- this completed
ObjectLifecycleStateEntryActionMetadataRequest - Throws:
RuntimeException- if neither the object nor lifecycle name is provided
-