Class ImportContainerDraftBuilder
java.lang.Object
com.commercetools.importapi.models.importcontainers.ImportContainerDraftBuilder
- All Implemented Interfaces:
Builder<ImportContainerDraft>
ImportContainerDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ImportContainerDraft importContainerDraft = ImportContainerDraft.builder()
.key("{key}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ImportContainerDraft with checking for non-null required valuesbuilds ImportContainerDraft without checking for non-null required valuesgetKey()
User-defined unique identifier of the ImportContainer.The resource type to be imported.User-defined unique identifier of the ImportContainer.static ImportContainerDraftBuilder
of()
factory method for an instance of ImportContainerDraftBuilderstatic ImportContainerDraftBuilder
of
(ImportContainerDraft template) create builder for ImportContainerDraft instanceresourceType
(ImportResourceType resourceType) The resource type to be imported.
-
Constructor Details
-
ImportContainerDraftBuilder
public ImportContainerDraftBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the ImportContainer. Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
- Parameters:
key
- value to be set- Returns:
- Builder
-
resourceType
The resource type to be imported. If not given, the ImportContainer is able to import all of the supported ImportResourceTypes.
- Parameters:
resourceType
- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier of the ImportContainer. Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
- Returns:
- key
-
getResourceType
The resource type to be imported. If not given, the ImportContainer is able to import all of the supported ImportResourceTypes.
- Returns:
- resourceType
-
build
builds ImportContainerDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<ImportContainerDraft>
- Returns:
- ImportContainerDraft
-
buildUnchecked
builds ImportContainerDraft without checking for non-null required values- Returns:
- ImportContainerDraft
-
of
factory method for an instance of ImportContainerDraftBuilder- Returns:
- builder
-
of
create builder for ImportContainerDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-