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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ImportContainer with checking for non-null required valuesbuilds ImportContainer without checking for non-null required valuescreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the ImportContainer was initially created.expiresAt
(ZonedDateTime expiresAt) Date and time (UTC) the ImportContainer is automatically deleted.Date and time (UTC) the ImportContainer was initially created.Date and time (UTC) the ImportContainer is automatically deleted.getKey()
User-defined unique identifier of the ImportContainer.Date and time (UTC) the ImportContainer was last updated.The resource type the ImportContainer supports.The retention policy of the ImportContainer.Current version of the ImportContainer.User-defined unique identifier of the ImportContainer.lastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the ImportContainer was last updated.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 supports.retentionPolicy
(RetentionPolicy retentionPolicy) The retention policy of the ImportContainer.retentionPolicy
(Function<RetentionPolicyBuilder, Builder<? extends RetentionPolicy>> builder) The retention policy of the ImportContainer.Current version of the ImportContainer.
-
Constructor Details
-
ImportContainerBuilder
public ImportContainerBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the ImportContainer.
- Parameters:
key
- value to be set- Returns:
- Builder
-
resourceType
The resource type the ImportContainer supports. If not present, the ImportContainer can import all of the supported ImportResourceTypes.
- Parameters:
resourceType
- value to be set- Returns:
- Builder
-
version
Current version of the ImportContainer.
- Parameters:
version
- value to be set- Returns:
- Builder
-
retentionPolicy
The retention policy of the ImportContainer.
- Parameters:
retentionPolicy
- value to be set- Returns:
- Builder
-
retentionPolicy
public ImportContainerBuilder retentionPolicy(Function<RetentionPolicyBuilder, Builder<? extends RetentionPolicy>> builder) The retention policy of the ImportContainer.
- Parameters:
builder
- function to build the retentionPolicy value- Returns:
- Builder
-
createdAt
Date and time (UTC) the ImportContainer was initially created.
- Parameters:
createdAt
- value to be set- Returns:
- Builder
-
lastModifiedAt
Date and time (UTC) the ImportContainer was last updated.
- Parameters:
lastModifiedAt
- value to be set- Returns:
- Builder
-
expiresAt
Date and time (UTC) the ImportContainer is automatically deleted. Only present if a
retentionPolicy
is set. ImportContainers withoutexpiresAt
are permanent until manually deleted.- Parameters:
expiresAt
- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier of the ImportContainer.
- Returns:
- key
-
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
Date and time (UTC) the ImportContainer is automatically deleted. Only present if a
retentionPolicy
is set. ImportContainers withoutexpiresAt
are permanent until manually deleted.- Returns:
- expiresAt
-
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
-