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
Constructors -
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 the ImportContainer will accept.Set a retention policy to automatically delete the ImportContainer after a defined period.User-defined unique identifier of the ImportContainer.static ImportContainerDraftBuilderof()factory method for an instance of ImportContainerDraftBuilderstatic ImportContainerDraftBuilderof(ImportContainerDraft template) create builder for ImportContainerDraft instanceresourceType(ImportResourceType resourceType) The resource type the ImportContainer will accept.retentionPolicy(RetentionPolicy retentionPolicy) Set a retention policy to automatically delete the ImportContainer after a defined period.retentionPolicy(Function<RetentionPolicyBuilder, Builder<? extends RetentionPolicy>> builder) Set a retention policy to automatically delete the ImportContainer after a defined period.
-
Constructor Details
-
ImportContainerDraftBuilder
public ImportContainerDraftBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the ImportContainer.
- Parameters:
key- value to be set- Returns:
- Builder
-
resourceType
The resource type the ImportContainer will accept. If not specified, the ImportContainer can import all of the supported ImportResourceTypes.
- Parameters:
resourceType- value to be set- Returns:
- Builder
-
retentionPolicy
Set a retention policy to automatically delete the ImportContainer after a defined period.
- Parameters:
retentionPolicy- value to be set- Returns:
- Builder
-
retentionPolicy
public ImportContainerDraftBuilder retentionPolicy(Function<RetentionPolicyBuilder, Builder<? extends RetentionPolicy>> builder) Set a retention policy to automatically delete the ImportContainer after a defined period.
- Parameters:
builder- function to build the retentionPolicy value- Returns:
- Builder
-
getKey
User-defined unique identifier of the ImportContainer.
- Returns:
- key
-
getResourceType
The resource type the ImportContainer will accept. If not specified, the ImportContainer can import all of the supported ImportResourceTypes.
- Returns:
- resourceType
-
getRetentionPolicy
Set a retention policy to automatically delete the ImportContainer after a defined period.
- Returns:
- retentionPolicy
-
build
builds ImportContainerDraft with checking for non-null required values- Specified by:
buildin 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
-