public final class CloudEventsMessageMetadata extends Object
Constructor and Description |
---|
CloudEventsMessageMetadata(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.
|
io.vavr.control.Option<String> |
getContentType()
Describe the data encoding format.
|
String |
getEventId()
ID of the event.
|
io.vavr.control.Option<ZonedDateTime> |
getEventTime()
Timestamp of when the event happened.
|
String |
getEventType()
Type of occurrence which has happened.
|
io.vavr.control.Option<String> |
getEventTypeVersion()
The version of the eventType.
|
io.vavr.control.Option<String> |
getSchemaUrl()
A link to the schema that the data attribute adheres to.
|
String |
getSource()
This describes the event producer.
|
int |
hashCode() |
static CloudEventsMessageMetadata |
of(CloudEventsMessageParser.ParsedMetadata parsedMetadata)
Factory method to create a CloudEventsMessageMetadata based on a parsed Metadata object.
|
String |
toString() |
public CloudEventsMessageMetadata(@Nonnull String eventType, @Nullable String eventTypeVersion, @Nonnull String cloudEventsVersion, @Nonnull String source, @Nonnull String eventId, @Nullable ZonedDateTime eventTime, @Nullable String schemaUrl, @Nullable String contentType)
@Nonnull public io.vavr.control.Option<String> getEventTypeVersion()
@Nonnull public io.vavr.control.Option<ZonedDateTime> getEventTime()
@Nonnull public io.vavr.control.Option<String> getSchemaUrl()
@Nonnull public io.vavr.control.Option<String> getContentType()
@Nonnull public static CloudEventsMessageMetadata of(@Nonnull CloudEventsMessageParser.ParsedMetadata parsedMetadata)
parsedMetadata
- 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.