Class ImportContainerUpdateDraftBuilder
java.lang.Object
com.commercetools.importapi.models.importcontainers.ImportContainerUpdateDraftBuilder
- All Implemented Interfaces:
Builder<ImportContainerUpdateDraft>
public class ImportContainerUpdateDraftBuilder
extends Object
implements Builder<ImportContainerUpdateDraft>
ImportContainerUpdateDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ImportContainerUpdateDraft importContainerUpdateDraft = ImportContainerUpdateDraft.builder()
.version(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ImportContainerUpdateDraft with checking for non-null required valuesbuilds ImportContainerUpdateDraft without checking for non-null required valuesThe resource type to be imported.Current version of the ImportContainer.of()
factory method for an instance of ImportContainerUpdateDraftBuilderof
(ImportContainerUpdateDraft template) create builder for ImportContainerUpdateDraft instanceresourceType
(ImportResourceType resourceType) The resource type to be imported.Current version of the ImportContainer.
-
Constructor Details
-
ImportContainerUpdateDraftBuilder
public ImportContainerUpdateDraftBuilder()
-
-
Method Details
-
version
Current version of the ImportContainer.
- Parameters:
version
- 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
-
getVersion
Current version of the ImportContainer.
- Returns:
- version
-
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 ImportContainerUpdateDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<ImportContainerUpdateDraft>
- Returns:
- ImportContainerUpdateDraft
-
buildUnchecked
builds ImportContainerUpdateDraft without checking for non-null required values- Returns:
- ImportContainerUpdateDraft
-
of
factory method for an instance of ImportContainerUpdateDraftBuilder- Returns:
- builder
-
of
create builder for ImportContainerUpdateDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-