Class ImportContainerBuilder
- All Implemented Interfaces:
Builder<ImportContainer>
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ImportContainer with checking for non-null required valuesbuilds ImportContainer without checking for non-null required valuescreatedAt
(ZonedDateTime createdAt) The time when the ImportContainer was created.The time when the ImportContainer was created.getKey()
User-defined unique identifier for the ImportContainer.The last time when the ImportContainer was modified.The resource type the ImportContainer is able to handle.The version of the ImportContainer.User-defined unique identifier for the ImportContainer.lastModifiedAt
(ZonedDateTime lastModifiedAt) The last time when the ImportContainer was modified.static ImportContainerBuilder
of()
factory method for an instance of ImportContainerBuilderstatic ImportContainerBuilder
of
(ImportContainer template) create builder for ImportContainer instanceresourceType
(ImportResourceType resourceType) The resource type the ImportContainer is able to handle.The version of the ImportContainer.
-
Constructor Details
-
ImportContainerBuilder
public ImportContainerBuilder()
-
-
Method Details
-
key
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- Returns:
- Builder
-
resourceType
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- Returns:
- Builder
-
version
The version of the ImportContainer.
- Parameters:
version
- value to be set- Returns:
- Builder
-
createdAt
The time when the ImportContainer was created.
- Parameters:
createdAt
- value to be set- Returns:
- Builder
-
lastModifiedAt
The last time when the ImportContainer was modified.
- Parameters:
lastModifiedAt
- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier for the ImportContainer. Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).
- Returns:
- key
-
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
-
build
builds ImportContainer with checking for non-null required values- Specified by:
build
in interfaceBuilder<ImportContainer>
- Returns:
- ImportContainer
-
buildUnchecked
builds ImportContainer without checking for non-null required values- Returns:
- ImportContainer
-
of
factory method for an instance of ImportContainerBuilder- Returns:
- builder
-
of
create builder for ImportContainer instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-