public final class S4HanaMessageMetadata extends Object
Constructor and Description |
---|
S4HanaMessageMetadata(String eventType,
String eventTypeVersion,
String cloudEventsVersion,
String source,
String eventId,
ZonedDateTime eventTime,
String schemaUrl,
String contentType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getCloudEventsVersion()
The version of the CloudEvents specification which the event uses.
|
Optional<String> |
getContentType()
Describe the data encoding format.
|
String |
getEventId()
ID of the event.
|
Optional<ZonedDateTime> |
getEventTime()
Timestamp of when the event happened.
|
String |
getEventType()
Type of occurrence which has happened.
|
Optional<String> |
getEventTypeVersion()
The version of the eventType.
|
Optional<String> |
getSchemaUrl()
A link to the schema that the data attribute adheres to.
|
String |
getSource()
This describes the event producer.
|
int |
hashCode() |
static S4HanaMessageMetadata |
of(S4HanaMessageParser.ParsedMetadata parsedParsedMetadata)
Factory method to create a S4HanaMessageMetadata based on a parsed Metadata object.
|
String |
toString() |
@Nonnull public Optional<String> getEventTypeVersion()
@Nonnull public Optional<ZonedDateTime> getEventTime()
@Nonnull public Optional<String> getSchemaUrl()
@Nonnull public Optional<String> getContentType()
@Nonnull public static S4HanaMessageMetadata of(@Nonnull S4HanaMessageParser.ParsedMetadata parsedParsedMetadata)
parsedParsedMetadata
- The metadata object parsed from the body of the received message.@Nonnull public String getEventType()
@Nonnull public String getCloudEventsVersion()
@Nonnull public String getSource()
The value "http://SAPS4HANAOD" indicates that the message originated from SAP S/4HANA Cloud.
@Nonnull public String getEventId()
Copyright © 2019 SAP SE. All rights reserved.