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