Class EstimatedDeliveryBuilder
java.lang.Object
com.commercetools.api.models.cart.EstimatedDeliveryBuilder
- All Implemented Interfaces:
Builder<EstimatedDelivery>
EstimatedDeliveryBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
EstimatedDelivery estimatedDelivery = EstimatedDelivery.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds EstimatedDelivery with checking for non-null required valuesbuilds EstimatedDelivery without checking for non-null required valuesfrom(ZonedDateTime from) Date and time (UTC) of the earliest expected delivery.getFrom()Date and time (UTC) of the earliest expected delivery.getUntil()Date and time (UTC) of the latest expected delivery.static EstimatedDeliveryBuilderof()factory method for an instance of EstimatedDeliveryBuilderstatic EstimatedDeliveryBuilderof(EstimatedDelivery template) create builder for EstimatedDelivery instanceuntil(ZonedDateTime until) Date and time (UTC) of the latest expected delivery.
-
Constructor Details
-
EstimatedDeliveryBuilder
public EstimatedDeliveryBuilder()
-
-
Method Details
-
from
Date and time (UTC) of the earliest expected delivery.
- Parameters:
from- value to be set- Returns:
- Builder
-
until
Date and time (UTC) of the latest expected delivery. When both
fromanduntilare set,untilmust be equal to or later thanfrom.- Parameters:
until- value to be set- Returns:
- Builder
-
getFrom
Date and time (UTC) of the earliest expected delivery.
- Returns:
- from
-
getUntil
Date and time (UTC) of the latest expected delivery. When both
fromanduntilare set,untilmust be equal to or later thanfrom.- Returns:
- until
-
build
builds EstimatedDelivery with checking for non-null required values- Specified by:
buildin interfaceBuilder<EstimatedDelivery>- Returns:
- EstimatedDelivery
-
buildUnchecked
builds EstimatedDelivery without checking for non-null required values- Returns:
- EstimatedDelivery
-
of
factory method for an instance of EstimatedDeliveryBuilder- Returns:
- builder
-
of
create builder for EstimatedDelivery instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-