Interface ObjectLifecycleUserActionMetadataRequest.Builder
- Enclosing interface:
- ObjectLifecycleUserActionMetadataRequest
public static interface ObjectLifecycleUserActionMetadataRequest.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Retrieves a completedObjectLifecycleUserActionMetadataRequest.withActionType(String actionType) Optional: sets the name of the action type associated with the requested object lifecycle user action.withLifecycleName(String lifecycleName) Required: sets the lifecycle name of the record associated with the requested object lifecycle user action.withLifecycleState(String stateName) Required: sets the lifecycle state of the record associated with the requested object lifecycle user action.
-
Method Details
-
withLifecycleState
Required: sets the lifecycle state of the record associated with the requested object lifecycle user action.- Parameters:
stateName- lifecycle state name associated with the object lifecycle user action to retrieve metadata of.- Returns:
- this
ObjectLifecycleUserActionMetadataRequest.Builder
-
withLifecycleName
Required: sets the lifecycle name of the record associated with the requested object lifecycle user action.- Parameters:
lifecycleName- lifecycle name associated with the object lifecycle user action to retrieve metadata of.- Returns:
- this
ObjectLifecycleUserActionMetadataRequest.Builder
-
withActionType
Optional: sets the name of the action type associated with the requested object lifecycle user action. e.g.LIFECYCLE_STATE_CHANGE_ACTIONif only state change actions are desired. If not provided, then default behavior is to fetch all actions, regardless of type.- Parameters:
actionType- the name of the action type- Returns:
- this
ObjectLifecycleUserActionMetadataRequest.Builder
-
build
Retrieves a completedObjectLifecycleUserActionMetadataRequest. Both lifecycle state and lifecycle name must be provided.- Returns:
- this completed
ObjectLifecycleUserActionMetadataRequest - Throws:
IllegalArgumentException- if any of the required values are not provided.
-