Class ImportUnresolvedEventBuilder
java.lang.Object
com.commercetools.api.models.event.ImportUnresolvedEventBuilder
- All Implemented Interfaces:
Builder<ImportUnresolvedEvent>
ImportUnresolvedEventBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ImportUnresolvedEvent importUnresolvedEvent = ImportUnresolvedEvent.builder()
.id("{id}")
.notificationType("{notificationType}")
.resourceType(EventSubscriptionResourceTypeId.CHECKOUT)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.data(dataBuilder -> dataBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ImportUnresolvedEvent with checking for non-null required valuesbuilds ImportUnresolvedEvent without checking for non-null required valuescreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the Event was generated.An object containing details of the Import Operation with theunresolved
state.An object containing details of the Import Operation with theunresolved
state.Date and time (UTC) the Event was generated.getData()
An object containing details of the Import Operation with theunresolved
state.getId()
Unique identifier of the Event.value of notificationType}value of resourceType}Unique identifier of the Event.notificationType
(String notificationType) set the value to the notificationTypestatic ImportUnresolvedEventBuilder
of()
factory method for an instance of ImportUnresolvedEventBuilderstatic ImportUnresolvedEventBuilder
of
(ImportUnresolvedEvent template) create builder for ImportUnresolvedEvent instanceresourceType
(EventSubscriptionResourceTypeId resourceType) set the value to the resourceTypeAn object containing details of the Import Operation with theunresolved
state.
-
Constructor Details
-
ImportUnresolvedEventBuilder
public ImportUnresolvedEventBuilder()
-
-
Method Details
-
id
Unique identifier of the Event.
- Parameters:
id
- value to be set- Returns:
- Builder
-
notificationType
set the value to the notificationType- Parameters:
notificationType
- value to be set- Returns:
- Builder
-
resourceType
set the value to the resourceType- Parameters:
resourceType
- value to be set- Returns:
- Builder
-
createdAt
Date and time (UTC) the Event was generated.
- Parameters:
createdAt
- value to be set- Returns:
- Builder
-
data
public ImportUnresolvedEventBuilder data(Function<ImportUnresolvedEventDataBuilder, ImportUnresolvedEventDataBuilder> builder) An object containing details of the Import Operation with the
unresolved
state.- Parameters:
builder
- function to build the data value- Returns:
- Builder
-
withData
public ImportUnresolvedEventBuilder withData(Function<ImportUnresolvedEventDataBuilder, ImportUnresolvedEventData> builder) An object containing details of the Import Operation with the
unresolved
state.- Parameters:
builder
- function to build the data value- Returns:
- Builder
-
data
An object containing details of the Import Operation with the
unresolved
state.- Parameters:
data
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the Event.
- Returns:
- id
-
getNotificationType
value of notificationType}- Returns:
- notificationType
-
getResourceType
value of resourceType}- Returns:
- resourceType
-
getCreatedAt
Date and time (UTC) the Event was generated.
- Returns:
- createdAt
-
getData
An object containing details of the Import Operation with the
unresolved
state.- Returns:
- data
-
build
builds ImportUnresolvedEvent with checking for non-null required values- Specified by:
build
in interfaceBuilder<ImportUnresolvedEvent>
- Returns:
- ImportUnresolvedEvent
-
buildUnchecked
builds ImportUnresolvedEvent without checking for non-null required values- Returns:
- ImportUnresolvedEvent
-
of
factory method for an instance of ImportUnresolvedEventBuilder- Returns:
- builder
-
of
create builder for ImportUnresolvedEvent instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-