public interface ImportContainer
Serves as the entry point of resources. An Import Container is not resource type-specific.
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()
Modifier and Type | Method and Description |
---|---|
static ImportContainerBuilder |
builder() |
static ImportContainerBuilder |
builder(ImportContainer template) |
@NotNull ZonedDateTime |
getCreatedAt()
The time when the ImportContainer was created.
|
@NotNull String |
getKey()
User-defined unique identifier for the ImportContainer.
|
@NotNull ZonedDateTime |
getLastModifiedAt()
The last time when the ImportContainer was modified.
|
ImportResourceType |
getResourceType()
The resource type the ImportContainer is able to handle.
|
@NotNull Long |
getVersion()
The version of the ImportContainer.
|
static ImportContainer |
of() |
static ImportContainer |
of(ImportContainer template) |
void |
setCreatedAt(ZonedDateTime createdAt) |
void |
setKey(String key) |
void |
setLastModifiedAt(ZonedDateTime lastModifiedAt) |
void |
setResourceType(ImportResourceType resourceType) |
void |
setVersion(Long version) |
static com.fasterxml.jackson.core.type.TypeReference<ImportContainer> |
typeReference() |
default <T> T |
withImportContainer(Function<ImportContainer,T> helper) |
@NotNull @NotNull String getKey()
User-defined unique identifier for the ImportContainer. Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
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.
@NotNull @NotNull Long getVersion()
The version of the ImportContainer.
@NotNull @NotNull ZonedDateTime getCreatedAt()
The time when the ImportContainer was created.
@NotNull @NotNull ZonedDateTime getLastModifiedAt()
The last time when the ImportContainer was modified.
void setKey(String key)
void setResourceType(ImportResourceType resourceType)
void setVersion(Long version)
void setCreatedAt(ZonedDateTime createdAt)
void setLastModifiedAt(ZonedDateTime lastModifiedAt)
static ImportContainer of()
static ImportContainer of(ImportContainer template)
static ImportContainerBuilder builder()
static ImportContainerBuilder builder(ImportContainer template)
default <T> T withImportContainer(Function<ImportContainer,T> helper)
static com.fasterxml.jackson.core.type.TypeReference<ImportContainer> typeReference()