Class ImportResourceBuilder
java.lang.Object
com.commercetools.importapi.models.common.ImportResourceBuilder
- All Implemented Interfaces:
Builder<ImportResource>
ImportResourceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ImportResource importResource = ImportResource.builder()
.key("{key}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ImportResource with checking for non-null required valuesbuilds ImportResource without checking for non-null required valuesgetKey()
User-defined unique identifier.User-defined unique identifier.static ImportResourceBuilder
of()
factory method for an instance of ImportResourceBuilderstatic ImportResourceBuilder
of
(ImportResource template) create builder for ImportResource instance
-
Constructor Details
-
ImportResourceBuilder
public ImportResourceBuilder()
-
-
Method Details
-
key
User-defined unique identifier.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier.
- Returns:
- key
-
build
builds ImportResource with checking for non-null required values- Specified by:
build
in interfaceBuilder<ImportResource>
- Returns:
- ImportResource
-
buildUnchecked
builds ImportResource without checking for non-null required values- Returns:
- ImportResource
-
of
factory method for an instance of ImportResourceBuilder- Returns:
- builder
-
of
create builder for ImportResource instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-