Class PlatformEvent
- java.lang.Object
-
- io.datahubproject.openapi.generated.PlatformEvent
-
@Validated @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen", date="2023-03-16T12:22:36.923004Z[Etc/UTC]") public class PlatformEvent extends java.lang.Object
A DataHub Platform Event.
-
-
Constructor Summary
Constructors Constructor Description PlatformEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
@NotNull @Valid PlatformEventHeader
getHeader()
Get header@NotNull java.lang.String
getName()
The name of the event, e.g.@NotNull @Valid GenericPayload
getPayload()
Get payloadint
hashCode()
PlatformEvent
header(PlatformEventHeader header)
PlatformEvent
name(java.lang.String name)
PlatformEvent
payload(GenericPayload payload)
void
setHeader(PlatformEventHeader header)
void
setName(java.lang.String name)
void
setPayload(GenericPayload payload)
java.lang.String
toString()
-
-
-
Method Detail
-
header
public PlatformEvent header(PlatformEventHeader header)
-
getHeader
@NotNull @Valid public @NotNull @Valid PlatformEventHeader getHeader()
Get header- Returns:
- header
-
setHeader
public void setHeader(PlatformEventHeader header)
-
name
public PlatformEvent name(java.lang.String name)
-
getName
@NotNull public @NotNull java.lang.String getName()
The name of the event, e.g. the type of event. For example, 'notificationRequestEvent', 'entityChangeEvent'- Returns:
- name
-
setName
public void setName(java.lang.String name)
-
payload
public PlatformEvent payload(GenericPayload payload)
-
getPayload
@NotNull @Valid public @NotNull @Valid GenericPayload getPayload()
Get payload- Returns:
- payload
-
setPayload
public void setPayload(GenericPayload payload)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-