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) when the ImportContainer is automatically deleted.Date and time (UTC) the ImportContainer was initially created.Date and time (UTC) when 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.Retention policy for this 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 ImportContainerBuilderof()factory method for an instance of ImportContainerBuilderstatic ImportContainerBuilderof(ImportContainer template) create builder for ImportContainer instanceresourceType(ImportResourceType resourceType) The resource type the ImportContainer supports.retentionPolicy(RetentionPolicy retentionPolicy) Retention policy for this ImportContainer.retentionPolicy(Function<RetentionPolicyBuilder, Builder<? extends RetentionPolicy>> builder) Retention policy for this 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
Retention policy for this ImportContainer. If not set, the ImportContainer will expire 72 hours after creation.
- Parameters:
retentionPolicy- value to be set- Returns:
- Builder
-
retentionPolicy
public ImportContainerBuilder retentionPolicy(Function<RetentionPolicyBuilder, Builder<? extends RetentionPolicy>> builder) Retention policy for this ImportContainer. If not set, the ImportContainer will expire 72 hours after creation.
- 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) when the ImportContainer is automatically deleted. If no
retentionPolicywas set at creation, this is 72 hours aftercreatedAt. If aTimeToLiveRetentionPolicywas set, it is derived fromtimeToLive.- 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
Retention policy for this ImportContainer. If not set, the ImportContainer will expire 72 hours after creation.
- 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) when the ImportContainer is automatically deleted. If no
retentionPolicywas set at creation, this is 72 hours aftercreatedAt. If aTimeToLiveRetentionPolicywas set, it is derived fromtimeToLive.- Returns:
- expiresAt
-
build
builds ImportContainer with checking for non-null required values- Specified by:
buildin 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
-