Class ZoneResourceIdentifierBuilder
java.lang.Object
com.commercetools.api.models.zone.ZoneResourceIdentifierBuilder
- All Implemented Interfaces:
Builder<ZoneResourceIdentifier>
public class ZoneResourceIdentifierBuilder
extends Object
implements Builder<ZoneResourceIdentifier>
ZoneResourceIdentifierBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ZoneResourceIdentifier zoneResourceIdentifier = ZoneResourceIdentifier.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ZoneResourceIdentifier with checking for non-null required valuesbuilds ZoneResourceIdentifier without checking for non-null required valuesgetId()
Unique identifier of the referenced Zone.getKey()
User-defined unique identifier of the referenced Zone.Unique identifier of the referenced Zone.User-defined unique identifier of the referenced Zone.of()
factory method for an instance of ZoneResourceIdentifierBuilderof
(ZoneResourceIdentifier template) create builder for ZoneResourceIdentifier instance
-
Constructor Details
-
ZoneResourceIdentifierBuilder
public ZoneResourceIdentifierBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced Zone. Required if
key
is absent.- Parameters:
id
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the referenced Zone. Required if
id
is absent.- Parameters:
key
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced Zone. Required if
key
is absent.- Returns:
- id
-
getKey
User-defined unique identifier of the referenced Zone. Required if
id
is absent.- Returns:
- key
-
build
builds ZoneResourceIdentifier with checking for non-null required values- Specified by:
build
in interfaceBuilder<ZoneResourceIdentifier>
- Returns:
- ZoneResourceIdentifier
-
buildUnchecked
builds ZoneResourceIdentifier without checking for non-null required values- Returns:
- ZoneResourceIdentifier
-
of
factory method for an instance of ZoneResourceIdentifierBuilder- Returns:
- builder
-
of
create builder for ZoneResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-