Class GenericPayload


  • @Validated
    @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen",
               date="2023-03-16T12:22:36.923004Z[Etc/UTC]")
    public class GenericPayload
    extends java.lang.Object
    Generic 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
      GenericPayload contentType​(java.lang.String contentType)  
      boolean equals​(java.lang.Object o)  
      @NotNull java.lang.String getContentType()
      The content type, which represents the fashion in which the event was serialized.
      @NotNull @Pattern(regexp="^[\u0000-\u00ff]*$") java.lang.String getValue()
      The value of the event, serialized as bytes.
      int hashCode()  
      void setContentType​(java.lang.String contentType)  
      void setValue​(java.lang.String value)  
      java.lang.String toString()  
      GenericPayload value​(java.lang.String value)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GenericPayload

        public GenericPayload()
    • Method Detail

      • 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object