
Package ca.uhn.fhir.util.bundle
Record Class BundleResponseEntryParts
java.lang.Object
java.lang.Record
ca.uhn.fhir.util.bundle.BundleResponseEntryParts
public record BundleResponseEntryParts(String fullUrl, IBaseResource resource, String responseStatus, String responseLocation, String responseEtag, IPrimitiveType<Date> responseLastModified, IBaseResource responseOutcome)
extends Record
Components of a transaction-respose bundle entry.
-
Constructor Summary
ConstructorsConstructorDescriptionBundleResponseEntryParts
(String fullUrl, IBaseResource resource, String responseStatus, String responseLocation, String responseEtag, IPrimitiveType<Date> responseLastModified, IBaseResource responseOutcome) Creates an instance of aBundleResponseEntryParts
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Function
<BundleResponseEntryParts, IBase> builder
(FhirContext theFhirContext) static Function
<IBase, BundleResponseEntryParts> buildPartsExtractor
(FhirContext theFhirContext) Build an extractor function that can be used to extract the parts of a bundle entry.final boolean
Indicates whether some other object is "equal to" this one.fullUrl()
Returns the value of thefullUrl
record component.getConverter
(FhirContext theFhirContext) final int
hashCode()
Returns a hash code value for this object.resource()
Returns the value of theresource
record component.Returns the value of theresponseEtag
record component.Returns the value of theresponseLastModified
record component.Returns the value of theresponseLocation
record component.Returns the value of theresponseOutcome
record component.Returns the value of theresponseStatus
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BundleResponseEntryParts
public BundleResponseEntryParts(String fullUrl, IBaseResource resource, String responseStatus, String responseLocation, String responseEtag, IPrimitiveType<Date> responseLastModified, IBaseResource responseOutcome) Creates an instance of aBundleResponseEntryParts
record class.- Parameters:
fullUrl
- the value for thefullUrl
record componentresource
- the value for theresource
record componentresponseStatus
- the value for theresponseStatus
record componentresponseLocation
- the value for theresponseLocation
record componentresponseEtag
- the value for theresponseEtag
record componentresponseLastModified
- the value for theresponseLastModified
record componentresponseOutcome
- the value for theresponseOutcome
record component
-
-
Method Details
-
buildPartsExtractor
public static Function<IBase,BundleResponseEntryParts> buildPartsExtractor(FhirContext theFhirContext) Build an extractor function that can be used to extract the parts of a bundle entry.- Parameters:
theFhirContext
- for the mappings- Returns:
- an extractor function on IBase objects that returns a BundleResponseEntryParts object
-
getConverter
@Nonnull public static PartsConverter<BundleResponseEntryParts> getConverter(FhirContext theFhirContext) -
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
fullUrl
Returns the value of thefullUrl
record component.- Returns:
- the value of the
fullUrl
record component
-
resource
Returns the value of theresource
record component.- Returns:
- the value of the
resource
record component
-
responseStatus
Returns the value of theresponseStatus
record component.- Returns:
- the value of the
responseStatus
record component
-
responseLocation
Returns the value of theresponseLocation
record component.- Returns:
- the value of the
responseLocation
record component
-
responseEtag
Returns the value of theresponseEtag
record component.- Returns:
- the value of the
responseEtag
record component
-
responseLastModified
Returns the value of theresponseLastModified
record component.- Returns:
- the value of the
responseLastModified
record component
-
responseOutcome
Returns the value of theresponseOutcome
record component.- Returns:
- the value of the
responseOutcome
record component
-