Interface ObjectLifecycleStateEntryCriteriaMetadataRequest.Builder
- Enclosing interface:
- ObjectLifecycleStateEntryCriteriaMetadataRequest
public static interface ObjectLifecycleStateEntryCriteriaMetadataRequest.Builder
Creates an instance of
ObjectLifecycleStateEntryCriteriaRuleMetadata.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Validates and retrieves a completedObjectLifecycleStateEntryCriteriaMetadataRequest.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- the API name of the object lifecycle (active or inactive) of which to retrieve. Cannot be null or empty. For example,checklist_lifecycle__sys.- Returns:
- this
ObjectLifecycleStateEntryCriteriaMetadataRequest.Builder
-
withStateName
Required: sets the name of the state associated with the requested object lifecycle.- Parameters:
stateName- the API name of the lifecycle state (active or inactive) associated with the object lifecycle of which to retrieve metadata. Cannot be null or empty. For example,active_state__sys.- Returns:
- this
ObjectLifecycleStateEntryCriteriaMetadataRequest.Builder
-
build
Validates and retrieves a completedObjectLifecycleStateEntryCriteriaMetadataRequest. Both the lifecycle and state name must be provided.- Returns:
- this completed
ObjectLifecycleStateEntryCriteriaMetadataRequest - Throws:
RuntimeException- if neither the object nor lifecycle name is provided
-