Interface ObjectLifecycleStateMetadataCollectionRequest.Builder
- Enclosing interface:
- ObjectLifecycleStateMetadataCollectionRequest
public static interface ObjectLifecycleStateMetadataCollectionRequest.Builder
Creates an instance of
ObjectLifecycleStateMetadataCollectionRequest
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Validates and retrieves a completedObjectLifecycleStateMetadataCollectionRequest
.withActive
(boolean active) Optional: sets the status value for the object lifecycle states requested.withLifecycleName
(String lifecycleName) Required: sets the lifecycle name for the requested object lifecycle states.withStateTypeNames
(List<String> stateTypeNames) Optional: sets the names of the state types associated with the object lifecycle states requested.
-
Method Details
-
withLifecycleName
Required: sets the lifecycle name for the requested object lifecycle states.- Parameters:
lifecycleName
- the lifecycle name for the object lifecycle states to retrieve metadata of. Cannot be null or empty. For example,checklist_lifecycle__sys
.- Returns:
- this
ObjectLifecycleStateMetadataCollectionRequest.Builder
-
withActive
Optional: sets the status value for the object lifecycle states requested. When omitted, retrieves all the states in the object lifecycle.- Parameters:
active
- if true, retrieves all the object lifecycle states with the Active status; if false, retrieves all the object lifecycle states with the Inactive status- Returns:
- this
ObjectLifecycleStateMetadataCollectionRequest.Builder
-
withStateTypeNames
ObjectLifecycleStateMetadataCollectionRequest.Builder withStateTypeNames(List<String> stateTypeNames) Optional: sets the names of the state types associated with the object lifecycle states requested.- Parameters:
stateTypeNames
- the name of the state type associated with the object lifecycle states to retrieve metadata of. Cannot be null or empty. For example,initial_state__sys
- Returns:
- this
ObjectLifecycleStateMetadataCollectionRequest.Builder
-
build
Validates and retrieves a completedObjectLifecycleStateMetadataCollectionRequest
.- Returns:
- this completed
ObjectLifecycleStateMetadataCollectionRequest
- Throws:
RuntimeException
- if the object lifecycle name is not provided
-