Package com.ibm.fhir.persistence
Class MultiResourceResult.Builder
- java.lang.Object
-
- com.ibm.fhir.persistence.MultiResourceResult.Builder
-
- Enclosing class:
- MultiResourceResult
public static class MultiResourceResult.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) OperationOutcome
outcome
(package private) java.util.List<ResourceResult<? extends Resource>>
resourceResults
(package private) boolean
success
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiResourceResult.Builder
addResourceResults(java.util.List<ResourceResult<? extends Resource>> resourceResultsList)
Add the resource result list to resource list owned by thisMultiResourceResult
build()
Build theMultiResourceResult
MultiResourceResult.Builder
outcome(OperationOutcome outcome)
An OperationOutcome that represents the outcome of the interactionMultiResourceResult.Builder
resourceResult(ResourceResult<? extends Resource>... resourceResultsParam)
Add the resource results to the resourceResults listMultiResourceResult.Builder
success(boolean success)
Whether or not the interaction was successful
-
-
-
Field Detail
-
success
boolean success
-
resourceResults
final java.util.List<ResourceResult<? extends Resource>> resourceResults
-
outcome
OperationOutcome outcome
-
-
Method Detail
-
success
public MultiResourceResult.Builder success(boolean success)
Whether or not the interaction was successfulThis field is required.
- Parameters:
success
- whether the interaction was successful- Returns:
- A reference to this Builder instance
-
resourceResult
@SafeVarargs public final MultiResourceResult.Builder resourceResult(ResourceResult<? extends Resource>... resourceResultsParam)
Add the resource results to the resourceResults list- Parameters:
resourceResultsParam
-- Returns:
-
addResourceResults
public final MultiResourceResult.Builder addResourceResults(java.util.List<ResourceResult<? extends Resource>> resourceResultsList)
Add the resource result list to resource list owned by this- Parameters:
resourceResultsParam
-- Returns:
-
outcome
public MultiResourceResult.Builder outcome(OperationOutcome outcome)
An OperationOutcome that represents the outcome of the interactionThis field is required when the interaction is not successful
- Parameters:
outcome
- the outcome of the interaction- Returns:
- A reference to this Builder instance
-
build
public MultiResourceResult build()
- Returns:
- An immutable object of type
MultiResourceResult
-
-