Interface ImportOperationRejectedEvent
- All Superinterfaces:
Event
Generated when an Import Operation has the rejected ProcessingState.
Example to create an instance using the builder pattern
ImportOperationRejectedEvent importOperationRejectedEvent = ImportOperationRejectedEvent.builder()
.id("{id}")
.notificationType("{notificationType}")
.resourceType(EventSubscriptionResourceTypeId.CHECKOUT)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.data(dataBuilder -> dataBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for ImportOperationRejectedEvent -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ImportOperationRejectedEventbuilder(ImportOperationRejectedEvent template) create builder for ImportOperationRejectedEvent instancecopyDeep()static ImportOperationRejectedEventdeepCopy(ImportOperationRejectedEvent template) factory method to create a deep copy of ImportOperationRejectedEvent@NotNull @Valid ImportOperationRejectedEventDatagetData()An object containing details of the Import Operation with therejectedstate.@NotNull EventSubscriptionResourceTypeIdThe type of resource targeted by the Event.static ImportOperationRejectedEventof()factory methodstatic ImportOperationRejectedEventof(ImportOperationRejectedEvent template) factory method to create a shallow copy ImportOperationRejectedEventvoidAn object containing details of the Import Operation with therejectedstate.voidsetResourceType(EventSubscriptionResourceTypeId resourceType) set resourceTypestatic com.fasterxml.jackson.core.type.TypeReference<ImportOperationRejectedEvent>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.event.Event
getCreatedAt, getId, getNotificationType, getType, setCreatedAt, setId, setNotificationType, withEvent
-
Field Details
-
IMPORT_OPERATION_REJECTED
discriminator value for ImportOperationRejectedEvent- See Also:
-
-
Method Details
-
getResourceType
Description copied from interface:EventThe type of resource targeted by the Event.
- Specified by:
getResourceTypein interfaceEvent- Returns:
- resourceType
-
getData
An object containing details of the Import Operation with the
rejectedstate.- Returns:
- data
-
setResourceType
set resourceType- Specified by:
setResourceTypein interfaceEvent- Parameters:
resourceType- value to be set
-
setData
An object containing details of the Import Operation with the
rejectedstate.- Parameters:
data- value to be set
-
of
factory method- Returns:
- instance of ImportOperationRejectedEvent
-
of
factory method to create a shallow copy ImportOperationRejectedEvent- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ImportOperationRejectedEvent copyDeep() -
deepCopy
@Nullable static ImportOperationRejectedEvent deepCopy(@Nullable ImportOperationRejectedEvent template) factory method to create a deep copy of ImportOperationRejectedEvent- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ImportOperationRejectedEvent- Returns:
- builder
-
builder
create builder for ImportOperationRejectedEvent instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withImportOperationRejectedEvent
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-