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
Constructors -
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()idof the Parcel.idof the Parcel.static ParcelChangeValueBuilderof()factory method for an instance of ParcelChangeValueBuilderstatic ParcelChangeValueBuilderof(ParcelChangeValue template) create builder for ParcelChangeValue instance
-
Constructor Details
-
ParcelChangeValueBuilder
public ParcelChangeValueBuilder()
-
-
Method Details
-
id
idof 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
idof 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:
buildin 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
-