Class ImportContainerCreatedEventDataBuilder
java.lang.Object
com.commercetools.api.models.event.ImportContainerCreatedEventDataBuilder
- All Implemented Interfaces:
Builder<ImportContainerCreatedEventData>
public class ImportContainerCreatedEventDataBuilder
extends Object
implements Builder<ImportContainerCreatedEventData>
ImportContainerCreatedEventDataBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ImportContainerCreatedEventData importContainerCreatedEventData = ImportContainerCreatedEventData.builder()
.key("{key}")
.version(1)
.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 ImportContainerCreatedEventData with checking for non-null required valuesbuilds ImportContainerCreatedEventData without checking for non-null required valuescreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the Import Container was created.Date and time (UTC) the Import Container was created.getKey()
Thekey
of the created Import Container.Date and time (UTC) the Import Container was last updated.Theversion
of the created Import Container.Thekey
of the created Import Container.lastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) the Import Container was last updated.of()
factory method for an instance of ImportContainerCreatedEventDataBuilderof
(ImportContainerCreatedEventData template) create builder for ImportContainerCreatedEventData instanceTheversion
of the created Import Container.
-
Constructor Details
-
ImportContainerCreatedEventDataBuilder
public ImportContainerCreatedEventDataBuilder()
-
-
Method Details
-
key
The
key
of the created Import Container.- Parameters:
key
- value to be set- Returns:
- Builder
-
version
The
version
of the created Import Container.- Parameters:
version
- value to be set- Returns:
- Builder
-
createdAt
Date and time (UTC) the Import Container was created.
- Parameters:
createdAt
- value to be set- Returns:
- Builder
-
lastModifiedAt
Date and time (UTC) the Import Container was last updated.
- Parameters:
lastModifiedAt
- value to be set- Returns:
- Builder
-
getKey
The
key
of the created Import Container.- Returns:
- key
-
getVersion
The
version
of the created Import Container.- Returns:
- version
-
getCreatedAt
Date and time (UTC) the Import Container was created.
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) the Import Container was last updated.
- Returns:
- lastModifiedAt
-
build
builds ImportContainerCreatedEventData with checking for non-null required values- Specified by:
build
in interfaceBuilder<ImportContainerCreatedEventData>
- Returns:
- ImportContainerCreatedEventData
-
buildUnchecked
builds ImportContainerCreatedEventData without checking for non-null required values- Returns:
- ImportContainerCreatedEventData
-
of
factory method for an instance of ImportContainerCreatedEventDataBuilder- Returns:
- builder
-
of
create builder for ImportContainerCreatedEventData instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-