Interface ReservationReference
- All Superinterfaces:
Reference,ReferenceMixin
Reference to a Reservation.
Example to create an instance using the builder pattern
ReservationReference reservationReference = ReservationReference.builder()
.id("{id}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ReservationReference -
Method Summary
Modifier and TypeMethodDescriptionstatic ReservationReferenceBuilderbuilder()builder factory method for ReservationReferencestatic ReservationReferenceBuilderbuilder(ReservationReference template) create builder for ReservationReference instancecopyDeep()static ReservationReferencedeepCopy(ReservationReference template) factory method to create a deep copy of ReservationReference@NotNull StringgetId()Unique identifier of the referenced Reservation.@Valid ReservationgetObj()Contains the representation of the expanded Reservation.@NotNull ReferenceTypeIdType of referenced resource.static ReservationReferenceof()factory methodstatic ReservationReferenceof(ReservationReference template) factory method to create a shallow copy ReservationReferencevoidUnique identifier of the referenced Reservation.voidsetObj(Reservation obj) Contains the representation of the expanded Reservation.static com.fasterxml.jackson.core.type.TypeReference<ReservationReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithReservationReference(Function<ReservationReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
withReferenceMethods inherited from interface com.commercetools.api.models.common.ReferenceMixin
toResourceIdentifier
-
Field Details
-
RESERVATION
discriminator value for ReservationReference- See Also:
-
-
Method Details
-
getTypeId
Description copied from interface:ReferenceType of referenced resource.
- Specified by:
getTypeIdin interfaceReference- Specified by:
getTypeIdin interfaceReferenceMixin- Returns:
- typeId
-
getObj
Contains the representation of the expanded Reservation. Only present in responses to requests with Reference Expansion for Reservations.
- Returns:
- obj
-
getId
Unique identifier of the referenced Reservation.
- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
setObj
Contains the representation of the expanded Reservation. Only present in responses to requests with Reference Expansion for Reservations.
- Parameters:
obj- value to be set
-
setId
Unique identifier of the referenced Reservation.
-
of
factory method- Returns:
- instance of ReservationReference
-
of
factory method to create a shallow copy ReservationReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ReservationReference copyDeep() -
deepCopy
factory method to create a deep copy of ReservationReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ReservationReference- Returns:
- builder
-
builder
create builder for ReservationReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withReservationReference
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-