
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 aBundleResponseEntryPartsrecord 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 booleanIndicates whether some other object is "equal to" this one.fullUrl()Returns the value of thefullUrlrecord component.getConverter(FhirContext theFhirContext) final inthashCode()Returns a hash code value for this object.resource()Returns the value of theresourcerecord component.Returns the value of theresponseEtagrecord component.Returns the value of theresponseLastModifiedrecord component.Returns the value of theresponseLocationrecord component.Returns the value of theresponseOutcomerecord component.Returns the value of theresponseStatusrecord component.final StringtoString()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 aBundleResponseEntryPartsrecord class.- Parameters:
fullUrl- the value for thefullUrlrecord componentresource- the value for theresourcerecord componentresponseStatus- the value for theresponseStatusrecord componentresponseLocation- the value for theresponseLocationrecord componentresponseEtag- the value for theresponseEtagrecord componentresponseLastModified- the value for theresponseLastModifiedrecord componentresponseOutcome- the value for theresponseOutcomerecord 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 thefullUrlrecord component.- Returns:
- the value of the
fullUrlrecord component
-
resource
Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-
responseStatus
Returns the value of theresponseStatusrecord component.- Returns:
- the value of the
responseStatusrecord component
-
responseLocation
Returns the value of theresponseLocationrecord component.- Returns:
- the value of the
responseLocationrecord component
-
responseEtag
Returns the value of theresponseEtagrecord component.- Returns:
- the value of the
responseEtagrecord component
-
responseLastModified
Returns the value of theresponseLastModifiedrecord component.- Returns:
- the value of the
responseLastModifiedrecord component
-
responseOutcome
Returns the value of theresponseOutcomerecord component.- Returns:
- the value of the
responseOutcomerecord component
-