Interface TypeImportRequest
- All Superinterfaces:
ImportRequest
The request body to import Types. Contains data for Types to be created or updated in a Project.
Example to create an instance using the builder pattern
TypeImportRequest typeImportRequest = TypeImportRequest.builder()
.plusResources(resourcesBuilder -> resourcesBuilder)
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypeImportRequestBuilder
builder()
builder factory method for TypeImportRequeststatic TypeImportRequestBuilder
builder
(TypeImportRequest template) create builder for TypeImportRequest instancestatic TypeImportRequest
deepCopy
(TypeImportRequest template) factory method to create a deep copy of TypeImportRequest@NotNull @Valid List<TypeImport>
The type import resources of this request.static TypeImportRequest
of()
factory methodstatic TypeImportRequest
of
(TypeImportRequest template) factory method to create a shallow copy TypeImportRequestvoid
setResources
(TypeImport... resources) The type import resources of this request.void
setResources
(List<TypeImport> resources) The type import resources of this request.static com.fasterxml.jackson.core.type.TypeReference<TypeImportRequest>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withTypeImportRequest
(Function<TypeImportRequest, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.importrequests.ImportRequest
getType, withImportRequest
-
Field Details
-
TYPE
discriminator value for TypeImportRequest- See Also:
-
-
Method Details
-
getResources
The type import resources of this request.
- Returns:
- resources
-
setResources
The type import resources of this request.
- Parameters:
resources
- values to be set
-
setResources
The type import resources of this request.
- Parameters:
resources
- values to be set
-
of
factory method- Returns:
- instance of TypeImportRequest
-
of
factory method to create a shallow copy TypeImportRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of TypeImportRequest- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for TypeImportRequest- Returns:
- builder
-
builder
create builder for TypeImportRequest instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withTypeImportRequest
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-