Interface ObjectLifecycleMetadataRequest.Builder
- Enclosing interface:
- ObjectLifecycleMetadataRequest
public static interface ObjectLifecycleMetadataRequest.Builder
Creates an instance of
ObjectLifecycleMetadataRequest.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Validates and retrieves a completedObjectLifecycleMetadataRequest.withLifecycleName(String lifecycleName) Optional: sets the object lifecycle name.withObjectName(String objectName) Optional: sets the name of the object associated with the requested object lifecycle.
-
Method Details
-
withObjectName
Optional: sets the name of the object associated with the requested object lifecycle.- Parameters:
objectName- name of the object associated with the object lifecycle to retrieve metadata of. Cannot be null or empty. For example,checklist__sys.- Returns:
- this
ObjectLifecycleMetadataRequest.Builder
-
withLifecycleName
Optional: sets the object lifecycle name.- Parameters:
lifecycleName- name of the object lifecycle to retrieve metadata of. Cannot be null or empty. For example,checklist_lifecycle__sys.- Returns:
- this
ObjectLifecycleMetadataRequest.Builder
-
build
ObjectLifecycleMetadataRequest build()Validates and retrieves a completedObjectLifecycleMetadataRequest. Either the object or lifecycle name must be provided.- Returns:
- this completed
ObjectLifecycleMetadataRequest - Throws:
RuntimeException- if neither the object nor lifecycle name is provided
-