Class ParcelChangeValueBuilder
java.lang.Object
com.commercetools.history.models.change_value.ParcelChangeValueBuilder
- All Implemented Interfaces:
Builder<ParcelChangeValue>
ParcelChangeValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ParcelChangeValue parcelChangeValue = ParcelChangeValue.builder()
.id("{id}")
.createdAt("{createdAt}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ParcelChangeValue with checking for non-null required valuesbuilds ParcelChangeValue without checking for non-null required valuesDate and time (UTC) the Parcel was created.Date and time (UTC) the Parcel was created.getId()
id
of the Parcel.id
of the Parcel.static ParcelChangeValueBuilder
of()
factory method for an instance of ParcelChangeValueBuilderstatic ParcelChangeValueBuilder
of
(ParcelChangeValue template) create builder for ParcelChangeValue instance
-
Constructor Details
-
ParcelChangeValueBuilder
public ParcelChangeValueBuilder()
-
-
Method Details
-
id
id
of the Parcel.- Parameters:
id
- value to be set- Returns:
- Builder
-
createdAt
Date and time (UTC) the Parcel was created.
- Parameters:
createdAt
- value to be set- Returns:
- Builder
-
getId
id
of the Parcel.- Returns:
- id
-
getCreatedAt
Date and time (UTC) the Parcel was created.
- Returns:
- createdAt
-
build
builds ParcelChangeValue with checking for non-null required values- Specified by:
build
in interfaceBuilder<ParcelChangeValue>
- Returns:
- ParcelChangeValue
-
buildUnchecked
builds ParcelChangeValue without checking for non-null required values- Returns:
- ParcelChangeValue
-
of
factory method for an instance of ParcelChangeValueBuilder- Returns:
- builder
-
of
create builder for ParcelChangeValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-