Interface ImportContainer
Contains the resources to be imported. Unless resourceType is specified, the ImportContainer can import all of the supported ImportResourceTypes.
Example to create an instance using the builder pattern
ImportContainer importContainer = ImportContainer.builder()
.key("{key}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImportContainerBuilderbuilder()builder factory method for ImportContainerstatic ImportContainerBuilderbuilder(ImportContainer template) create builder for ImportContainer instancecopyDeep()static ImportContainerdeepCopy(ImportContainer template) factory method to create a deep copy of ImportContainer@NotNull ZonedDateTimeDate and time (UTC) the ImportContainer was initially created.Date and time (UTC) the ImportContainer is automatically deleted.@NotNull StringgetKey()User-defined unique identifier of the ImportContainer.@NotNull ZonedDateTimeDate and time (UTC) the ImportContainer was last updated.The resource type the ImportContainer supports.@Valid RetentionPolicyThe retention policy of the ImportContainer.@NotNull LongCurrent version of the ImportContainer.static ImportContainerof()factory methodstatic ImportContainerof(ImportContainer template) factory method to create a shallow copy ImportContainervoidsetCreatedAt(ZonedDateTime createdAt) Date and time (UTC) the ImportContainer was initially created.voidsetExpiresAt(ZonedDateTime expiresAt) Date and time (UTC) the ImportContainer is automatically deleted.voidUser-defined unique identifier of the ImportContainer.voidsetLastModifiedAt(ZonedDateTime lastModifiedAt) Date and time (UTC) the ImportContainer was last updated.voidsetResourceType(ImportResourceType resourceType) The resource type the ImportContainer supports.voidsetRetentionPolicy(RetentionPolicy retentionPolicy) The retention policy of the ImportContainer.voidsetVersion(Long version) Current version of the ImportContainer.static com.fasterxml.jackson.core.type.TypeReference<ImportContainer>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithImportContainer(Function<ImportContainer, T> helper) accessor map function
-
Method Details
-
getKey
User-defined unique identifier of the ImportContainer.
- Returns:
- key
-
getResourceType
ImportResourceType getResourceType()The resource type the ImportContainer supports. If not present, the ImportContainer can import all of the supported ImportResourceTypes.
- Returns:
- resourceType
-
getVersion
Current version of the ImportContainer.
- Returns:
- version
-
getRetentionPolicy
The retention policy of the ImportContainer.
- Returns:
- retentionPolicy
-
getCreatedAt
Date and time (UTC) the ImportContainer was initially created.
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the ImportContainer was last updated.
- Returns:
- lastModifiedAt
-
getExpiresAt
ZonedDateTime getExpiresAt()Date and time (UTC) the ImportContainer is automatically deleted. Only present if a
retentionPolicyis set. ImportContainers withoutexpiresAtare permanent until manually deleted.- Returns:
- expiresAt
-
setKey
User-defined unique identifier of the ImportContainer.
- Parameters:
key- value to be set
-
setResourceType
The resource type the ImportContainer supports. If not present, the ImportContainer can import all of the supported ImportResourceTypes.
- Parameters:
resourceType- value to be set
-
setVersion
Current version of the ImportContainer.
- Parameters:
version- value to be set
-
setRetentionPolicy
The retention policy of the ImportContainer.
- Parameters:
retentionPolicy- value to be set
-
setCreatedAt
Date and time (UTC) the ImportContainer was initially created.
- Parameters:
createdAt- value to be set
-
setLastModifiedAt
Date and time (UTC) the ImportContainer was last updated.
- Parameters:
lastModifiedAt- value to be set
-
setExpiresAt
Date and time (UTC) the ImportContainer is automatically deleted. Only present if a
retentionPolicyis set. ImportContainers withoutexpiresAtare permanent until manually deleted.- Parameters:
expiresAt- value to be set
-
of
factory method- Returns:
- instance of ImportContainer
-
of
factory method to create a shallow copy ImportContainer- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ImportContainer copyDeep() -
deepCopy
factory method to create a deep copy of ImportContainer- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ImportContainer- Returns:
- builder
-
builder
create builder for ImportContainer instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withImportContainer
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
-