Class SetGeoLocationChangeBuilder
java.lang.Object
com.commercetools.history.models.change.SetGeoLocationChangeBuilder
- All Implemented Interfaces:
Builder<SetGeoLocationChange>
SetGeoLocationChangeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetGeoLocationChange setGeoLocationChange = SetGeoLocationChange.builder()
.change("{change}")
.previousValue(previousValueBuilder -> previousValueBuilder)
.nextValue(nextValueBuilder -> nextValueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SetGeoLocationChange with checking for non-null required valuesbuilds SetGeoLocationChange without checking for non-null required valuesset the value to the changevalue of change}Value after the change.Value before the change.nextValue
(GeoLocation nextValue) Value after the change.Value after the change.static SetGeoLocationChangeBuilder
of()
factory method for an instance of SetGeoLocationChangeBuilderstatic SetGeoLocationChangeBuilder
of
(SetGeoLocationChange template) create builder for SetGeoLocationChange instancepreviousValue
(GeoLocation previousValue) Value before the change.Value before the change.withNextValue
(Function<GeoLocationBuilder, GeoLocation> builder) Value after the change.Value before the change.
-
Constructor Details
-
SetGeoLocationChangeBuilder
public SetGeoLocationChangeBuilder()
-
-
Method Details
-
change
set the value to the change- Parameters:
change
- value to be set- Returns:
- Builder
-
previousValue
public SetGeoLocationChangeBuilder previousValue(Function<GeoLocationBuilder, GeoLocationBuilder> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
withPreviousValue
public SetGeoLocationChangeBuilder withPreviousValue(Function<GeoLocationBuilder, GeoLocation> builder) Value before the change.
- Parameters:
builder
- function to build the previousValue value- Returns:
- Builder
-
previousValue
Value before the change.
- Parameters:
previousValue
- value to be set- Returns:
- Builder
-
nextValue
public SetGeoLocationChangeBuilder nextValue(Function<GeoLocationBuilder, GeoLocationBuilder> builder) Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
withNextValue
Value after the change.
- Parameters:
builder
- function to build the nextValue value- Returns:
- Builder
-
nextValue
Value after the change.
- Parameters:
nextValue
- value to be set- Returns:
- Builder
-
getChange
value of change}- Returns:
- change
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
build
builds SetGeoLocationChange with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetGeoLocationChange>
- Returns:
- SetGeoLocationChange
-
buildUnchecked
builds SetGeoLocationChange without checking for non-null required values- Returns:
- SetGeoLocationChange
-
of
factory method for an instance of SetGeoLocationChangeBuilder- Returns:
- builder
-
of
create builder for SetGeoLocationChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-