Interface ImportValidationFailedEvent
- All Superinterfaces:
Event
Generated when an Import Operation has the validationFailed
ProcessingState.
Example to create an instance using the builder pattern
ImportValidationFailedEvent importValidationFailedEvent = ImportValidationFailedEvent.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 String
discriminator value for ImportValidationFailedEvent -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ImportValidationFailedEventbuilder
(ImportValidationFailedEvent template) create builder for ImportValidationFailedEvent instancecopyDeep()
static ImportValidationFailedEvent
deepCopy
(ImportValidationFailedEvent template) factory method to create a deep copy of ImportValidationFailedEvent@NotNull @Valid ImportValidationFailedEventData
getData()
An object containing details of the Import Operation with thevalidationFailed
state.@NotNull EventSubscriptionResourceTypeId
The type of resource targeted by the Event.static ImportValidationFailedEvent
of()
factory methodstatic ImportValidationFailedEvent
of
(ImportValidationFailedEvent template) factory method to create a shallow copy ImportValidationFailedEventvoid
An object containing details of the Import Operation with thevalidationFailed
state.void
setResourceType
(EventSubscriptionResourceTypeId resourceType) set resourceTypestatic com.fasterxml.jackson.core.type.TypeReference<ImportValidationFailedEvent>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.event.Event
getCreatedAt, getId, getNotificationType, getType, setCreatedAt, setId, setNotificationType, withEvent
-
Field Details
-
IMPORT_VALIDATION_FAILED
discriminator value for ImportValidationFailedEvent- See Also:
-
-
Method Details
-
getResourceType
Description copied from interface:Event
The type of resource targeted by the Event.
- Specified by:
getResourceType
in interfaceEvent
- Returns:
- resourceType
-
getData
An object containing details of the Import Operation with the
validationFailed
state.- Returns:
- data
-
setResourceType
set resourceType- Specified by:
setResourceType
in interfaceEvent
- Parameters:
resourceType
- value to be set
-
setData
An object containing details of the Import Operation with the
validationFailed
state.- Parameters:
data
- value to be set
-
of
factory method- Returns:
- instance of ImportValidationFailedEvent
-
of
factory method to create a shallow copy ImportValidationFailedEvent- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
ImportValidationFailedEvent copyDeep() -
deepCopy
@Nullable static ImportValidationFailedEvent deepCopy(@Nullable ImportValidationFailedEvent template) factory method to create a deep copy of ImportValidationFailedEvent- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ImportValidationFailedEvent- Returns:
- builder
-
builder
create builder for ImportValidationFailedEvent instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withImportValidationFailedEvent
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
-