Package com.ibm.fhir.persistence
Class MultiResourceResult
- java.lang.Object
-
- com.ibm.fhir.persistence.MultiResourceResult
-
public class MultiResourceResult extends java.lang.Object
A Result wrapper for FHIR interactions that can return multiple resources. Instances are immutable and can be constructed vianew MultiResourceResult.Builder<T>()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultiResourceResult.Builder
-
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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MultiResourceResult.Builder
builder()
OperationOutcome
getOutcome()
An OperationOutcome that represents the outcome of the interactionjava.util.List<ResourceResult<? extends Resource>>
getResourceResults()
The resource results returned from the interactionboolean
isSuccess()
Whether or not the interaction was successful
-
-
-
Field Detail
-
success
final boolean success
-
resourceResults
final java.util.List<ResourceResult<? extends Resource>> resourceResults
-
outcome
final OperationOutcome outcome
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
Whether or not the interaction was successful- Returns:
- whether the interaction was successful
-
getResourceResults
public java.util.List<ResourceResult<? extends Resource>> getResourceResults()
The resource results returned from the interaction- Returns:
- An unmodifiable list containing immutable objects of type
ResourceResult
-
getOutcome
public OperationOutcome getOutcome()
An OperationOutcome that represents the outcome of the interaction- Returns:
- An immutable object of type
OperationOutcome
-
builder
public static MultiResourceResult.Builder builder()
-
-