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()
value of key}The type of the referenced resource.set the value to the keystatic UnresolvedReferencesBuilder
of()
factory method for an instance of UnresolvedReferencesBuilderstatic UnresolvedReferencesBuilder
of
(UnresolvedReferences template) create builder for UnresolvedReferences instancetypeId
(ReferenceType typeId) The type of the referenced resource.
-
Constructor Details
-
UnresolvedReferencesBuilder
public UnresolvedReferencesBuilder()
-
-
Method Details
-
key
set the value to the key- Parameters:
key
- value to be set- Returns:
- Builder
-
typeId
The type of the referenced resource.
- Parameters:
typeId
- value to be set- Returns:
- Builder
-
getKey
value of key}- Returns:
- key
-
getTypeId
The type of the referenced 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
-