Interface ImportOperation
Import Operation describes the import status of a specific resource.
Example to create an instance using the builder pattern
ImportOperation importOperation = ImportOperation.builder()
.version(1)
.importContainerKey("{importContainerKey}")
.resourceKey("{resourceKey}")
.id("{id}")
.state(ProcessingState.PROCESSING)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.expiresAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImportOperationBuilder
builder()
builder factory method for ImportOperationstatic ImportOperationBuilder
builder
(ImportOperation template) create builder for ImportOperation instancestatic ImportOperation
deepCopy
(ImportOperation template) factory method to create a deep copy of ImportOperation@NotNull ZonedDateTime
The time when the ImportOperation was created.@Valid List<ErrorObject>
Contains an error if the import of the resource was not successful.@NotNull ZonedDateTime
The expiration time of the ImportOperation.@NotNull String
getId()
The ID of the ImportOperation.@NotNull String
The key of the ImportContainer.@NotNull ZonedDateTime
The last time When the ImportOperation was modified.@NotNull String
The key of the resource.The version of the imported resource when the import was successful.@NotNull ProcessingState
getState()
The import status of the resource.@Valid List<UnresolvedReferences>
In case of unresolved status this array will show the unresolved references@NotNull Long
The version of the ImportOperation.static ImportOperation
of()
factory methodstatic ImportOperation
of
(ImportOperation template) factory method to create a shallow copy ImportOperationvoid
setCreatedAt
(ZonedDateTime createdAt) The time when the ImportOperation was created.void
setErrors
(ErrorObject... errors) Contains an error if the import of the resource was not successful.void
setErrors
(List<ErrorObject> errors) Contains an error if the import of the resource was not successful.void
setExpiresAt
(ZonedDateTime expiresAt) The expiration time of the ImportOperation.void
The ID of the ImportOperation.void
setImportContainerKey
(String importContainerKey) The key of the ImportContainer.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) The last time When the ImportOperation was modified.void
setResourceKey
(String resourceKey) The key of the resource.void
setResourceVersion
(Long resourceVersion) The version of the imported resource when the import was successful.void
setState
(ProcessingState state) The import status of the resource.void
setUnresolvedReferences
(UnresolvedReferences... unresolvedReferences) In case of unresolved status this array will show the unresolved referencesvoid
setUnresolvedReferences
(List<UnresolvedReferences> unresolvedReferences) In case of unresolved status this array will show the unresolved referencesvoid
setVersion
(Long version) The version of the ImportOperation.static com.fasterxml.jackson.core.type.TypeReference<ImportOperation>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withImportOperation
(Function<ImportOperation, T> helper) accessor map function
-
Method Details
-
getVersion
The version of the ImportOperation.
- Returns:
- version
-
getImportContainerKey
The key of the ImportContainer.
- Returns:
- importContainerKey
-
getResourceKey
The key of the resource.
- Returns:
- resourceKey
-
getId
The ID of the ImportOperation.
- Returns:
- id
-
getState
The import status of the resource. Set to
rejected
orvalidationFailed
if the import of the resource was not successful.- Returns:
- state
-
getResourceVersion
Long getResourceVersion()The version of the imported resource when the import was successful.
- Returns:
- resourceVersion
-
getErrors
Contains an error if the import of the resource was not successful. See Errors.
- Returns:
- errors
-
getUnresolvedReferences
In case of unresolved status this array will show the unresolved references
- Returns:
- unresolvedReferences
-
getCreatedAt
The time when the ImportOperation was created.
- Returns:
- createdAt
-
getLastModifiedAt
The last time When the ImportOperation was modified.
- Returns:
- lastModifiedAt
-
getExpiresAt
The expiration time of the ImportOperation.
- Returns:
- expiresAt
-
setVersion
The version of the ImportOperation.
- Parameters:
version
- value to be set
-
setImportContainerKey
The key of the ImportContainer.
- Parameters:
importContainerKey
- value to be set
-
setResourceKey
The key of the resource.
- Parameters:
resourceKey
- value to be set
-
setId
The ID of the ImportOperation.
- Parameters:
id
- value to be set
-
setState
The import status of the resource. Set to
rejected
orvalidationFailed
if the import of the resource was not successful.- Parameters:
state
- value to be set
-
setResourceVersion
The version of the imported resource when the import was successful.
- Parameters:
resourceVersion
- value to be set
-
setErrors
Contains an error if the import of the resource was not successful. See Errors.
- Parameters:
errors
- values to be set
-
setErrors
Contains an error if the import of the resource was not successful. See Errors.
- Parameters:
errors
- values to be set
-
setUnresolvedReferences
In case of unresolved status this array will show the unresolved references
- Parameters:
unresolvedReferences
- values to be set
-
setUnresolvedReferences
In case of unresolved status this array will show the unresolved references
- Parameters:
unresolvedReferences
- values to be set
-
setCreatedAt
The time when the ImportOperation was created.
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
The last time When the ImportOperation was modified.
- Parameters:
lastModifiedAt
- value to be set
-
setExpiresAt
The expiration time of the ImportOperation.
- Parameters:
expiresAt
- value to be set
-
of
factory method- Returns:
- instance of ImportOperation
-
of
factory method to create a shallow copy ImportOperation- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ImportOperation- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ImportOperation- Returns:
- builder
-
builder
create builder for ImportOperation instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withImportOperation
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
-