Class GenericPayload
- java.lang.Object
-
- io.datahubproject.openapi.generated.GenericPayload
-
@Validated @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen", date="2023-12-06T11:25:47.362934Z[Etc/UTC]") public class GenericPayload extends java.lang.ObjectGeneric payload record structure for serializing a Platform Event.
-
-
Constructor Summary
Constructors Constructor Description GenericPayload()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenericPayloadcontentType(java.lang.String contentType)booleanequals(java.lang.Object o)@NotNull java.lang.StringgetContentType()The content type, which represents the fashion in which the event was serialized.@NotNull @Pattern(regexp="^[\u0000-\u00ff]*$") java.lang.StringgetValue()The value of the event, serialized as bytes.inthashCode()voidsetContentType(java.lang.String contentType)voidsetValue(java.lang.String value)java.lang.StringtoString()GenericPayloadvalue(java.lang.String value)
-
-
-
Method Detail
-
value
public GenericPayload value(java.lang.String value)
-
getValue
@NotNull @Pattern(regexp="^[\u0000-\u00ff]*$") public @NotNull @Pattern(regexp="^[\u0000-\u00ff]*$") java.lang.String getValue()
The value of the event, serialized as bytes.- Returns:
- value
-
setValue
public void setValue(java.lang.String value)
-
contentType
public GenericPayload contentType(java.lang.String contentType)
-
getContentType
@NotNull public @NotNull java.lang.String getContentType()
The content type, which represents the fashion in which the event was serialized. The only type currently supported is application/json.- Returns:
- contentType
-
setContentType
public void setContentType(java.lang.String contentType)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-