Class UnresolvedReferencesBuilder
java.lang.Object
com.commercetools.importapi.models.common.UnresolvedReferencesBuilder
- All Implemented Interfaces:
Builder<UnresolvedReferences>
UnresolvedReferencesBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
UnresolvedReferences unresolvedReferences = UnresolvedReferences.builder()
.key("{key}")
.typeId(ReferenceType.CART)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds UnresolvedReferences with checking for non-null required valuesbuilds UnresolvedReferences without checking for non-null required valuesgetKey()
Thekey
of the resource.The type of resource.Thekey
of the resource.static UnresolvedReferencesBuilder
of()
factory method for an instance of UnresolvedReferencesBuilderstatic UnresolvedReferencesBuilder
of
(UnresolvedReferences template) create builder for UnresolvedReferences instancetypeId
(ReferenceType typeId) The type of resource.
-
Constructor Details
-
UnresolvedReferencesBuilder
public UnresolvedReferencesBuilder()
-
-
Method Details
-
key
The
key
of the resource.- Parameters:
key
- value to be set- Returns:
- Builder
-
typeId
The type of resource.
- Parameters:
typeId
- value to be set- Returns:
- Builder
-
getKey
The
key
of the resource.- Returns:
- key
-
getTypeId
The type of resource.
- Returns:
- typeId
-
build
builds UnresolvedReferences with checking for non-null required values- Specified by:
build
in interfaceBuilder<UnresolvedReferences>
- Returns:
- UnresolvedReferences
-
buildUnchecked
builds UnresolvedReferences without checking for non-null required values- Returns:
- UnresolvedReferences
-
of
factory method for an instance of UnresolvedReferencesBuilder- Returns:
- builder
-
of
create builder for UnresolvedReferences instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-