Interface ImportContainer
Serves as the entry point of resources. An Import Container is not resource type-specific.
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 ImportContainerBuilder
builder()
builder factory method for ImportContainerstatic ImportContainerBuilder
builder
(ImportContainer template) create builder for ImportContainer instancestatic ImportContainer
deepCopy
(ImportContainer template) factory method to create a deep copy of ImportContainer@NotNull ZonedDateTime
The time when the ImportContainer was created.@NotNull String
getKey()
User-defined unique identifier for the ImportContainer.@NotNull ZonedDateTime
The last time when the ImportContainer was modified.The resource type the ImportContainer is able to handle.@NotNull Long
The version of the ImportContainer.static ImportContainer
of()
factory methodstatic ImportContainer
of
(ImportContainer template) factory method to create a shallow copy ImportContainervoid
setCreatedAt
(ZonedDateTime createdAt) The time when the ImportContainer was created.void
User-defined unique identifier for the ImportContainer.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) The last time when the ImportContainer was modified.void
setResourceType
(ImportResourceType resourceType) The resource type the ImportContainer is able to handle.void
setVersion
(Long version) The version of the ImportContainer.static com.fasterxml.jackson.core.type.TypeReference<ImportContainer>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withImportContainer
(Function<ImportContainer, T> helper) accessor map function
-
Method Details
-
getKey
User-defined unique identifier for the ImportContainer. Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
- Returns:
- key
-
getResourceType
ImportResourceType getResourceType()The resource type the ImportContainer is able to handle. If not present, the ImportContainer is able to import all of the supported ImportResourceTypes.
- Returns:
- resourceType
-
getVersion
The version of the ImportContainer.
- Returns:
- version
-
getCreatedAt
The time when the ImportContainer was created.
- Returns:
- createdAt
-
getLastModifiedAt
The last time when the ImportContainer was modified.
- Returns:
- lastModifiedAt
-
setKey
User-defined unique identifier for the ImportContainer. Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
- Parameters:
key
- value to be set
-
setResourceType
The resource type the ImportContainer is able to handle. If not present, the ImportContainer is able to import all of the supported ImportResourceTypes.
- Parameters:
resourceType
- value to be set
-
setVersion
The version of the ImportContainer.
- Parameters:
version
- value to be set
-
setCreatedAt
The time when the ImportContainer was created.
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
The last time when the ImportContainer was modified.
- Parameters:
lastModifiedAt
- 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
-
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
-