Class ReservationReferenceBuilder
java.lang.Object
com.commercetools.api.models.reservation.ReservationReferenceBuilder
- All Implemented Interfaces:
Builder<ReservationReference>
ReservationReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ReservationReference reservationReference = ReservationReference.builder()
.id("{id}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ReservationReference with checking for non-null required valuesbuilds ReservationReference without checking for non-null required valuesgetId()Unique identifier of the referenced Reservation.getObj()Contains the representation of the expanded Reservation.Unique identifier of the referenced Reservation.obj(Reservation obj) Contains the representation of the expanded Reservation.obj(Function<ReservationBuilder, ReservationBuilder> builder) Contains the representation of the expanded Reservation.static ReservationReferenceBuilderof()factory method for an instance of ReservationReferenceBuilderstatic ReservationReferenceBuilderof(ReservationReference template) create builder for ReservationReference instancewithObj(Function<ReservationBuilder, Reservation> builder) Contains the representation of the expanded Reservation.
-
Constructor Details
-
ReservationReferenceBuilder
public ReservationReferenceBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced Reservation.
- Parameters:
id- value to be set- Returns:
- Builder
-
obj
Contains the representation of the expanded Reservation. Only present in responses to requests with Reference Expansion for Reservations.
- Parameters:
builder- function to build the obj value- Returns:
- Builder
-
withObj
Contains the representation of the expanded Reservation. Only present in responses to requests with Reference Expansion for Reservations.
- Parameters:
builder- function to build the obj value- Returns:
- Builder
-
obj
Contains the representation of the expanded Reservation. Only present in responses to requests with Reference Expansion for Reservations.
- Parameters:
obj- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced Reservation.
- Returns:
- id
-
getObj
Contains the representation of the expanded Reservation. Only present in responses to requests with Reference Expansion for Reservations.
- Returns:
- obj
-
build
builds ReservationReference with checking for non-null required values- Specified by:
buildin interfaceBuilder<ReservationReference>- Returns:
- ReservationReference
-
buildUnchecked
builds ReservationReference without checking for non-null required values- Returns:
- ReservationReference
-
of
factory method for an instance of ReservationReferenceBuilder- Returns:
- builder
-
of
create builder for ReservationReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-